hypergas.dem module#
Download DEM data for the region observed by the hyperspectral satellite.
- class hypergas.dem.DEM(filename: str, bounds: list, buffer: float = 0.01, dem_name: str = 'glo_30', dst_area_or_point: str = 'Point', dst_ellipsoidal_height: bool = False)[source]#
Bases:
objectDownload and store a Digital Elevation Model (DEM) for a given bounding box.
- Parameters:
filename (str) – Path to the input file. The DEM will be saved as: <filename_root>_dem.tif
bounds (list[float]) – Bounding box in EPSG:4326 format: [xmin, ymin, xmax, ymax] (longitude, latitude).
buffer (float, optional) – Buffer (in degrees) added around the bounding box. Default is 0.01.
dem_name (str, optional) – Name of the DEM dataset supported by dem_stitcher. Default is “glo_30”.
dst_area_or_point (str, optional) – Pixel referencing type: - “Area”: pixel value represents area (upper-left corner reference, GDAL default) - “Point”: pixel value represents the pixel center Default is “Point”.
dst_ellipsoidal_height (bool, optional) – If True, output heights are ellipsoidal. If False, heights are relative to the geoid. Default is False.