eoforeststac.writers.jrc_gfc.JRCGFCWriter#
- class eoforeststac.writers.jrc_gfc.JRCGFCWriter(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 JRC Global Forest Cover 2020 (v3).
- Native input:
Single global Cloud-Optimized GeoTIFF (categorical land cover)
- Output:
Chunked, compressed Zarr on Ceph/S3
- __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 JRC GFC COG lazily and return Dataset with variable forest_cover.
make_store(zarr_path)Create an s3fs-backed Zarr store.
process_dataset(ds[, fill_value, crs, ...])Harmonize CRS, dimensions, chunking 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, ...])