eoforeststac.writers.restor_landuse.RestorLanduseWriter#
- class eoforeststac.writers.restor_landuse.RestorLanduseWriter(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 Annual Land Use and Land Cover maps for the Brazilian Amazon (2000–2022).
- Native input:
Yearly GeoTIFFs organised as {input_dir}/{year}/LANDSAT_OLI_MOSAIC_{year}-01-01_{year}-12-31_class_v1.tif
Custom Albers Equal Area (GRS80), no standard EPSG
- Output:
Single Zarr store with variable lulc(time, y, x)
- Classes (uint8):
1 Annual agriculture 2 Semi-perennial agriculture 3 Water 4 Forest 5 Silviculture 6 Secondary vegetation 7 Mining 8 Urbanized area 9 Non-forest natural vegetation 10 Pasture 11 Seasonally flooded 12 Deforestation of the year 13 Perennial agriculture 14 Not observed
- __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, ...])add_metadata(ds, crs[, version])apply_fillvalue(ds[, fill_value])build_year_dataset(input_dir, year, crs, chunks)make_encoding(chunks[, _FillValue])make_store(zarr_path)Create an s3fs-backed Zarr store.
set_crs(ds[, crs])set_global_metadata(ds, metadata)write(input_dir, years, output_zarr[, ...])Stream yearly RESTOR Land Use GeoTIFFs into a single Zarr store along time.
write_to_zarr(ds, zarr_path[, encoding, ...])Attributes
TIF_PATTERN