Hi Kekuan
Did you include this line on your script?
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
?
Function short2flt seems to be part of the "contributed.ncl" package,
not native to NCL:
http://www.ncl.ucar.edu/Document/Functions/Contributed/short2flt.shtml
I hope this helps.
Gus Correa
---------------------------------------------------------------------
Gustavo Correa
Lamont-Doherty Earth Observatory - Columbia University
Palisades, NY, 10964-8000 - USA
---------------------------------------------------------------------
Kekuan Chu wrote:
> Dear Sir/Madam:
>      I tried to convert short type array to float, with the following 
> command
> 
>   "   filename = "amsr-avhrr-v2.20080910.nc"
>       in       = addfile(filename,"r")
>      sst    = in->sst(0,0,:,:)
>      sst    = (/short2flt(sst)/)
>       sst    = sst*0.01  "
> 
> The error is:
> 
>   Copyright (C) 1995-2009 - All Rights Reserved
>   University Corporation for Atmospheric Research
>   NCAR Command Language Version 5.1.1
>   The use of this software is governed by a License Agreement.
>   See http://www.ncl.ucar.edu/ for more details.
> fatal:Undefined identifier: (short2flt) is undefined, can't continue
> fatal:Execute: Error occurred at or near line 11 in file plot_sst.ncl
> 
> 
> How to handle this problem?
> Thank you very much!
> 
> BEST
> 
> Kekuan Chu
> 4/13/2010
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 13 11:31:03 2010
This archive was generated by hypermail 2.1.8 : Wed Apr 14 2010 - 09:15:22 MDT