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

Home » Public Forums » archive » envi_convert_file_coordinates
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: envi_convert_file_coordinates [message #67611 is a reply to message #67527] Tue, 04 August 2009 11:54 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Hi,

I believe you are using the wrong variable... Your map is in UTM (not
too clear though) but you use it as if it was DD...

> envi_open_file, filename, r_fid=De_fid

open the file

> map_info = envi_get_map_info(fid =De_fid)

get the map info

> fxcent_p=map_info.mc[0]; UTM coordinates defined from center

you say it is in UTM

> envi_convert_file_coordinates, De_fid, xmap, ymap, fcornery_dd,
> fcornerx_dd

You use the fid of the file, so you are converting from UTM to pixel
coordinates (by the way "pixel value" refers to the content of the
pixel, not its coordinates). However, you are not using UTM coordinates
but geographic ones... So basically, you are converting coordinates that
are within 180m of the equator and from the central meridian of your UTM
zone.

Jean
[Message index]
 
Read Message
Read Message
Previous Topic: Re: 3D UserSym?
Next Topic: Re: String Array to 'regular' array?

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

Current Time: Fri Oct 10 09:09:03 PDT 2025

Total time taken to generate the page: 1.04123 seconds