[ncl-talk] short2flt error

Ehsan Taghizadeh ehsantaghizadeh at yahoo.com
Mon Sep 12 09:28:33 MDT 2022


Hi everybody,I hope you are doing well.I tried to read "2 metre temperature" from ERA5-Land nc file. This nc file include about 10 years, all months (12 months), all days (365 days), and all hours (24 hours) with size about 7 GB. I used following simple lines:
dr = "./"fn = "era5land.nc"fin = addfile(dr+fn, "r")t2mera = fin->t2m(:,::-1,:)printVarSummary(t2mera)
Output is like following lines:
Type: shortDimensions and sizes:   [time | 87648] x [latitude | 151] x [longitude | 251]Coordinates:            time: [955488..1043135]            latitude: [25..40]            longitude: [40..65]
However, if I use short2flt as below:t2meras = short2flt(fin->t2m(:,::-1,:))
Following error occurred:
fatal:NclMalloc Failed:[errno=12]fatal:Could not coerce values for operationfatal:["Execute.c":8637]:Execute: Error occurred at or near line 2013 in file /usr/local/ncl6.6/lib/ncarg/nclscripts/csm/contributed.ncl
Then it mentioned the line with the "short2flt" command.
I'll be thankful if I have any help.

-----------------------------------------------------------------------------Sincerely,Ehsan Taghizadeh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220912/2499fb76/attachment.htm>


More information about the ncl-talk mailing list