eoforeststac.writers.forestpaths_genus.ForestPathsGenusWriter#

class eoforeststac.writers.forestpaths_genus.ForestPathsGenusWriter(endpoint_url: str, bucket: str, key: str | None = None, secret: str | None = None, profile: str | None = None, region: str = 'eu-central-1', anon: bool = False)[source]#

Writer for the European Tree Genus Map (10 m, 2020).

Native input:
  • Single European mosaic GeoTIFF (EPSG:3035, categorical)

Output:
  • Chunked, compressed Zarr on Ceph/S3

Classes (uint8):

0 Larix 1 Picea 2 Pinus 3 Fagus 4 Quercus 5 Other needleleaf 6 Other broadleaf 7 No trees

__init__(endpoint_url: str, bucket: str, key: str | None = None, secret: str | None = None, profile: str | None = None, region: str = 'eu-central-1', anon: bool = False)[source]#

Methods

__init__(endpoint_url, bucket[, key, ...])

apply_fillvalue(ds[, fill_value])

load_dataset(tif_path)

Load genus GeoTIFF lazily and return Dataset with variable genus.

make_store(zarr_path)

Create an s3fs-backed Zarr store.

process_dataset(ds[, fill_value, crs, ...])

Harmonize CRS, dimensions, chunking, dtype, and metadata.

set_crs(ds[, crs])

set_global_metadata(ds, metadata)

write(tif_path, output_zarr[, version, ...])

End-to-end:

write_to_zarr(ds, zarr_path[, encoding, ...])