[gradsusr] Netcdf issue with v2.1.a2

Jennifer Adams jma at cola.iges.org
Fri Jan 16 09:03:24 EST 2015


Hi, Laura — 
GrADS employs the udunits library to check the units fields of a netcdf file. It seems that your time axis unit, “Days since …” is not acceptable. You must change it to “days since …” in order for the library to recognize it. That is why you are getting the error message that says there is no discernable time coordinate. The second problem, “…file does not have any non-coordinate values”, stems from the fact that it didn’t find a time axis. Once you fix the time axis units, sdfopen should work properly. 
—Jennifer

On Jan 13, 2015, at 2:40 PM, Zamboni, Laura <lzamboni at mcs.anl.gov> wrote:

> Hello,
> 
> after updating from 2.0.2 to 2.1.a2 I am no longer able to read a NetCDF file I create using Matlab. This is the error message:
> SDF file has no discernable time coordinate -- using default values.
> gadsdf: SDF file does not have any non-coordinate variables.
> 
> Ideas?
> Thanks,
> Laura
> 
> These are the attributes of the nc file:
> 
> dimensions:
>     longitude = 360 ;
>     latitude = 180 ;
>     time = 1 ;
>     level = 1 ;
> variables:
>     double longitude(longitude) ;
>         longitude:long_name = "Longitude" ;
>         longitude:units = "degrees_east" ;
>     double latitude(latitude) ;
>         latitude:lat_name = "Latitude" ;
>         latitude:units = "degrees_north" ;
>     double time(time) ;
>         time:long_name = "Time" ;
>         time:calendar_type = "JULIAN" ;
>         time:units = "Days since 1950-01-01 00:00:00" ;
>     double level(level) ;
>         level:long_name = "Level" ;
>         level:units = "hPa" ;
>     double p2(level, time, latitude, longitude) ;
>         p2:long_name = "quadratic" ;
>         p2:units = "mm/day" ;
>         p2:missing_value = -999000000. ;
>     double p1(level, time, latitude, longitude) ;
>         p1:long_name = "linear" ;
>         p1:units = "mm/day" ;
>         p1:missing_value = -999000000. ;
>     double p0(level, time, latitude, longitude) ;
>         p0:long_name = "const" ;
>         p0:units = "(mm/day)" ;
>         p0:missing_value = -999000000. ;
>     double ra(level, time, latitude, longitude) ;
>         ra:long_name = "range quadratic term" ;
>         ra:units = "mm/day" ;
>         ra:missing_value = -999000000. ;
>     double rb(level, time, latitude, longitude) ;
>         rb:long_name = "range linear term" ;
>         rb:units = "mm/day" ;
>         rb:missing_value = -999000000. ;
> 
> 
> -------------------------    
> Laura Zamboni, PhD
> Climate Scientist
> University of Chicago and Argonne National Laboratory
> 9700 S.Cass Ave
> TCS Bldg #240, room 4152
> Argonne, IL 60439
> ph.+1 630-252-1131
> fax. +1 630-252-5986
> web: http://www.mcs.anl.gov/~lzamboni/
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150116/c1113235/attachment-0001.html 


More information about the gradsusr mailing list