On 6/30/2010 12:12 AM, P Kishor wrote:
> I have a rectangular map of square grid cells. Each grid cell has an
> x,y (lat,lon) centroid, and a serial number, the cell_id, starting at
> 0,0 in the top-left corner, and increasing to the right and down. Here
> is a picture
>
> 1     2    3  ..  9
> 10  11  12 .. 19
> ..

I suggest writing a routine to calculate x,y from lat,lon.
Then use that to locate the points of interest.  Alternatively,
just precalculate the lat,lon to x,y for all your cells in a
single piddle and use a look up table approach.

   PDL> ??utm
   PDL> ??project

may be of help here.  As always, I recommend trying things
out on a toy sized problem in the PDL shell to get a feel
for the problem and to try alternative solutions.  Working
through the examples in the PDL book is a good introduction
to thinking in PDL terms as well.

Cheers,
Chris

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to