[Thread Prev][Thread Next][Index]

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

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 for all timesteps and we can use it as is.  If, on the other hand, the number of good grindpoints is less than lmax, there are some timesteps when rain is missing and we regard all rain values as missing for that gridpoint (x,y).


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

Privacy Policy | Disclaimer | Accessibility Statement