skmap.overlay.SpaceTimeOverlay#
- class SpaceTimeOverlay(points, col_date, catalog, raster_tiles, tile_id_col='tile_id', n_threads=4, verbose=False)[source]#
Bases:
objectOverlay a set of points over multiple raster considering the year information. The retrieved pixel values are organized in columns according to the filenames.
- Parameters:
:param catalog. :type n_threads:
int:param n_threads: Number of CPU cores to be used in parallel. By default all coresare used.
- Parameters:
verbose (
bool) – UseTrueto print the overlay progress.
Examples
>>> from skmap.overlay import SpaceTimeOverlay >>>
Methods
Execute the spacetime overlay.
- run(max_ram_mb, out_file_name, gdal_opts={'CPL_VSIL_CURL_ALLOWED_EXTENSIONS': '.tif', 'GDAL_HTTP_VERSION': '1.0'})[source]#
Execute the spacetime overlay. It removes the year part from the column names. For example, the raster
raster_20101202..20110320.tifresults in the column nameraster_1202..0320.- Returns:
Data frame with the original columns plus the overlay result (one new column per raster).
- Return type:
Optional[DataFrame]