[Thread Prev][Thread Next][Index]
Re: [ferret_users] Problems saving a file
Hi Gaby,
You said you want to construct a daily mean dataset from
a four-hourly time series. Without worrying about whether
memory is enough or not, you can use NCO if your original
data is in a netCDF file: In a pseudo code
for day = 0 to numday-1
lstart = day * 6
lend = istart + 5
ncks -d time,$lstart,$lend input.nc oneday.nc
ncra oneday.nc day$day.nc
endfor
ncrcat day0.nc day1.nc . . . output.nc
rm day*.nc
The idea is that you extract one day (ncks),
average it (ncra), and collect all the days into
one file (ncrcat).
There may be more efficient solutions. ncap2 might be
able to do
Regards,
Ryo
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement