aws.osml.gdal.gdal_offset_provider module
- class aws.osml.gdal.gdal_offset_provider.GDALOffsetProvider(offset_path: str, scale_factor: float = 1.0, tol: float = 1e-06)[source]
Bases:
ElevationOffsetProviderProvide WGS84 offsets from any raster format supported by GDAL.
Notes
Reads the datatype as signed even if unsigned. Assumes a GDAL GeoTransform is provided, which must be independent in x and y (only scale / offset). Also assumes single raster.
- get_offset(geodetic_world_coordinate: GeodeticWorldCoordinate) float[source]
Interpolate a WGS84 offset from the grid. Raise a ValueError if the coordinate is outside the grid.
- Parameters:
geodetic_world_coordinate – a normalized world coordinate of interest
- Returns:
meters above WGS84 ellipsoid