Re: memory problem

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 21 2014 - 06:46:13 MDT

[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 12:46:18 2014

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