[gradsusr] parsing time-units
Jennifer Adams
jma at cola.iges.org
Thu Nov 10 10:46:44 EST 2011
You need to use a descriptor file with a TDEF statement. Please have a look at http://iges.org/grads/gadoc/SDFdescriptorfile.html. The xdfopen command will probably meet your needs.
--Jennifer
On Nov 10, 2011, at 2:00 AM, afzaalkarori wrote:
> <spacer.gif> <tr.jpg>
>
> Dear GrADS Users!
> I am running opengrads v2.0.1.oga1 on windows xp PC. I need to open an NC file (->sdfopen filename.nc) but gives following error
> -> Scanning self-describing file: D:\E\data\sst\HadOIBl\sst_HadOIBl_bc_64x128_1949_2001_c020411.nc
> gadsdf: Error parsing time_units for SDF file.
> The ncdump yielded following header information about file
> netcdf sst_HadOIBl_bc_64x128_1949_2001_c020411 {
> dimensions:
> time = UNLIMITED ; // (634 currently)
> lon = 128 ;
> lat = 64 ;
> variables:
> double time(time) ;
> time:units = "day as %Y%m%d.%f" ;
> time:axis = "T" ;
> double lon(lon) ;
> lon:units = "degrees_east" ;
> lon:long_name = "longitude" ;
> lon:axis = "X" ;
> lon:topology = "circular" ;
> lon:modulo = 360. ;
> double lat(lat) ;
> lat:units = "degrees_north" ;
> lat:long_name = "latitude" ;
> lat:axis = "Y" ;
> float SST_cpl(time, lat, lon) ;
> SST_cpl:comment = "Melded Boundary Condition Data: Mid-Month SST
> (C)" ;
> SST_cpl:long_name = "BCS Pseudo SST" ;
> SST_cpl:units = "deg_C" ;
> SST_cpl:grid_name = "gaussian" ;
> SST_cpl:grid_type = "gaussian" ;
> SST_cpl:level_description = "Earth surface" ;
> SST_cpl:subgrid = "time:point" ;
> SST_cpl:axis = "TYX" ;
> SST_cpl:missing_value = 1.e+036f ;
> float ice_cov(time, lat, lon) ;
> ice_cov:comment = "Melded Boundary Condition Data: Mid-Month Sea
> Ice Concentration" ;
> ice_cov:long_name = "BCS Pseudo Sea-ice concentration" ;
> ice_cov:units = "fraction" ;
> ice_cov:grid_name = "gaussian" ;
> ice_cov:grid_type = "gaussian" ;
> ice_cov:level_description = "Earth surface" ;
> ice_cov:subgrid = "time:point" ;
> ice_cov:axis = "TYX" ;
> ice_cov:missing_value = 1.e+036f ;
> int date(time) ;
> date:long_name = "current date (YYYYMMDD)," ;
> int datesec(time) ;
> datesec:long_name = "current seconds of current date," ;
> // global attributes:
> :Conventions = "none" ;
> :appendices = 1 ;
> :calendar = "noleap" ;
> :comment = "hadisst/reynolds data melded by J. Hurrell, Climate
> Analysis Section, NCAR" ;
> :production = "obs" ;
> :institution = "NCAR" ;
> :history = "Wed Apr 10 17:50:37 2002: ncatted -a long_name,dates
> ec,o,c,current seconds of current date, amipbc_sst_T42_1949_2001.nc\n",
> "Wed Apr 10 17:50:37 2002: ncatted -a long_name,date,o,c,current date (YYYYM
> MDD), amipbc_sst_T42_1949_2001.nc\n",
> "Wed Apr 10 17:50:36 2002: ncatted -a comment,global,o,c,hadisst/reynolds da
> ta melded by J. Hurrell, Climate Analysis Section, NCAR amipbc_sst_T42_1949_2001
> .nc\n",
> "Wed Apr 10 17:50:36 2002: ncatted -a Conventions,global,o,c,none amipbc_sst
> _T42_1949_2001.nc\n",
> "Wed Apr 10 17:50:36 2002: ncatted -a units,ice_cov,o,c,fraction amipbc_sst_
> T42_1949_2001.nc\n",
> "Wed Apr 10 17:50:35 2002: ncatted -a long_name,ice_cov,o,c,BCS Pseudo Sea-i
> ce concentration amipbc_sst_T42_1949_2001.nc\n",
> "Wed Apr 10 17:50:35 2002: ncatted -a units,SST_cpl,o,c,deg_C amipbc_sst_T42
> _1949_2001.nc\n",
> "Wed Apr 10 17:50:35 2002: ncatted -a long_name,SST_cpl,o,c,BCS Pseudo SST a
> mipbc_sst_T42_1949_2001.nc\n",
> "Wed Apr 10 17:50:34 2002: ncks -v datesec date.1949_2001.nc amipbc_sst_T42_
> 1949_2001.nc\n",
> "Wed Apr 10 17:50:31 2002: ncks -v date date.1949_2001.nc amipbc_sst_T42_194
> 9_2001.nc\n",
> "Wed Apr 10 17:50:17 2002: ncrename -d longitude,lon -d latitude,lat -v long
> itude,lon -v latitude,lat -v tosbcs,SST_cpl -v sicbcs,ice_cov amipbc_sst_T42_194
> 9_2001.nc\n",
> "Wed Apr 10 17:50:16 2002: ncks -v sicbcs amipbc_ice_T42_1949_2001.nc amipbc
> _sst_T42_1949_2001.nc" ;
> }
>
> 2011-11-10
> Muhammad Afzaal Karori
> Institute of Atmospheric Physics
> Chinese Academy of Sciences
> Beijing - P.R. China
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20111110/6bc7cce1/attachment-0003.html
More information about the gradsusr
mailing list