X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Jul 2016 11:46 AM by  anon
ENVI Layer Stacking Doit
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:29
New Member


--
19 Jul 2016 11:46 AM
    Hi all, I'm creating a script to automatically stitch together one band rasters of the same dimensions into one file with multiple bands. Those who will be using this are using an earlier version of ENVI that doesn't include the new ENVITask way of doing this. When I run the procedure up to the ENVI stacking DOIT task, I get the following error: "Error: 'Array dimensions must be greater than zero.' The result may be invalid" The line with the DO_IT command is: ENVI_DOIT, 'ENVI_LAYER_STACKING_DOIT', $ dims=dims, $ fid=fid, $ ; out_bname=bands, $ out_dt = 1, $ out_name = output, $ out_proj = proj, $ out_ps = out_pos, $ pos=pos, $ r_fid = mosaic And I double checked that the dimensions of all the arrays given are above zero. What might I be doing wrong? Many thanks!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    19 Jul 2016 01:19 PM
    Setting up the dims and pos array can be a little tricky with Layer_stacking_doit. You might try using this help article as a reference: http://www.harrisgeospati...cleID/4572/4572.aspx

    Deleted User



    New Member


    Posts:29
    New Member


    --
    20 Jul 2016 11:18 AM
    I found that article and tweaked the procedure to fit my needs. Quick question - how should I cite what I use from ENIV/IDL documentation? Or is it assumed to be included if ENVI/IDL are cited.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    20 Jul 2016 01:15 PM
    I do not think there is a need to cite any specific tools or procedures. Just a citation of the software and version used: http://www.harrisgeospatial.com/Suppo...

    Deleted User



    New Member


    Posts:29
    New Member


    --
    22 Jul 2016 11:49 AM
    That would make sense. Thank you!
    You are not authorized to post a reply.