12
How to get pixel size of a input raster using the modeler
In the ENVI moder, the ENVI Task Extract Properties and Metadata is designed to extract properties and/or metadata from an input raster.
https://www.nv5geospatialsoftware.com/docs/ModelerExtractPropertiesMetadata.html
However, while exploring the list of properties that could be extracted by this task, pixel size is not listed. Adding pixel_size in the Other Properties field will return an error when executing the model. The reason is the property needs to be extracted as:
raster.spatialref.pixel_size
while setting pixel_size in Other Properties will extract it as
raster.pixel_size
- Thus, extracting pixel size with the modeler will require calling the Extract Properties and Metadata task two times.
1/ First node of Extract Properties and Metadata
- The input is the raster from which you need to extract the pixel size.
- The output property of this first node is Spatialref.

2/ Second node of Extract Properties and Metadata
- The input is the Spatialref property extracted by the first node.

- Then adjust the parameter of this second node by setting pixel_size in Other Properties field.

- The output will be the pixel size of the input raster. It can now be set as input in any other task that would require pixel_size in input.

________________________________________
created by BC (EU) on 05/22/2026.
reviewed by MM on xx/xx/xxxx.