Extractor Function

Functions

xr_fresh.extractors_series.extract_features_series(gw_series, feature_dict, band_name, output_dir)[source]

Extracts features from a geospatial time series and saves them as TIFF files.

Parameters:
  • gw_series (geowombat.Dataset) – Geospatial time series dataset.

  • feature_dict (dict) – Dictionary containing feature names and parameters.

  • band_name (str) – Name of the band.

  • output_dir (str) – Directory to save the output TIFF files.

Returns:

None

xr_fresh.extractors_series.extract_grid(band_name)[source]

Extracts grid value from the band_name using regular expressions.

Parameters:

band_name (str) – Name of the band.

Returns:

Extracted grid value.

Return type:

grid (str)

xr_fresh.extractors_series.extract_key_value_names(band_name)[source]

Extracts key_names and value_names from the band_name using regular expressions.

Parameters:

band_name (str) – Name of the band.

Returns:

Extracted key names. value_names (str): Extracted value names.

Return type:

key_names (str)