[gradsusr] parsing time-units

afzaalkarori afzaalkarori at gmail.com
Thu Nov 10 02:00:23 EST 2011


 
  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

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20111110/e3d07cb6/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 43 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20111110/e3d07cb6/attachment-0003.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 2038 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20111110/e3d07cb6/attachment-0015.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 4750 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20111110/e3d07cb6/attachment-0016.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 8237 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20111110/e3d07cb6/attachment-0017.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 3819 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20111110/e3d07cb6/attachment-0018.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 16621 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20111110/e3d07cb6/attachment-0019.jpe 


More information about the gradsusr mailing list