[ncl-talk] short2flt error
Rick Brownrigg
brownrig at ucar.edu
Mon Sep 12 09:44:42 MDT 2022
Hi Ehsan,
That errno=12 is an out of memory error, so I suspect short2flt() is not
the issue. Are you working with really large datasets/arrays? That short
array converted to floats will be 6.6GB
Rick
On Mon, Sep 12, 2022 at 9:30 AM Ehsan Taghizadeh via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:
> 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: short
> Dimensions 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 operation
> fatal:["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*
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220912/8dcb05e5/attachment.htm>
More information about the ncl-talk
mailing list