aws.osml.gdal.rsm_sensor_model_builder module

class aws.osml.gdal.rsm_sensor_model_builder.RSMSensorModelBuilder(xml_tres: Element)[source]

Bases: SensorModelBuilder

This builder is used to create sensor models for images that have RSM TREs. The inputs are not the TREs themselves but rather the XML formatted TREs resulting from GDAL’s parsing of that information. This information can be obtained by accessing the xml:TRE metadata domain for a given GDAL dataset.

The actual type and number of RSM TREs included with an image will vary depending on the type of RSM sensor model defined. In general all images with these sensor models must have an RSMID TRE that defines the overall context of the sensor model along with RSMDCA and RSMECA TREs that define the direct and indirect error covariance data.

The polynomial based sensor models will then have at least one RSMPCA TRE and may have multiple. If there are multiple then a RSMPIA TRE will also be present to describe how the various polynomial models cover the overall image domain.

The grid based sensor models will have at least one RSMGGA TRE and may have multiple. If there are multiple then a RSMGIA TRE will also be present to describe how the various interpolation grids cover the overall image domain.

It is also possible that adjustment parameters will be in RSMAPA TREs. These adjustments are frequently used to modify / update a sensor model after it was originally created.

See STDI-0002 Volume 1 Appendix U for more detailed information.

build() SensorModel | None[source]

Examine the TRE metadata for RSM information, parse the necessary values out of those TREs, and construct a RSM sensor model.

Returns:

a RSM Polynomial SensorModel if one can be constructed, None otherwise