[ncl-talk] confusion with reading attributes
M P
mzp3769 at gmail.com
Thu Nov 21 16:01:44 MST 2019
Hello,
I have a file in the following format
netcdf aod_viirs_obs_2018041500_f {
dimensions:
nvars = 1 ;
nlocs = UNLIMITED ; // (27545 currently)
variables:
....
float latitude at MetaData(nlocs) ;
with latitude at MetaData just being a variable name
That is falsely being read as an attribute with a code
obsfile = addfile("./indata/aod_viirs_obs_2018041500_s.nc4","r")
; lons, lats, AOD
lats = ndtooned(obsfile->latitude at MetaData(:)) ; Pull off lat
and warning/error
warning:["NclAdvancedFile.c":5317]:AdvancedFileReadVarAtt: (MetaData) is
not an attribute of (latitude)
How to correct it so that the variable latitude at MetaData is read properly?
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191121/c8d5d243/attachment.html>
More information about the ncl-talk
mailing list