[Thread Prev][Thread Next][Index]

Re: [ferret_users] Data appending issue



Hi Venu,

It's always best if you show what you've tried and what your data looks like so we don't have to guess too much.


Anyway, I think that all you need to to is define a daily time axis and use the @AVE regridder and multiply by 86400 seconds. Make sure that you use the APPEND qualifier when saving

e.g.

def axis/units=days/edges/t="1--jan-1980":"1-jan-2018":1    my_taxis
let  var_daily= var[gt=var[gt=my_taxis@ave]
let var_daily_int=var_daily*86400

save/clob/l=1/file=myfile.nc var_daily_int
repeat/l=1:number_of_days_that_you_want save/APPEND/file=myfile.nc var_daily_int


Also, make sure you aren't CLOBBERing the file by mistake.  We've all done that!

Russ

On 11/12/18 6:53 pm, Venu wrote:
Hi,
Recently I have come across a problem in appending the data to the NetCDF file. The issue is as follows.
I have 6 hourly data for about 38 years. Now I want to apply time integral (@din) on 4-time steps repeatedly from the beginning to ending and trying to append the time-integrated data to a new NetCDF file. However, when I attempt to do so, the append command seems not working, and the file shows only a single time step all the time. 
I tried to find the solution in ferret FAQs but could not find anything discussed in it. Any help would be appreciated.  

--
Best wishes....!!
Venu.



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

Privacy Policy | Disclaimer | Accessibility Statement