X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 15 May 2019 12:50 AM by  Anna Wojtowicz-Nowakowska
ENVI Modeler PanSharpening Batch Processing
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Anna Wojtowicz-Nowakowska



New Member


Posts:9
New Member


--
14 May 2019 08:57 AM
    I need help setting up a model to batch perform "NNDiffuse Pan Sharpening". I have 10 multispectral Landsat images and 10 panhromatich landsat images after Dark Susbtraction process. I want to loop through each 2-image set (multi, panhromatic) and generate a pansharpening output. I tried to do this using 2 datasets, 2 iterators, generate filename, and NNDiffuse Pan Sharpening. I get the error "Nodes cannot be traced back to more than one iterator: [NNDiffuse Pan Sharpening].

    What is the correct way to set this up?

    I want it to run like:

    Run 1: multi1, rpanhromatic1 are used to generate pansharpening1
    Run2: multi2, rpanhromatic2 are used to generate pansharpening2
    etc...

    Thanks in advance!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    14 May 2019 11:58 AM
    You would need to set it up with an iterator and an extract elements from array to pass the two sets of rasters in parallel. For example:

    low res rasters->iterator->Extract elements from array (enter as Indices to extract) ->NNDiffuseSharp (from iterator)
    high res rasters->extract elements from array (enter as Input array)->NNDIffuseSharp (from Extract elements of array)

    Does this work for you?

    Anna Wojtowicz-Nowakowska



    New Member


    Posts:9
    New Member


    --
    15 May 2019 12:50 AM
    Yes, it works. Thanks a lot!

    But I have another problem :)
    I try to do a big model and I can not connect PanSharpening with Dark Substraction Correction.

    My model looks like bellow:

    multispectral rasters -> iterator -> radiometric calibration -> raster statistic -> dark substraction correction ->agregator -> iterator -> NNDiffuse PS
    -> ->

    panchromaticl rasters -> iterator -> radiometric calibration -> raster statistic -> dark substraction correction ->agregator -> Extract Element -> NNDiffuse PS
    -> ->

    This both model are connecting by NNDiffuse Pan Sharpening.
    But when I run model I get the error: "Parameter INPUT_HIGH_RESOLUTION_RASTER faild validation: Value must be a scalar ENVIRaster".

    Could you please help me with this?
    You are not authorized to post a reply.