[ncl-talk] hdf5 file in ncl

Debasish Hazra debasish.hazra5 at gmail.com
Tue Nov 14 14:20:27 MST 2017


Hi,

I am trying to read attached HDF5 file using ncl v6.4 but not able to
extract data attributes from "Group".

 diri = "./November2017/1/"
     fili = "MYDAODHD.A2017305.0000.061.NRT.hdf"

            pthi = diri+fili
            w = addfile(pthi,"r")
            mod1 = "Aerosol_Optical_Depth"
            Latitude = "Latitude"
            Longitude = "Longitude"
            print(mod1)
             gp = w->GeoField

Variable: mod1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:   [1]
Coordinates:
(0)     Aerosol_Optical_Depth
fatal:["Execute.c":6397]:variable (GeoField) is not in file (w)

Not sure how to proceed with that. Any help is appreciated.

Debasish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171114/7ccc1287/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MYDAODHD.A2017305.0000.061.NRT.hdf
Type: application/x-hdf
Size: 293936 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171114/7ccc1287/attachment-0001.hdf>


More information about the ncl-talk mailing list