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)
copy_VarMeta(t,sh)
--Mary
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
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
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