eoforeststac.writers.potapov_lcluc.PotapovLCLUCWriter#
- class eoforeststac.writers.potapov_lcluc.PotapovLCLUCWriter(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 Potapov LCLUC product distributed as one VRT per reference year.
- Input layout (example):
- /path/to/vrt_dir/
2000.vrt 2005.vrt 2010.vrt 2015.vrt 2020.vrt
- Output:
single Zarr with variable ‘canopy_height’ and dimension (time, latitude, longitude)
- __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])build_time_stack(vrt_files[, crs, chunks])Load and stack VRTs across years into a Dataset with time dimension.
load_dataset(vrt_path)Load one VRT lazily as a DataArray with dims (y, x).
make_store(zarr_path)Create an s3fs-backed Zarr store.
process_dataset(ds[, fill_value, crs, ...])Apply conventions, fill values, dtype, and metadata.
set_crs(ds[, crs])set_global_metadata(ds, metadata)write(vrt_dir, output_zarr[, version, ...])Build a time stack from VRTs and write to Zarr.
write_to_zarr(ds, zarr_path[, encoding, ...])