[ncl-talk] Reading binary files
Dennis Shea
shea at ucar.edu
Sun Jul 9 07:18:26 MDT 2017
The attached does a simple read-and-plot. The plot does not have any
geographic referencing.
On Sat, Jul 8, 2017 at 9:01 PM, Manisha Ganeshan <
manisha.ganeshan86 at gmail.com> wrote:
> Hi Barry,
>
> I found some info on ENVI header files, and was able to figure out the
> data format, dimensions, and read the data successfully. Still trying to
> figure out the map and projection details, but I think that will be easier
> to do. Will let you know if I have further trouble.
>
> Thanks,
> Nisha
>
> On Sat, Jul 8, 2017 at 9:49 PM, Manisha Ganeshan <
> manisha.ganeshan86 at gmail.com> wrote:
>
>> Dear NCL community,
>>
>> I'm trying to read a binary file without much success. I have tried
>> asciiread and fbindirread functions, but the problem is I'm not sure what
>> to enter in the data type field. There is not much information in the
>> header file nor in the data description (web link below). The variable I am
>> expecting to read is surface elevation (likely in meters), but no matter
>> what data format I attempt to read, I don't seem to get reasonable values.
>> Any leads on how to proceed will be much appreciated. The actual binary
>> data file and the header file are available for download from the weblink
>> below.
>>
>> Thanks,
>> Nisha
>>
>> Weblink describing the data
>> *http://nsidc.org/data/nsidc-0422 <http://nsidc.org/data/nsidc-0422>*
>>
>>
>> Download link for binary file and header file
>> *https://opendrive.gsfc.nasa.gov/shortauth/z/b3zIg8ah
>> <https://opendrive.gsfc.nasa.gov/shortauth/z/b3zIg8ah>*
>> --
>> Dr. Manisha Ganeshan
>> Universities Space Research Association
>> Maryland, U.S.A.
>>
>
>
>
> --
> Dr. Manisha Ganeshan
> Universities Space Research Association
> Maryland, U.S.A.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170709/d93777a7/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DEM.png
Type: image/png
Size: 140322 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170709/d93777a7/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdDEM_bin.ncl
Type: application/octet-stream
Size: 2915 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170709/d93777a7/attachment.obj
More information about the ncl-talk
mailing list