X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 23 Jul 2009 06:14 PM by  anon
ENVI batch - rotate
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
23 Jul 2009 06:14 PM
    I would like to use ENVI batch to rotate my images. When I use ENVI to rotate the images the rotation angle is already in the rotation parameters. How do I write an ENVI batch program that will also do this automatically so that I do not have to enter a different angle for each image? Any feedback will be greatly appreciated.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    27 Jul 2009 10:38 AM
    ENVI's ROTATE_DOIT will not handle an arbitrary rotation value, so to rotate the image using a different rotation value you would need to use IDL's ROT function.  You can get the rotation value from the file using ENVI's routine ENVI_GET_MAP_INFO which returns the map info structure that contains the rotation of the file.  You could pass this rotation value to your program that calls IDL's ROT function.  This may also require the use of ENVI's tiling routines if your files are large.
    You are not authorized to post a reply.