Reads a release's release.json (from obis_h3_export_parquet()) and
writes collection.json, a STAC Collection for the Ocean Metrics h3
profile 1.1 (platform/packages/catalog/schemas/h3.schema.json), plus one
STAC Item per map layer under items/ (all and each EOV), with the hooks
the atlas reads:
Usage
obis_h3_stac_collection(
release_dir,
file = file.path(release_dir, "collection.json"),
id = "obis_h3",
items = TRUE
)Details
h3:resolutions,h3:layout(thealllayer's template, its parent splits androw_group_rows, the largest row group of a cell-sorted file),table:columns;h3:periods, a list of two period sets, decades and years, each with its values, placeholder, resolutions and template;h3:species_table(template, resolutions, class partitions, sort, columns withname_key,year_min,year_maxand the decade variant'speriod, lookup, heads) andh3:heads(the heads aretaxonlayers);cube:dimensions:layer(alland the EOVs, one Item each),indicator(the five columns),period(all, the decades as<yyy0>s, the years as<yyyy>) andres;atlas:metric(the default indicator,es);item_assets(each Item'sdata,decadeandyearassets: a layer folder and the path template under it);the assets
stats(the legend's source: p02 to p98 per layer, key, period, res and variable),taxon_groups(the taxa and heads to search, with their paths),files,release, the species lookup, the heads list andspecies_flat.
Every href is relative to the release folder; obis_h3_stac_stable() makes
the copy with absolute hrefs that lives at a stable url. The other layers
(taxon, decade, year, species) stay listed under obis:layers and
obis:species.