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.