hypergas.orthorectification module
Apply orthorectification to data.
-
class hypergas.orthorectification.Ortho(scene, varname, rpcs=None, gcps=None, gcp_crs=None)[source]
Bases: object
Apply orthorectification by DEM model data.
Initialize ortho class.
See the reprojection page of rasterio for details.
- Parameters:
scene (object) – The Satpy Scene defined by hypergas.
varname (str) – The loaded variable to be orthorectified.
rpcs – The Rational Polynomial Coefficients (rpcs).
gcps – The Ground Control Points (gcps).
gcp_crs (EPSG code) – The CRS of the GCP data.
-
apply_ortho()[source]
Apply orthorectification.
EnMAP: using the RPC data from the L1 product;
EMIT: using the glt table from the L1 product;
PRISMA: using the manual gcp points from QGIS.
- Returns:
da_ortho (DataArray) – The orthorectified data.