Many Thanks Ben It worked !!! fread of matlab works and i back scaled the data ... Thanks again Sharoze
On Tue, Dec 30, 2014 at 4:30 PM, <r-sig-geo-request at r-project.org> wrote:
Send R-sig-Geo mailing list submissions to
r-sig-geo at r-project.org
To subscribe or unsubscribe via the World Wide Web, visit
https://stat.ethz.ch/mailman/listinfo/r-sig-geo or, via email, send a message with subject or body 'help' to r-sig-geo-request at r-project.org You can reach the person managing the list at r-sig-geo-owner at r-project.org When replying, please edit your Subject line so it is more specific than "Re: Contents of R-sig-Geo digest..." Today's Topics: 1. Re: How to read simple raster data (Benjamin.Galuardi) 2. ? R Sig Geo, Mario Montecinos te ha dejado un mensaje (Mario Montecinos) ---------------------------------------------------------------------- Message: 1 Date: Mon, 29 Dec 2014 10:14:20 -0500 From: "Benjamin.Galuardi" <galuardi at mit.edu> To: r-sig-geo at r-project.org Subject: Re: [R-sig-Geo] How to read simple raster data Message-ID: <54A16FCC.90900 at mit.edu> Content-Type: text/plain; charset=windows-1252; format=flowed Hi Sharoze, The data appear to be in hexadecimal form. I think Matlab is capable of importing this directly (fread??) but I'm not sure. If you need to use R, you might try this example: library(fields) hdat = readBin('C:/Downloads/data/isola.157x458.phase', what = 'raw', size=1, n = 157*458) ndat = strtoi(pdat) # converts from hex to numeric, assuming it is supposed to be numeric.. image.plot(matrix(ndat, nrow=157, ncol=458)) according to the documentation, the '.surf' files are 4 byte, so change size=4 for those. hope that helps, Ben On 12/27/2014 2:34 PM, sharoze ali wrote: Hi All Iam new to this convention \format " Simple raster format " . My intention is to use the data of the book " two-dimensional phase unwrapping theory algorithms and software " which is in raster format . The link for data is " ftp://ftp.wiley.com/sci_tech_med/phase_unwrapping/ " . Can anyone help me on this . I want to use/convert the *RASTER DATA TO MATRIX* so that i can use the my matlab programs . Please help !!! Best Regards, Sharoze Ali , Sharu786786 at gmail.com [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- ================================================== Benjamin Galuardi PhD Student NMFS-Seagrant Population Dynamics Fellow SMAST, UMass Dartmouth ================================================ ------------------------------ Message: 2 Date: Tue, 30 Dec 2014 02:32:28 +0000 From: Mario Montecinos <noreply+2872486877 at badoo.com> To: r-sig-geo at r-project.org Subject: [R-sig-Geo] ? R Sig Geo, Mario Montecinos te ha dejado un mensaje Message-ID: <20141230023228.5BBB8D6604E at cluster2033.monopost.com> Content-Type: text/plain; charset="UTF-8" Mario Montecinos te ha dejado un mensaje Este mensaje es personal. Solo t? y su remitente ten?is acceso a ?l y te recordamos que lo puedes eliminar en cualquier momento. Si quieres responder puedes hacerlo desde el chat. Para leer tu mensaje, haz clic en el siguiente enlace: http://us1.badoo.com/mario.montecinos.4/in/lEHIx6.FmTo/?lang_id=7&g=57-0-4&m=63&mid=54a20ebb000000000007004d04b27bbb021fda42000b Si al hacer clic en el enlace de este mensaje no funciona, copia y p?galo en la barra de tu navegador. Este email es parte del proceso de entrega del mensaje enviado por Mario Montecinos. Si has recibido este email por error, por favor ign?ralo. En un breve periodo de tiempo ser? eliminado del sistema. ?Div?rtete! El Equipo de Badoo Has recibido este email de Badoo Trading Limited (direcci?n postal a continuaci?n). Si no deseas recibir comunicaciones por parte de Badoo en el futuro, haz clic aqu? para desactivarlas: https://us1.badoo.com/impersonation.phtml?lang_id=7&email=r-sig-geo%40r-project.org&block_code=e97454&m=63&mid=54a20ebb000000000007004d04b27bbb021fda42000b&g=0-0-4 . Badoo Trading Limited es una sociedad de responsabilidad limitada registrada en Inglaterra y Gales con n?mero 7540255 y domicilio en Media Village, 131 - 151 Great Titchfield Street, Londres, W1W 5BB. [[alternative HTML version deleted]] ------------------------------ Subject: Digest Footer _______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo ------------------------------ End of R-sig-Geo Digest, Vol 136, Issue 24 ******************************************