[Thread Prev][Thread Next][Index]

increasing performance with list/repeat indices




Greetings Ferret Users,

After discussing this with Ansley he asked that I post it to the Users
Group to see if someone else has experience with this.

Background: I calculated the climatology for 1957-1999 of air temperature
using ferret.  The climatology is 144x73x17x365.  I then smoothed it using
a 91 point window.  I want to subtract the climatology out from the
original files to get the anomalies. (the original files are
144x73x17x365(or6) as well).  I'm also only saving the northern
hemisphere, hence the j=36:73.

Here's a sample of what I'm doing:

yes? use airclimsmooth91.nc
yes? use air.1987.nc
yes? let airanom=air[d=2]-dailyclim[d=1,gt=GSJ1@asn]
repeat/i=1:144 save/ilimits=1:144/file="/data/ncep/aanom.1957.nc"/append
airanom[j=36:73,l=1:365]
yes? quit


!where GSJ1 is the grid name of air.1987.nc


This works but takes quite a long time (approx 8 hours per 1 annual data
file).  I'm now thinking that repeating over the z-axis might save some time as it
would decrease the number of times information was written to disk from
144 to 17 per file although I haven't tried it (it might not work due to
memory issues which is why I'm using the repeat command in the first
place).

Does anyone else have experience with this or know of a more efficient
solution?


Cheers,

Brent





[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement