X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 28 Aug 2020 01:42 PM by  Jason Wolfe
Stretch error with large raster
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Morgan Bond



New Member


Posts:2
New Member


--
24 Aug 2020 03:15 PM
    I have a large raster (42212 x 232880, unsigned integer pansharpened WV-3 image strip, saved as an ENVI .dat file) that I would like to convert to byte data with a square root stretch. When I choose "stretch data" and choose "equalize" or "square root", by percent, with output values from 0-255, I get an error: "stretch_doit: An error has occurred during processing Error: "attempt to subscript IN_HIST with LOC is out of range" The result may be invalid".

    If I select ok, the process ends and no output is produced. However, if I select a subset of the raster, even a fairly large one, the stretch works fine. Is ENVI not able to produce the histogram that it needs for the stretch from such a large image?

    Jason Wolfe



    New Member


    Posts:59
    New Member


    --
    28 Aug 2020 01:42 PM
    Are you using ENVI or ENVI Classic. Which version?
    While I'm not familiar with that particular error message, we do have a tool that you can run from the ENVI Toolbox (on the right side of the application).

    1. Type "Run Task" in the search window of the toolbox.
    2. Double-click the "Run Task" tool.
    3. In the Run Task dialog, type "root" in the search window at the top.
    4. Double-click the "Root Stretch Raster" tool.
    5. Fill out the Root Stretch Raster dialog with your input image, minimum (0), maximum (255), and root index value. 2 is default.
    6. Select an Output Raster filename and click OK.

    You should get the result you expect. It will take some time since you have a large image. To answer your question, ENVI should definitely produce the histogram it needs for large images like this.
    You are not authorized to post a reply.