[ncl-talk] Reading binary files
Barry Lynn
barry.h.lynn at gmail.com
Sat Jul 8 20:56:11 MDT 2017
Hi Manisha:
I am not sure if there is an "easy" way to read it.
However, can you read this file with a fortran program read?
If so, you can use the WRAPIT program to link this fortran program to your
NCL script and go from there.
(Keep in mind, though, if you want to map it, you'll need to attach
attributes to the variable. I can show you how to do either step, if you
need help).
Barry
On Sun, Jul 9, 2017 at 4:49 AM, 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.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
--
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581
C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170709/80be9261/attachment.html
More information about the ncl-talk
mailing list