[Thread Prev][Thread Next][Index]

Re: [ferret_users] Memory question



Hi Jonathan,

The memory size you are requesting is far too big. The value in the
'insufficient memory' error message are words but the argument to the
'set memory/size=nnn' command are MEGA-words. Try something like size=100.


>From the "Memory use" section of the FERRET Users Guide:
----
Use the command SET MEMORY/SIZE=nnn to increase the memory cache region
available to Ferret. The number of words listed in the memory is the
size of the request which failed; the total requirement for memory may
be larger than shown. nnn is expressed in MWords. For operations that
just load the data, nnn will need to be approximately the size in words
that is quoted in the message, divided by 1.e6. For many operations,
such as graphics operations or transforms, the calculations need more
memory, and so perhaps twice that size will be needed.
----

Cheers,
Marco

Jonathan Winter wrote:
> Hi all,
> 
> I am trying to regrid a 0.5 deg dataset to 5-min and then write it out
> as a NetCDF file.  I use the following commands:
> 
> use 030410_init_wsoi.nc
> use vegtype_5min.nc
> show grid vegtype[d=2]
> show grid wsoi_lay[d=1]
> define grid/X=GJR1/Y=GJR1/Z=GOL1/L=GOL1 veg_grid
> let wsoi =  wsoi_lay[d=1,G=veg_grid]
> set variable/title="Soil Moisture" wsoi
> set region/X=-179.96:179.96/Y=-89.958:89.958N/Z=0.1:4/T=6941:7275
> save/file=wsoi.nc wsoi
> 
> At that point I get:
>  **ERROR: insufficient memory: 18662400 words were requested.
>  *** NOTE: You can use SET MEMORY/SIZE=xxx to increase memory.
>  *** NOTE: The "Memory use" section of the FERRET Users Guide has
> further tips.
> 
> So I:
> set memory/size=20000000
> 
> And I get:
>  *** NOTE: internal overflow expressing =20000000 Mwords as words.
> Restoring previous memory size.
>  Cached data cleared from memory
> 
> If I try to set memory/size=1000000000 FERRET says it has done it, but
> then I run out of memory again if I try to write out:
>  **ERROR: insufficient memory: 671846400 words were requested.
>  *** NOTE: You can use SET MEMORY/SIZE=xxx to increase memory.
>  *** NOTE: The "Memory use" section of the FERRET Users Guide has
> further tips
> 
> Any thoughts on what is going on or how I may be able to do this?  Thank
> you in advance for the assistance.
> 
> Best,
> 
> Jonathan


-- 
***************************************
Marco Steinacher

Climate and Environmental Physics
Physics Institute, University of Bern
Sidlerstrasse 5, CH-3012 Bern

Phone ++41 (0)31 631 34 02
Fax   ++41 (0)31 631 87 42
steinacher@xxxxxxxxxxxxxxxx
http://www.climate.unibe.ch/~steinach
OpenPGP Key ID: 0x62937F7F
***************************************


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement