X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 22 Oct 2008 10:14 AM by  anon
ENVI_CONVERT_FILE_COORDINATES
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
22 Oct 2008 10:14 AM
    Hello! I'm working with ENVI/IDL. When I try to convert map coordinates to their corresponding x,y pixel coordinates, after doing the instruction: ENVI_CONVERT_FILE_COORDINATES, fid_tiff_B, gcp_x, gcp_y, gcp_mapX, gcp_mapY the variable gcp_x  takes negative values... It could be possible? How can this problem be solved? Cheers, Sara

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    22 Oct 2008 10:20 AM
    What are the input map coordinates (i.e. values of xmap/ymap)?  File coordinates should not be negative.  For example, can you reproduce this with ENVI's sample dataset, bhtmref.img?  I did the following: ENVI> xmap=276165.00 ENVI> ymap=4903605.0 ENVI> envi_select, fid=fid ENVI> envi_convert_file_coordinates, fid, xf, yf, xmap, ymap ENVI> print, xf        46.000000 ENVI> print, yf        110.00000
    You are not authorized to post a reply.