[Thread Prev][Thread Next][Index]

Re: [ferret_users] interpolation to make an uniform NaN in data for all time steps



Thanks Ryo, I will try it and let you know. 

On Fri, Sep 7, 2018, 7:26 PM Ryo Furue <furue@xxxxxxxxxx> wrote:
Hi Saurabh,

On Wed, Sep 5, 2018 at 10:43 AM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
I am facing a problem that in my data set I dont have uniform NaN locations i.e. location of NaN is changing with time so as the Number of Good Points. So I thought to use interpolation to make uniform NaN location at all time steps. such that Number of Good Points will be same at all time steps.

Let us see if I correctly understand what you are trying to achieve.  At each point (x,y), you have a time series rain[L=1:LEND]. If rain is missing at some timesteps, you want rain to be missing at all timesteps.  Is that what you want?  If so,

! untested.
let lend = `rain,return=lend`
let rain_fixed = if rain[l=1:`lend`@NGD] lt lend then rain

For each gridpoint (x,y): If the number of "good" timesteps is equal to lend, rain is defined fo

[Thread Prev][Thread Next][Index]