X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11 Sep 2017 05:42 AM by  allendej
Raster assignment in band math
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

allendej



New Member


Posts:2
New Member


--
08 Sep 2017 08:51 AM
    Hello,

    I am new to using the ENVI API, but I would like to perform band math using bands from multiple rasters as input. When using the ENVI GUI this is easy to do as I can simply click to assign bands from differing images.

    I was thinking of creating a large metaspectral raster and combining bands from different images into one large image, but I don't think it would be efficient for what I am trying to do.

    As an example, I have two 6 band images and would like to process each band using the formula:
    Bandx_Image1 * (1 /Bandx_Image2)

    But I don't know how to assign multiple images.

    Hope someone has a hint, or solution!

    Thanks.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    08 Sep 2017 09:44 AM
    You could try something like this example. It uses ENVI Classic code but will work:
    http://www.harrisgeospati...leID/19007/3893.aspx

    allendej



    New Member


    Posts:2
    New Member


    --
    11 Sep 2017 05:42 AM
    Ah, I see. Thanks very much - I will modify the code!
    You are not authorized to post a reply.