[Thread Prev][Thread Next][Index]

Re: [ferret_users] write out dimension variables with type float



Hi Hella,
In fact you can do this.  It seems to have escaped documentation, but was implemented along with the SAVE/OUTTYPE syntax you mention, in Ferret v6.84.  The syntax,
SET AXIS/OUTTYPE= 
will do what you want.  It applies to a coordinate axis, so would need to be set for all directions.
yes? set axis/outtype=float `var1,return=xaxis`
yes? set axis/outtype=float `var1,return=yaxis`

yes? save/clobber/file=out.nc/outtype=float var1
In addition, Ferret keeps track of the data type of coordinate data when reading data from netCDF/OPeNDAP files.  It uses that same type on output by default for data on grids from netCDF files. So, if the axes have float or integer coordinates, that will not change on output.

Ansley



On 11/9/2015 2:30 PM, Hella Riede wrote:
Dear ferret list,


the type of variables written to a netCDF file  can be controlled via

    save/append/file=out.nc/outtype=float var1

This as well as SET LIST/OUTTYPE=FLOAT only has an effect on non-dimensional variables. Is there a similar possibility for dimension variables (written out implicitly together with the variables)?


Thank you in advance.

Best wishes,
Hella


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement