|
Hi, I think there is some confusion about @FLN. The argument @fln:5
doesn't do what I think many of us think it does. The argument
only tells Ferret that if you've given a region in the
transformation specification, then it will look n cells beyond the
edges of that region. The filler always entirely fills
missing-data regions in the interior of the region we're working
with. I think we all want it to fill only within a point or few
points around each missing-data region wherever that occurs.
That's what I had in mind with my first answer earlier today. I've just enhanced the documentation with another example: yes? let var = {1,,,,2,,,,6}
yes? list var
VARIABLE : {1,,,,2,,,,6}
SUBSET : 9 points (X)
1 / 1: 1.000
2 / 2: ....
3 / 3: ....
4 / 4: ....
5 / 5: 2.000
6 / 6: ....
7 / 7: ....
8 / 8: ....
9 / 9: 6.000
yes? ! x=3:9@fln:1 says look only one point beyond the requested limits of x=3:9 when filling.
yes? ! The interior gaps are all filled.
yes? list var[x=3:9@fln:1]
VARIABLE : {1,,,,2,,,,6}
linear-filled by 1 pts on X
SUBSET : 7 points (X)
3 / 3: ....
4 / 4: ....
5 / 5: 2.000
6 / 6: 3.000
7 / 7: 4.000
8 / 8: 5.000
9 / 9: 6.000
yes? ! x=3:9@fln:5 says look within 5 grid cells beyond the requested limits of x=3:9 when filling
yes? list var[x=3:9@fln:5]
VARIABLE : {1,,,,2,,,,6}
linear-filled by 5 pts on X
SUBSET : 7 points (X)
3 / 3: 1.500
4 / 4: 1.750
5 / 5: 2.000
6 / 6: 3.000
7 / 7: 4.000
8 / 8: 5.000
One alternative would be to take a look at the function yes? show function fill_xy FILL_XY(DATA,MASK,N) fills missing values with average nearest neighbour values DATA: this arg is filled MASK: mask (1 -> fill, missing -> do not fill) N: the maximum number of fill-passes
On 9/4/2018 6:40 PM, saurabh rathore
wrote:
|