[gradsusr] SDF file does not have any non-coordinate variables

Charles Seman - NOAA Federal charles.seman at noaa.gov
Fri May 24 13:54:57 EDT 2013


Laura,

I don't know if it would make a difference, but one thing to try would 
be to change the order of the dimensions in the variables from (level, 
time, latitude, longitude) to (time, level, latitude, longitude).

Hope this helps,
Chuck

On 05/23/2013 09:20 PM, Laura Zamboni wrote:
> Hi,
>
> can you help me understanding why grads returns the following error:
> "gadsdf: SDF file does not have any non-coordinate variables"
>
> I've created an .nc file using Matlab that grads reads correctly but returns the error above when I add the "lev" dimension. (The data actually do not depend on either time or lev, but I am adding them to be able to use such file together with a second file which does have those dimensions).
>
> I am pasting here the header of the 2 files. Data are present on both files.
> Thank you,
> Laura
>
> $ ncdump -h eo_quadFit_noLev.nc
> netcdf eo_quadFit_noLev {
> dimensions:
> 	longitude = 180 ;
> 	latitude = 90 ;
> 	time = 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 quad(time, latitude, longitude) ;
> 		quad:long_name = "quadratic coeff." ;
> 		quad:units = "mm/day" ;
> 		quad:missing_value = -9999. ;
> 	double lin(time, latitude, longitude) ;
> 		lin:long_name = "linear coeff" ;
> 		lin:units = "mm/day" ;
> 		lin:missing_value = -9999. ;
> }
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> $ ncdump -h eo_quadFit_WITHLev.nc
> netcdf eo_quadFit_WITHLev {
> dimensions:
> 	longitude = 180 ;
> 	latitude = 90 ;
> 	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 lev(level) ;
> 		lev:long_name = "Level" ;
> 		lev:units = "hPa" ;
> 	double quad(level, time, latitude, longitude) ;
> 		quad:long_name = "quadratic coeff." ;
> 		quad:units = "mm/day" ;
> 		quad:missing_value = -9999. ;
> 	double lin(level, time, latitude, longitude) ;
> 		lin:long_name = "linear coeff" ;
> 		lin:units = "mm/day" ;
> 		lin:missing_value = -9999. ;
> }
>
>

-- 

Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.

********************************************************************
  Charles Seman                                Charles.Seman at noaa.gov
  U.S. Department of Commerce / NOAA / OAR
  Geophysical Fluid Dynamics Laboratory         voice: (609) 452-6547
  201 Forrestal Road                              fax: (609) 987-5063
  Princeton, NJ  08540-6649            http://www.gfdl.noaa.gov/~cjs/
********************************************************************

"The contents of this message are mine personally and do not reflect any
official or unofficial position of the United States Federal Government,
the United States Department of Commerce, or NOAA."



More information about the gradsusr mailing list