X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 16 Jul 2015 08:12 AM by  anon
reading the four geographic corner lat-longs in IDL
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:16
New Member


--
16 Jul 2015 08:12 AM
    Is there something in IDL that returns 4 geographic corners from the header like in ENVI ?Currently I’m able to access only one one such point via print,tiff_tags.MODELTIEPOINTTAG 0.00000000 0.00000000 0.00000000 -82.399429 41.402946 0.00000000

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    16 Jul 2015 02:51 PM
    Hi Puneeth, If you have your ENVI header and you know the pixel Easting, pixel Northing, x-pixel size, and y-pixel size, you can do a quick calculation to find the values at the four corners with the pixel size and number of pixels. Or, you can use the ConvertPixelToMap coordinates to do all of that using ENVI + IDL. Here is a link to the documentation for that task: http://www.exelisvis.com/docs/ENVICon...

    Deleted User



    New Member


    Posts:16
    New Member


    --
    20 Jul 2015 03:49 AM
    Hi Mr.Zack, I do not have an ENVI licence,so I'm trying with IDL to headlessly store the four geographic corners from a geotiff image. Is it possible to give me a snippet on how I can achieve it :) ..Thanks for your reply. Regards, Puneeth

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    21 Jul 2015 02:13 PM
    In that case, it may be easiest to use the MAP_PROJ_INVERSE function, which can convert from cartesian X and Y to lat/lon for a map projection that you set up with MAP_PROJ_INIT. This will likely be easiest and all you need to do is take the number of x and y pixels times their corresponding scaleto find the extent in Cartesian X and Y. Then you can use MAP_PROJ_INVERSE to convert from cartesian X and Y to the Lat Lon range of the Map

    Deleted User



    New Member


    Posts:16
    New Member


    --
    22 Jul 2015 10:50 AM
    Thanks Mr.Zack, seems do-able
    You are not authorized to post a reply.