in reply to Re^2: Interpolating data using pdl
in thread Interpolating data using pdl
Actually, looking back at results in my answer, this bilinear is "somewhat" strange (and other interpolation methods are probably useless for the given task).
pdl> $x = sequence 3,3 pdl> $y = zeroes 5,5 pdl> bilin2d( $x, $y ) pdl> p $y [ [ 0 0.5 1 1.5 2] [1.5 2 2.5 3 3.5] [ 3 3.5 4 4.5 5] [4.5 5 5.5 6 6.5] [ 6 6.5 7 7.5 8] ]
That's better now. We can even visualize it with mesh3d [$y].
karthik248, it's not clear what kind of plot do you mean? 3-D? Over-impose some visualization onto a world map? Or just 2-D image with 3 different colors?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Interpolating data using pdl
by karthik248 (Acolyte) on Mar 15, 2017 at 17:53 UTC | |
by vr (Curate) on Mar 15, 2017 at 19:43 UTC | |
by karthik248 (Acolyte) on Mar 16, 2017 at 05:22 UTC | |
by vr (Curate) on Mar 16, 2017 at 08:43 UTC | |
by etj (Priest) on May 10, 2022 at 15:23 UTC |