[ncl-talk] short2flt
Dennis Shea
shea at ucar.edu
Tue Oct 11 09:26:36 MDT 2016
I have your file and I have no problems reading the data with 6.3.0 or the
beta (6.4.0). I do not have 6.2.1 available.
OlgaKelbin.ncl:
diri = "./"
fili = "ERA2T63_SFC_DM_19810101_20141201.nc"
f = addfile(diri+fili, "r")
t2m_short = f->t2m ; explicitly import the 'short'
variable
printVarSummary(t2m_short)
printMinMax(t2m_short, 0)
print("-----")
t2m = short2flt(t2m_short) ; convert to float
printVarSummary(t2m)
printMinMax(t2m, 0)
print("-----")
T2M = short2flt( f->t2m ) ; direct from file
printVarSummary(T2M)
printMinMax(T2M, 0)
print("-----")
The output is attached.
As I noted, the 'totype' function is not used within 'short2flt'. Something
is not right but I have no idea what the problem might be.
=====
Offline, you sent me the following which resulted in a 'segmentation fault'
ncl <return>
a = addfile("ERA2T63_SFC_DM_19810101_20141201.nc","r")
t2m = a=>t2m
printVarSummary(t2m)
era_hlp = short2flt(t2m)
printVarSummary(era_hlp)
quit
and get a segmentation fault... <======
Again, I am not sure what the problem might be. We can not replicate it.
++++++
You could send me the 6.2.1 contributed.ncl that you are using.
%> cp
$NCARG_ROOT/ncarg/nclscripts/csm/contributed.ncl contributed.ncl_621
Then send me this version of contributed.ncl_621 via email (gzip) or send
to the ftp site.
Regards
D
On Thu, Oct 6, 2016 at 7:29 AM, Dennis Shea <shea at ucar.edu> wrote:
> I am not sure why you are getting the "totype" error. I do not have the
> 6.2.1 version of contributed.ncl. However, to my knowledge, the "totype"
> function is not used in the "short2flt" function.
>
> ---
> Could you ftp the file to:
>
> ftp ftp.cgd.ucar.edu
> anonymous
> your_email
> cd incoming
> put .... file ....
> quit
>
> Then send am email after successful transfer.
>
> THX
> D
>
>
>
> On Thu, Oct 6, 2016 at 5:25 AM, Kelbin Olga <Olga.Kelbin at dwd.de> wrote:
>
>> Hello,
>>
>> I'm using *NCAR Command Language Version 6.2.1* and I have some problems
>> with *contributed.ncl (short2flt *command
>> *) *
>>
>> My script contains
>>
>> load "$NCARG_ROOT/ncarg/nclscripts/csm/contributed.ncl
>>
>> and
>> era_hlp = short2flt( a->t2m )
>>
>> The error message is the following:
>>
>> fatal:Undefined identifier: (totype) is undefined, can't continue
>> fatal:["Execute.c":8578]:Execute: Error occurred at or near line 478 in
>> file $NCARG_ROOT/ncarg/nclscripts/csm/contributed.ncl
>> fatal:["Execute.c":8578]:Execute: Error occurred at or near line 1987 in
>> file $NCARG_ROOT/ncarg/nclscripts/csm/contributed.ncl
>>
>> How can I fix this error?
>>
>>
>> Thank you in advance
>> Olga
>>
>>
>>
>> --
>> Dr. Olga Kelbin
>>
>> Deutscher Wetterdienst
>> Klima und Umweltberatung
>> Zentrales Klimabüro
>> Frankfurter Str. 135
>> 63067 Offenbach
>>
>> Phone +49 (0)69 8062-2472
>> Email olga.kelbin at dwd.de
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161011/dd1e543f/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out.OlgaKelbin
Type: application/octet-stream
Size: 2001 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161011/dd1e543f/attachment.obj
More information about the ncl-talk
mailing list