X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 16 Apr 2012 10:06 AM by  anon
Layer Stacking
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
16 Apr 2012 10:06 AM
    I'm currently Layer Stacking the 8 bands of WorldView 2 down to three. The WorldView 2 images already come layer stacked into 8 bands, but I'm only interested in three. I'm a beginner at IDL, but I've wrote a script in the past to layer stack individual bands (from separate files) into one multi file. I was wondering if there is a script to just layer stack and separate the three bands? Thanks

    Deleted User



    New Member


    Posts:
    New Member


    --
    17 Apr 2012 11:07 AM
    The Layer Stacking tool in ENVI is really meant for situations where you want to stack different images that have different projections or pixel sizes or footprints into the same image. If your images already share all of those things, then you can just use the tool found under File > Save File As > ENVI Standard, to save a new version of the original file. To make that new version contain only some of the original bands, you would do it this way: 1. Choose File > Save File As > ENVI Standard. 2. In the New File Builder dialog that comes up, click the Import button. 3. In the resulting file selection dialog, select the original image, then click the Select By toggle button so that is says Select By Bands. You should now see all of the bands from the input file listed. Hold the Ctrl key, and select all of the bands that you want in the new file, then click OK in the file selection dialog. 4. Back in the New File Builder dialog, enter an output filename for the new 3-band file, then click OK. - Peg

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Apr 2012 12:15 PM
    Thanks Peg. The real problem is that I need to change the projection of my WV2 and Quickbird files from an RPC projection. Previously, I layer stacked the individual bands together and this change the RPC projection Geographic to just Geographic. I have a lot of images to process and it I was trying to find a way in IDL to do this.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    20 Apr 2012 12:30 PM
    It would be easy enough to alter your previous layer stacking routine to take just 3 bands of the same file using the POS keyword. However, using Layer Stacking to 'remove' the RPC projection could cause bad georeferencing for the file. An RPC projection is not a true map projection and converting it to a generic Geographic is not the same as georegistering the data to a true map projection. You should use the RPC Orthorectification on the data first to convert it to a true map projection (such as UTM) and then save out the 3 bands as Peg mentioned. Layer stacking is really not necessary for this case.

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Apr 2012 12:48 PM
    Thanks for the advice. Is there a script in IDL to do the RPC Orthorectification?
    You are not authorized to post a reply.