09-10-2018 11:58 PM - edited 09-10-2018 11:59 PM
In Erdas Imagine you can add the area of the raster histogram in table>attributes table.
Is this possible in a Spatial Model? I can only see this for features and not raster. I'd like to be able to output a file with the area of the tree canopy from the spatial model.
Solved! Go to Solution.
09-11-2018 01:42 AM
09-11-2018 06:23 PM
That's great. Thanks for that. I've tested it without any errors but it doesn't add the attribute.
Does it need to create a new raster file or can it edit the existing?
09-12-2018 01:11 AM
You need to create a new raster file. At the end of the model, it attaches the Area attribute to the new raster output.
09-12-2018 05:24 AM - edited 09-12-2018 05:24 AM
Hi Josh and Marina,
Pretty sure that if you're using Raster Attribute Output (as opposed to, say, Attach Attributes) you can attach them to an existing file. Just hook the Port Input operator up to the FilenameIn port of the Raster Attribute Output (and get rid of the Raster Output operator).
06-24-2019 03:35 AM
In this particular model, the units are taken from the input raster. In my case it was meters, therefore sqmeters for the area calculation. You can also replace the part where I multiplied Cell X by Cell Y with the Cell Area operator and define the units you prefer there.
11-06-2019 09:28 PM
I'm now working on a model that one of the guys from Hexagon came down and built for me.
I have added my operators for extracting the area, exactly how you have done which worked for me last time.
For some reason the number is a lot bigger than it should be, so the area of the pixels is a lot larger than the actual area this covers.
What would cause this? It is set as metres. There isn't any outlying pixels as the extent is correct. Is it the way I've output the raster attribute table?