enpt.processors.dem_preprocessing package

Submodules

enpt.processors.dem_preprocessing.dem_preprocessing module

EnPT pre-processing module for digital elevation models.

class enpt.processors.dem_preprocessing.dem_preprocessing.DEM_Processor(dem_path_geoarray: Union[str, GeoArray], enmapIm_cornerCoords: Tuple[Tuple[float, float]], CPUs: Optional[int] = None)[source]

Bases: object

_set_nodata_if_not_provided()[source]
_validate_input()[source]
compute_aspect()[source]
compute_slopes()[source]
fill_gaps()[source]
classmethod get_flat_dem_from_average_elevation(corner_coords_lonlat, average_elevation, xres=30, yres=30)[source]

Return a ‘flat DEM’ instance of DEM_Processor.

(a GeoArray fully covering the given coorner coordinates with the average elevation as pixel values)

Parameters
  • corner_coords_lonlat – corner coordinates to be covered by the output DEM

  • average_elevation – average elevation in meters

  • xres – x-resolution in meters

  • yres – y-resolution in meters

Returns

to_sensor_geometry(lons: ndarray, lats: ndarray)[source]

Module contents

EnPT module ‘spatial transform’, containing everthing related to spatial transformations.

class enpt.processors.dem_preprocessing.DEM_Processor(dem_path_geoarray: Union[str, GeoArray], enmapIm_cornerCoords: Tuple[Tuple[float, float]], CPUs: Optional[int] = None)[source]

Bases: object

_set_nodata_if_not_provided()[source]
_validate_input()[source]
compute_aspect()[source]
compute_slopes()[source]
fill_gaps()[source]
classmethod get_flat_dem_from_average_elevation(corner_coords_lonlat, average_elevation, xres=30, yres=30)[source]

Return a ‘flat DEM’ instance of DEM_Processor.

(a GeoArray fully covering the given coorner coordinates with the average elevation as pixel values)

Parameters
  • corner_coords_lonlat – corner coordinates to be covered by the output DEM

  • average_elevation – average elevation in meters

  • xres – x-resolution in meters

  • yres – y-resolution in meters

Returns

to_sensor_geometry(lons: ndarray, lats: ndarray)[source]