X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Dec 2020 02:00 PM by  Jason Wolfe
ENVI modeler: layer stack from multispectral and panchromatic
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Morgan Bond



New Member


Posts:2
New Member


--
16 Dec 2020 04:35 PM
    I am trying to use ENVI modeler (I do not have access to IDL), in ENVI 5.6 to process some Worldview-2 satellite imagery.

    What I have:
    Worldview-2, level 1b imagery
    Each "image strip" consists of 7 multispectral and 7 associated panchromatic images.
    A .imd file provides information for image calibration
    A rpc file provides information for orthorectification.

    What would like to do:
    Use modeler to open each of the 7 multispectral files, and calibrate to TOA, the orthorectify the image (this seems to work fine)
    Use modeler to open each of the associated multispectral files, calibrate to TOA and orthorectify the image (this also works fine)
    However, what I then want is to create a layer stack of the multispectral and panchromatic imagery for each of the seven multi/pan pairs and output the layer stack (resampled to the panchromatic image) and save the file.

    What isn't working:
    In modeler, I have two iterators, one to open the 7 multispectral images, and one to open the panchromatic images. These work fine until I try to bring the them together to create a layer stack of each pair. The model does not like to have two different iterators connected to the same layer stack. Is there a way to have the same iterator turn the crank for both the multispectral and panchromatic files at the same time or some other workaround. It is a shame we cannot upload a screenshot of the modeler. It would be much easier to explain!



    Jason Wolfe



    New Member


    Posts:59
    New Member


    --
    21 Dec 2020 02:00 PM
    I believe the simplest way to do this is add an Aggregator node that collects the results from both the multispectral process and the panchromatic process. Then connect the Aggregator node to the Build Layer Stack node. However, with the Iterator nodes that you have to process multiple files at once, this has the potential to create one huge layer stack from ALL of your files, which you obviously don't want.

    If it were me, I would create a model that doesn't have Iterator nodes, and run the model 7 times (one for each MSI/Pan pair). I created and tested a model for this, and it works fine.

    Start with an Input Parameters node. Connect it to Radiometric Calibration (set to TOA reflectance) and RPC Orthorectification. This is the multispectral processing chain. Now add another pair of Radiometric Calibration and RPC Orthorectification nodes. This will be the panchromatic processing chain. Connect that Radiometric Calibration to Input Parameters. When the Connect Parameters dialog appears, select "Add New Input(s)" on the left and connect it to "Input Raster" on the right.

    Click the Properties icon on the Input Parameters node. Change one "Input Raster" instance to "Select a multispectral file." Change the other "Input Raster" instance to "Select a panchromatic file."

    Now add an Aggregator node at the very end, and connect it to the output of both RPC Orthorectification nodes. Then connect the Aggregator node to Build Layer Stack. When you run this model, it will prompt you for the multispectral and panchromatic datasets. It will process them separately, then assemble them together into one layer-stacked file. Repeat with the other image pairs. This is just one suggested approach.
    You are not authorized to post a reply.