[Thread Prev][Thread Next][Index]

[ferret_users] Sample a field along a set of line segments?



I want to sample a field along a line defined by a set of (x,y) points. Clearly I could use SAMPLEXY to extract the values at the given points, but I want to, in effect, draw straight lines between those points and sample all along those lines.

It is necessary to say how densely I want to sample, that is, how many intermediate points to add in between the given ones. Suppose I want to add an intermediate point at each value of the x-grid of the field to be sampled. As an example, suppose I have two points (155,7) and (158,13), and my background grid is 1 by 1, on integers. The points I want to add would be (156,9) and (157,11). How can I find those points and augment my original set to include them? Then I can use SAMPLEXY to sample the field.

Billy K
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William S. Kessler
NOAA / Pacific Marine Environmental Laboratory
7600 Sand Point Way NE
Seattle WA 98115 USA

william.s.kessler@noaa.gov
Tel: 206-526-6221
Fax: 206-526-6744
Home page: http://www.pmel.noaa.gov/people/kessler/



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement