[Thread Prev][Thread Next][Index]

Re: [ferret_users] Re: How to save "time axis" in float type?



Hi
We don't offer a setting for the coordinate variables, even with the (upcoming) release of Ferret v6.83.  As it says in the documentation you point to here, "Coordinate data is always written in double precision".   The SET LIST/OUTTYPE and SAVE/OUTTYPE will apply only to file variables.  (My apologies that the documentation got ahead of the Ferret releases.)

In Ferret v6.82 and previous versions, you can control the output type, still only for file variables, with SET VAR/OUTTYPE.

We would really need separate syntax to offer control over the type of coordinate variable data.  Even if you wanted floating point data for a file variable, it might be important to list the coordinate data using double precision; if for instance it represents time in minutes for a number of years.

Ansley

On 10/23/2012 3:29 AM, Yu, Hao-Cheng wrote:
Dear ferret user

I also notice "set list/outtype=float" seems start to support from v6.83
(at http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/SAVE#SAVE_OUTPUT_TYPE)

However, the latest version seems is 6.82?
Is this means I can't change type right now?

Regards, dan

2012/10/23 Yu, Hao-Cheng <danish.url@xxxxxxxxx>
Dear all ferret users,

I have to sub-sample from a netcdf file and keeps its type as original file.
The file contains 2 variables with time axis which has "float" type.
I use script like following:
----------------------------
use input.nc
CANCEL MODE UPCASE_OUTPUT
set list/outtype=float
list/KEEP_AXISNAMES/i=320:482/j=294:428/form=cdf/file=test.nc/clob lon,lat,dlwrf,dswrf
-----------------------------------------------------
All variable saves with "float" type but not for "time", it's "double".

Any ideas to easily convert this will be appreciated!


Regards, dan




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

Privacy Policy | Disclaimer | Accessibility Statement