Re: float to short transform

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri, 6 Oct 2006 13:26:38 -0600 (MDT)

Hi Jiangfeng,

You can use the copy_VarMeta procedure that is part of
contributed.ncl. You will need to load this script at the top of your
own script:

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

Then, if your float variable is "t", and your short variable is to be
"sh", you can do something like:

   sh = floattoshort(t)


On Fri, 6 Oct 2006, Jiangfeng Wei wrote:

> Dear all,
> I want to save some float data to as short format to save some space. I know I can use the command floattoshort, but the meta data will be lost. Is there any way to preserves meta data?
> -------------
> Jiangfeng Wei
> School of Earth and Atmospheric Sciences
> Georgia Institute of Technology, Atlanta, Georgia 30332
ncl-talk mailing list
Received on Fri Oct 06 2006 - 13:26:38 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 06 2006 - 15:05:48 MDT