10-31-2019
05:10 PM
- last edited on
11-01-2019
05:07 AM
by
ian.anderson
What's the best way to take raster statistics from many different images and combine them into one table/txt file?
Currently, I can do it fine except for the output.
Still working on exporting multiple paths of raster statistics into a single report with headings from each path.
Thanks again!
Solved! Go to Solution.
11-01-2019 05:10 AM
Hi Justin,
When you say you are already doing this (apart from the export) what does that look like in the Spatial Model? If folks can see how your model is currently structured and what it's producing someone on the Community may be able to figure out a suggestion on how to format it it for use in the Report operator,
Cheers
a month ago
Hi Ian,
Thanks for the response. We're analyzing a large area (continental scale) with multispectral imagery. Our flow is:
Stack the image --> dice the image and identify NDVI for each new tile during the same time period --> calculate raster statistics to calculate the NDVIs for the newly diced tiles --> generate a report showing all the NDVI statistics listed together. We'll run the model below with ~1000s of images outputting into a single report.
We got the name of the raster to appear with its statistics in the report by connecting the FilenameOut port on the Raster Output operator with the Report operator (final product). We've been able to run it fine with many images just not with the dicing step, which we are still getting familiar with.
Now we are unable to 1) create an output for the diced images so we can calculate statistics on them, and 2) identify where the Dice operator is outputing to.
Do we need to use a "Define Processing Area" operator to generate a raster output? I saw that in the Help for the Create Dice Boundaries operator but am unsure how we'd implement that here.
Thanks a lot!
Justin
a month ago
Hi Justin,
Why does your Create Dice Boundaries not have an output port?
Normally Create Dice Boundaries has a Boundaries output port, which is a list of the boundaries that it creates. Note that it does not dice the image - it creates dice boundaries. If you want to use the boundaries to dice an image then you'll need an Iterator which iterates over the list of input boundaries and produces a raster output per boundary.
"C:\Program Files\Hexagon\ERDAS IMAGINE 2020\etc\models\diceimage.gmdx" (or wherever you installed ERDAS IMAGINE 2020) should give you an idea on how to do this.
Cheers
3 weeks ago
Ian--Thanks. That laid it out well. Much appreciated.
Justin