[Thread Prev][Thread Next][Index]

Re: [ferret_users] Produce a time serie by averaging a large variable



Dear Patrick


VMRN2O   N2O Volume Mixing Ratio          1:144     1:143     1:79      1:11315
[. . .]
yes? plot VMRN2O[i=@ave, j=@ave, k=@ave]

[...]
What I do not understand is why the memory has to be so large
and finally why an internal chunk with only 144x143x79 cannot be made internally ?

I don't know the internal well enough to be able to answer those questions. Here I just propose a solution to your problem: You create a temporary file that stores the timeseries:

let ave = VMRN2O[i=@ave, j=@ave, k=@ave]
spawn rm tmp.nc
repeat/L=1:11315 (save/append/file=tmp.nc ave)
cancel var ave
open tmp.nc
plot ave 

(I haven't tested this code.)

Ryo


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement