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

Love, Mr. Gary, Contractor, Code 7542 gary.love.ctr at nrlmry.navy.mil
Thu Jun 30 20:14:06 EDT 2016


I have seen this problem reported earlier in the grads forum, but no clear
solution has emerged.

I'm using 2.0.2 on platform: Linux 2.6.32.59-0.7-default #1 SMP 2012-07-13
15:50:56 +0200 x86_64 x86_64 x86_64 GNU/Linux

Some .nc files do not open and give an error.
 gadsdf: SDF file does not have any non-coordinate variables.

No script is being used. This occurs at the command line when attempting to
sdfopen the file.

The results from ncdump -h for the bad file and a similar good file appear
below..

The issue may be related to the "copy" variable.

Thanks for any advice, I did not write these files but have access to the
author who doesn't know what the problem is either.

Gary Love
NRL Monterey, CA

BAD FILE
_______
netcdf ENAAPS_2013080200_24hr {
dimensions:
	lat = 180 ;
	lon = 360 ;
	vert = 25 ;
	copy = 12 ;
	time = 2 ;
variables:
	int time(time) ;
		time:units = "seconds since 2013-08-02 00:00:00" ;
		time:standard_name = "time" ;
	int forecast_reference_time ;
		forecast_reference_time:units = "seconds since 1970-01-01
00:00:00" ;
		forecast_reference_time:standard_name =
"forecast_reference_time" ;
	float lat(lat) ;
		lat:units = "degrees_north" ;
		lat:long_name = "latitude" ;
	float lon(lon) ;
		lon:units = "degrees_east" ;
		lon:long_name = "longitude" ;
	float sigma(vert) ;
		sigma:units = "sigma_level" ;
		sigma:long_name = "mid-level sigma b" ;
	float height(time, copy, vert, lat, lon) ;
		height:units = "m" ;
		height:long_name = "elevation above surface" ;
	float pressure(time, copy, vert, lat, lon) ;
		pressure:units = "hPa" ;
		pressure:long_name = "mid-level Pressure" ;
	float ABF_mass_concentration(time, copy, vert, lat, lon) ;
		ABF_mass_concentration:units = "ug/m^3" ;
		ABF_mass_concentration:long_name = "Anthropogenic and
Biogenic fine mass concentration" ;
	float dust_mass_concentration(time, copy, vert, lat, lon) ;
		dust_mass_concentration:units = "ug/m^3" ;
		dust_mass_concentration:long_name = "Dust mass
concentration" ;
	float smoke_mass_concentration(time, copy, vert, lat, lon) ;
		smoke_mass_concentration:units = "ug/m^3" ;
		smoke_mass_concentration:long_name = "Smoke mass
concentration" ;
	float seasalt_mass_concentration(time, copy, vert, lat, lon) ;
		seasalt_mass_concentration:units = "ug/m^3" ;
		seasalt_mass_concentration:long_name = "Seasalt mass
concentration" ;

// global attributes:
		:Conventions = "CF-1.0" ;
data:

 time = 0, 86400 ;

}

GOOD FILE
________
netcdf ENAAPS_2013081518_24hr_e1 {
dimensions:
	lat = 180 ;
	lon = 360 ;
	time = 5 ;
variables:
	int time(time) ;
		time:units = "seconds since 2013-08-15 18:00:00" ;
		time:standard_name = "time" ;
	int forecast_reference_time ;
		forecast_reference_time:units = "seconds since 1970-01-01
00:00:00" ;
		forecast_reference_time:standard_name =
"forecast_reference_time" ;
	float lat(lat) ;
		lat:units = "degrees_north" ;
		lat:long_name = "latitude" ;
	float lon(lon) ;
		lon:units = "degrees_east" ;
		lon:long_name = "longitude" ;
	float total_aod(time, lat, lon) ;
	float sulfate_aod(time, lat, lon) ;
	float dust_aod(time, lat, lon) ;
	float smoke_aod(time, lat, lon) ;
	float seasalt_aod(time, lat, lon) ;

// global attributes:
		:Conventions = "CF-1.0" ;
data:

 time = 0, 21600, 43200, 64800, 86400 ;

}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5433 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20160701/f1745404/attachment.bin 


More information about the gradsusr mailing list