X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 15 Jul 2008 07:10 AM by  anon
Edit header or convert map projection ?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
15 Jul 2008 07:10 AM
    Hi all, I have a question about envi images and associated header files. In an IDL script, i used ENVI_setup head and output an image from the script. The results are all ok, but the projection coordinates of the output are slightly off from the input image. Its probably negligible because they line up perfectly and the difference is only in the numbers after the third decimal place ( for eg. Input (53283.234) vs output(53283.239 )). I usually end up importing the header file into the output image by using right click and edit attributes. I want to know if generally speaking, its ok to use this method or should i always use Map/COnvert map projection if two files have slightly different coordinates or projections. In summary, i just want to know if its ok to use EDIT HEADER/input header from.....or whether i should always convert map projections. Raghu

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    15 Jul 2008 07:10 AM
    If the purpose is to update the map info to be what it should be for the file (the file is already in this projection and needs correct map information assigned), then it is perfectly fine to edit the existing Map Info via Edit Header. In this case, you would not want to reproject your file. Reprojection is used to convert the map projection to another projection or datum. But it sounds like the data are already corrected (in the correct projection/datum) but the map info is incorrect or off for some reason. What I don't understand is if you are using ENVI_SETUP_HEAD and specifying the map info structure, which explicitly takes the input coordinates you give it, then why is something else reported in the Map Info? If you open the .hdr you created with a text editor, what coordinates are written to the file? Are they different than what is reported in the Map Info dialog?
    You are not authorized to post a reply.