[gradsusr] gadsdf: Error parsing time units in SDF file.

Mark Stanley markst at wni.com
Mon Mar 8 10:01:35 EST 2021


I am very new to GrADS so I hope this is a simple issue to resolve, but the answer is eluding me I’m afraid. I am getting the error “gadsdf: Error parsing time units in SDF file.” if I attempt to use sdfopen to open a netCDF file which is able to be successfully opened by other installations of GrADS used by others at our office. Below is the config output of my GrADS installation as well as the truncated ncdump of the netCDF file I’m attempting to open (though we are getting the same error for other netCDF files we’ve tried).

For reference this installation was done through a package install (on CentOS 7.9) and not compiled from source, but it is the same version of GrADS as the one that is working on the same files.

++++++++++++++++++++++++++++++++++++++

ga-> q config
Config: v2.0.2 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids geotiff shapefile
Grid Analysis and Display System (GrADS) Version 2.0.2
Copyright (c) 1988-2011 by Brian Doty and the
Institute for Global Environment and Society (IGES) 
This program is distributed WITHOUT ANY WARRANTY 
See file COPYRIGHT for more information. 

Built Wed Aug 13 04:53:19 UTC 2014 for x86_64-redhat-linux-gnu

This version of GrADS has been configured with the following options:
  o Built on a LITTLE ENDIAN machine
  o Athena Widget GUI DISABLED
  o Command line editing ENABLED 
      http://tiswww.case.edu/php/chet/readline/rltop.html 
  o printim command for image output ENABLED 
      http://www.zlib.net 
      http://www.libpng.org/pub/png/libpng.html 
      http://www.libgd.org/Main_Page 
  o GRIB2 interface ENABLED 
      http://www.ijg.org 
      http://www.ece.uvic.ca/~mdadams/jasper 
      http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 
      g2clib-1.4.0  
  o NetCDF interface ENABLED 
      http://www.unidata.ucar.edu/software/netcdf  
      netcdf 4.3.3.1 of Dec 10 2015 16:44:18 $  
  o OPeNDAP gridded data interface ENABLED
  o OPeNDAP station data interface DISABLED
  o HDF4 and HDF5 interfaces ENABLED 
      http://hdfgroup.org 
      HDF 4.2r10 
      HDF5 1.8.12 
  o GeoTIFF and KML/TIFF output ENABLED
      http://www.libtiff.org 
      http://geotiff.osgeo.org 
  o KML contour output ENABLED
  o Shapefile interface ENABLED
      http://shapelib.maptools.org 

For additional information please consult http://iges.org/grads <http://iges.org/grads>

++++++++++++++++++++++++++++++++++++++

# ncdump XinHong_Copernicus_Currents_Jan20.nc | more
netcdf XinHong_Copernicus_Currents_Jan20 {
dimensions:
	time = 25 ;
	depth = 1 ;
	latitude = 61 ;
	longitude = 61 ;
variables:
	float utotal(time, depth, latitude, longitude) ;
		utotal:_FillValue = 1.e+20f ;
		utotal:least_significant_digit = 3 ;
		utotal:long_name = "Eastward total velocity (Eulerian + Waves + 
Tide)" ;
		utotal:standard_name = "eastward_sea_water_velocity" ;
		utotal:units = "ms-1" ;
		utotal:_ChunkSizes = 1, 1, 1021, 2160 ;
	float depth(depth) ;
		depth:valid_min = 0.494025f ;
		depth:valid_max = 0.494025f ;
		depth:long_name = "Depth" ;
		depth:standard_name = "depth" ;
		depth:units = "m" ;
		depth:positive = "down" ;
		depth:_CoordinateAxisType = "Height" ;
		depth:_CoordinateZisPositive = "down" ;
		depth:axis = "Z" ;
	float latitude(latitude) ;
		latitude:valid_max = -12.f ;
		latitude:valid_min = -17.f ;
		latitude:long_name = "latitude coordinate" ;
		latitude:standard_name = "latitude" ;
		latitude:units = "degrees_north" ;
		latitude:step = 0.08332825 ;
		latitude:_CoordinateAxisType = "Lat" ;
		latitude:axis = "Y" ;
	double time(time) ;
		time:units = "hours since 1950-01-01 0:0:0" ;
		time:calendar = "standard" ;
		time:long_name = "time" ;
		time:standard_name = "time" ;
		time:step = 1 ;
		time:_ChunkSizes = 1024 ;
		time:_CoordinateAxisType = "Time" ;
		time:valid_min = 622827.5 ;
		time:valid_max = 622851.5 ;
		time:axis = "T" ;
	float vtotal(time, depth, latitude, longitude) ;
		vtotal:_FillValue = 1.e+20f ;
		vtotal:least_significant_digit = 3 ;
		vtotal:long_name = "Northward total velocity (Eulerian + Waves +
 Tide) " ;
		vtotal:standard_name = "northward_sea_water_velocity" ;
		vtotal:units = "ms-1" ;
		vtotal:_ChunkSizes = 1, 1, 1021, 2160 ;
	float longitude(longitude) ;
		longitude:valid_min = 148.f ;
		longitude:long_name = "longitude coordinate" ;
		longitude:standard_name = "longitude" ;
		longitude:units = "degrees_east" ;
		longitude:step = 0.08332825 ;
		longitude:_CoordinateAxisType = "Lon" ;
		longitude:valid_max = 153.f ;
		longitude:axis = "X" ;

// global attributes:
		:product = "GLOBAL_ANALYSIS_FORECAST_PHY_001_024" ;
		:producer = "CMEMS - Global Monitoring and Forecasting Centre" ;
		:title = "hourly mean merged surface currents from oceanic circu
lation, tides and waves" ;
		:area = "GLOBAL" ;
		:quality_information_document = "http://marine.copernicus.eu/doc
uments/QUID/CMEMS-GLO-QUID-001-024.pdf" ;
		:Conventions = "CF-1.6" ;
		:credit = "E.U. Copernicus Marine Service Information (CMEMS)" ;
		:contact = "servicedesk.cmems at mercator-ocean.eu" ;
		:references = "http://marine.copernicus.eu" ;
		:source = "MERCATOR PSY4QV3R1, mfwamglo, FES2014" ;
		:licence = "http://marine.copernicus.eu/services-portfolio/servi
ce-commitments-and-licence/" ;
		:dataset = "global-analysis-forecast-phy-001-024-hourly-merged-u
-v" ;
		:product_user_manual = "http://marine.copernicus.eu/documents/PU
M/CMEMS-GLO-PUM-001-024.pdf" ;
		:institution = "MERCATOR OCEAN" ;
		:julian_day_unit = "hours since 1950-01-01 00:00:00" ;
		:FROM_ORIGINAL_FILE__latitude_min = -80 ;
		:FROM_ORIGINAL_FILE__latitude_max = 90. ;
		:FROM_ORIGINAL_FILE__longitude_min = -180. ;
		:FROM_ORIGINAL_FILE__longitude_max = 179.91667175293 ;
		:_CoordSysBuilder = "ucar.nc2.dataset.conv.CF1Convention" ;
		:comment = "" ;
		:history = "Data extracted from dataset http://localhost:8080/th
redds/dodsC/global-analysis-forecast-phy-001-024-hourly-merged-uv" ;
data:

++++++++++++++++++++++++++++++++++++++

Thank you in advance for the help.

Kind regards

Mark Stanley
Weathernews Inc.
markst at wni.com

Ephesians 3:20

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20210308/d7c7afe9/attachment-0001.html>


More information about the gradsusr mailing list