[ncl-talk] change dimensions to lat/lon

Su, Jian (GSFC-610.2)[ADNET SYSTEMS INC] jian.su at nasa.gov
Mon May 1 12:28:09 MDT 2017


Hello,

I am using ncl to convert HDF5 files to netCDF, and one of them looks like this:

Variable: f
Type: file
filename:         out
path:    out.nc4
   file global attributes:
   dimensions:
      DIM_001 = 1440
      DIM_002 = 720
   variables:
      integer pixTot ( DIM_001, DIM_002 )
         CodeMissingValue :       -9999
         DimensionNames :         nlon,nlat


How can I change DIM_001 and DIM_002 to lat/lon, and add the grid information eg,

LatitudeResolution=0.25;
LongitudeResolution=0.25;
NorthBoundingCoordinate=90;
SouthBoundingCoordinate=-90;
EastBoundingCoordinate=180;
WestBoundingCoordinate=-180;

Thanks,
Jay


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170501/b993a676/attachment.html 


More information about the ncl-talk mailing list