comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » get LAT/LON from georef image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
get LAT/LON from georef image [message #65092] Wed, 11 February 2009 02:35 Go to next message
titan is currently offline  titan
Messages: 59
Registered: March 2006
Member
Hello! I have a georef image and I would like to extract the LAT and
LON values from it.
the dims of my image are not equal, let's say [65,80].
I create two vectors to be associated with the x_pixel and y_pixel of
the image

x_pixel=indgen(65)
y_pixel=indgen(80)

I know that there is the envi routine ENVI_CONVERT_FILE_COORDINATES to
convert X and Y pixel coordinates into their corresponding X and Ymap
coordinates and vice-versa.

Unfortunately it seems to work only if the lat and lon array are of
the same dimension in fact if we consider this example I should write

envi_convert_file_coordinates, fid, x_pixel, y_pixel, xmap, ymap, /
to_map

in this way I should have the respective vector xmap and ymap of lat
and lon
but if I write

help, xmap
help, ymap

I get

LAT_MAP DOUBLE = Array[65]
LON_MAP DOUBLE = Array[65]

two vector of the same dims (in this case 65) and one of 65 elements
and the other with 80 elements

Could someone tell me where I'm wrong??Are there any methods to
overpass this problem??
thanks
Re: get LAT/LON from georef image [message #65245 is a reply to message #65092] Thu, 19 February 2009 04:32 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
titan wrote:
> Thank you for the answer Jean.
> probably I have to study more your suggestion because
> I tried it but what I get are two vectors with a bigger dimension than
> the initial one!
> is it possible or am I doing something wrong?
>
> thank you

Hi,
the dimension should be (nx * ny) (so 1D)
You can then reshape it to a (nx;ny) (2D)

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Update text widget
Next Topic: idl readf error

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:41:13 PDT 2025

Total time taken to generate the page: 0.00469 seconds