Re: memory problem

From: FV <fillipavarino_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 21 2014 - 08:15:41 MDT

Hi,

I have 8Gb of RAN, I


here is the PrintVarSummary information
 printVarSummary(vrt)

Variable: vrt
Type: float
Total Size: 1351142400 bytes
            337785600 values
Number of Dimensions: 3
Dimensions and sizes: [initial_time0_hours | 2920] x [g0_lat_1 | 241] x
[g0_lon_2 | 480]
Coordinates:
            initial_time0_hours: [876576..885333]
            g0_lat_1: [-90..90]
            g0_lon_2: [ 0..359.25]

Could it be because uv has more than 2Gbt ?

Variable: uv
Type: float
Total Size: 2702284800 bytes
            675571200 values
Number of Dimensions: 4
Dimensions and sizes: [2] x [2920] x [241] x [480]




2014-07-21 14:46 GMT+02:00 Dennis Shea <shea@ucar.edu>:

> [1] Thre is no need to explicitly allocate memort for 'v'
> [2] What does printVarSummary(vrt) return?
> [3] How much memory does you operating system have available?
>
>
> cdf_file = addfile ( "filename.grb" ,"r" )
> vrt = cdf_file->VO_GDS0_ISBL(:,::-1,:)
>
> printVarSummary(vrt) ; *always* look at your data
>
> uv = vr2uvG(vrt)
> printVarSummary(uv)
>
> v = uv(1,:,:,:)
>
> Responses only to ncl-talk
>
>
> On Mon, Jul 21, 2014 at 1:29 AM, FV <fillipavarino@gmail.com> wrote:
>
>> Dear all
>> I am trying to run a scrip that computes wind from vorticity like this:
>>
>>
>> cdf_file = addfile ( "filename.grb" ,"r" )
>> vrt = cdf_file->VO_GDS0_ISBL(:,::-1,:)
>> v = new ((/ntime,241,480/), double)
>> uv=vr2uvG(vrt)
>> v=uv(1,:,:,:)
>>
>> and I got the error message
>>
>> fatal:vr2uvG: Unable to allocate memory for temporary arrays
>>
>> Could anyone please help me?
>>
>> thanks in advance
>>
>> Filipa
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>

Received on Mon Jul 21 02:15:47 2014

This archive was generated by hypermail 2.1.8 : Fri Aug 01 2014 - 15:10:55 MDT