| Re: Drawing satellite pixels on maps? [message #7455 is a reply to message #7452] |
Tue, 19 November 1996 00:00   |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Philippe Peeters <Philippe.Peeters@oma.be> writes:
> [Question about rendering split pixels that I can't answer without research.]
>
> And now a question related to the same topic. How can I resample the
> irregular ground pixels onto a regular (square or rectangle) grid?
The easiest way to resample irregular ground pixels to a regular
grid is to use the TRIANGULATE and TRIGRID routines that are
built into IDL. The method is straightforward: the TRIANGULATE
procedure takes your sample locations and returns a set of
Delaunay triangles constructed from the locations. Passing the
locations, the data itself, and the triangles to the TRIGRID function
results in a gridded data set. You can specify the grid intervals.
Depending upon the geographical extent of your data locations,
you may prefer to perform spherical gridding (i.e. use spherical
triangles rather than flat, 2D triangles). Be aware that the
TRIANGULATE and TRIGRID routines are capable of this as
well, although different keywords need to be used (e.g, see
the SPHERE keyword to TRIANGULATE).
David
*************************************************
* David Fanning, Ph.D.
* 2642 Bradbury Court, Fort Collins, CO 80521
* Phone: 970-221-0438 Fax: 970-221-4762
* E-Mail: davidf@dfanning.com
*
* Sometimes I go about pitying myself, and all along my
* soul is being blown by great winds across the sky.
* -- Ojibway saying
************************************************
|
|
|
|