[Thread Prev][Thread Next][Index]

[ferret_users] differing types of time and time_bounds tripping up ferret



Hi,

I've got some model output that is tripping up ferret and am seeking advice on how to easily get ferret to access the output. The coordinate variable time has an attribute bounds, with value time_bounds. The unusual aspect is that the variable time is of type float, while the variable time_bounds is of type double. The value for the variable time is the end of the interval specified by time_bounds.

When I attempt to load the file with the use command, I get an INFO message stating 'bounds "time_bounds" do not enclose point on axis time'. While I think that the INFO message is erroneous, it is not fatal, so I am tempted to brush it off. However, I suspect that it indicates an underlying 'bug/feature' in ferret that is leading to the following.

When I attempt to access a variable that is defined on this dimension, I get an ERROR message stating 'illegal limits: VAR does not exist at ...', and cannot access the variable values.

I've attached a much simplified example, in CDL and netCDF form.

Given such a file, how can I get ferret to access the variable?

Please note that I have many, many such files, so converting the type of time_bounds would be rather inconvenient.

The machines I use have versions 6.303 and 6.1. I do not know if this behavior persists with more recent releases of ferret.

Thanks, Keith

******************************************************************
Keith Lindsay                http://www.cgd.ucar.edu/oce/klindsay/
email: klindsay@xxxxxxxx   phone: 303-497-1722   fax: 303-497-1700
netcdf foo {
dimensions:
	time = UNLIMITED ; // (1 currently)
	hist_interval = 2 ;
variables:
	float time(time) ;
		time:long_name = "time" ;
		time:units = "days since 0001-01-01 00:00:00" ;
		time:calendar = "noleap" ;
		time:bounds = "time_bounds" ;
	double time_bounds(time, hist_interval) ;
	float var(time) ;
data:

 time = 31 ;

 time_bounds =
  0, 31 ;

 var = 1 ;
}

Attachment: foo.nc
Description: Cdf file


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement