Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

05b — Dataset archive: GRID4EARTH Zarr (HEALPix, WGS84) + Parquet tables

LifeWatch ERIC

Builds archive/ for a Zenodo dataset deposit, separate from the software release.

Zarr (natural_regeneration_colombia_healpix.zarr, Zarr v3), HEALPix NESTED on WGS84, GRID4EARTH layout: one multiscale group per layer family, numeric level groups, dggs convention attributes and a CF grid-mapping variable crs, both from healpix_connector.dggs_zarr. Every variable is an area in m² summed over the cell (cell_methods: "area: sum"), so coarser levels are exact parent sums (cell >> 2). Each family declares its support:

FamilyLevelsSupport
full_resolution15 → 8every 30 m pixel, from 05a (conservative, exact WGS84 pixel areas)
sample_based12 → 8the 1-in-100 systematic sample of pixels (each point stands for 10 × 10 pixels); MapBiomas labels
area_of_applicability8the sample, from 03e (already aggregated)

Parquet tables: the sample points with every predictor and label, the prediction grid with predictors, step-2 predictions and MapBiomas labels, so the models can be refitted without downloading the ~21 GB of inputs.

Inputs are not redistributed; sources.json lists them with DOIs or URLs and checksums.

Helpers: coarsening and writing one level group

Family 1: full resolution (05a), depth 15 → 8

full_resolution: levels [8, 9, 10, 11, 12, 13, 14, 15]; cells at finest level 28,759,667

Family 2: sample-based layers (MapBiomas labels), depth 12 → 8

sample_based: levels [8, 9, 10, 11, 12]; cells at finest level 373,512

Family 3: area of applicability (03e), depth 8 only

area_of_applicability: ['pred_area', 'outside_area_colombia', 'share_outside_colombia', 'mean_di_colombia', 'outside_area_neotropics_excl_colombia', 'share_outside_neotropics_excl_colombia', 'mean_di_neotropics_excl_colombia', 'outside_area_neotropics_incl_colombia', 'share_outside_neotropics_incl_colombia', 'mean_di_neotropics_incl_colombia']

Root metadata

/opt/vth/OpenAIRE_Alien_AI_Hackathon/natural-regeneration-replication/.pixi/envs/default/lib/python3.12/site-packages/zarr/api/asynchronous.py:246: ZarrUserWarning: Consolidated metadata is currently not part in the Zarr format 3 specification. It may not be supported by other zarr implementations and may change in the future.
  warnings.warn(
<Group file://../archive/natural_regeneration_colombia_healpix.zarr>

Check: read back with xarray

                            depth_15_Mha  depth_8_Mha
country_area                    113.7242     113.7242
study_domain_area                93.2409      93.2409
prediction_domain_area           18.7922      18.7922
expected_area_uncalibrated        3.9294       3.9294
expected_area_calibrated          0.1846       0.1846
area_p_gt05                       1.9818       1.9818
authors_expected_area            10.5143      10.5143
authors_valid_area               18.7986      18.7986
authors_binary_area              11.6418      11.6418
fagan_regrowth_area               0.2517       0.2517
{'name': 'healpix', 'refinement_level': 15, 'indexing_scheme': 'nested', 'ellipsoid': {'name': 'wgs84', 'semi_major_axis': 6378137.0, 'inverse_flattening': 298.257223563}, 'spatial_dimension': 'cells', 'coordinate': 'cell_ids', 'compression': 'none'}

Parquet tables

9 files, 0.93 GB