Home »
Public Forums »
archive »
Find pixel based on latitude/longitude.
Find pixel based on latitude/longitude. [message #79010] |
Wed, 25 January 2012 19:08 |
Daniel Otis
Messages: 5 Registered: January 2012
|
Junior Member |
|
|
This is a very basic question, but I am struggling to find a good
solution. I have image arrays and want to find a pixel and a line
value based on a latitude and a longitude.
For example, a global SST array is 2D (8640x4320). I have a 1D array
of latitudes(4320) and 1D array of longitudes(8640). Based on depth
and other considerations, I have a latitude value and a longitude
value where I want to extract data and I need to find the closest
pixel.
I can't use a WHERE command because my desired lat/lon values don't
exactly correspond to those in the lat/lon arrays. I just want to find
the closest pixel in the 2D array based on the lat and lon that I
provide.
This seems simple, but I have not been able to find a good solution.
Any ideas are appreciated. Thanks.
|
|
|
Current Time: Wed Oct 08 17:40:25 PDT 2025
Total time taken to generate the page: 0.00494 seconds