Skip to contents

The distributions[] of a record (plan § D-1): the parquet objects that belong to the dataset (its dataset_key= partitions and the whole tables attributed to it), the CF netCDF from its manifests.json, the ERDDAP ids that exist on erddap.calcofi.io now (by dataset_key prefix, with the ISO 19115 record of the primary id), the ingest notebook, the calcofi.org page, the source portal (link_data_source, classified by host) and the curated rows of metadata/distribution.csv for the key — a legacy ERDDAP id is one of those, listed with legacy: true and whether it is still live.

Usage

dataset_distributions(
  key,
  ds,
  objects,
  erddap = NULL,
  netcdf = NULL,
  curated = NULL,
  version = NULL,
  workflow_url = NULL,
  stac_base = NULL
)

Arguments

key

the dataset_key

ds

the dataset's metadata.json block

objects

the dataset's objects[] (from the builder)

erddap

the table from fetch_erddap_datasets(), or NULL

netcdf

the list from fetch_netcdf_manifests(), or NULL

curated

the distribution.csv rows for this key (tibble, may be empty)

version

the release version (selects the netCDF entry)

workflow_url

the ingest notebook URL

stac_base

the STAC root the release writes (https://…/calcofi-db/stac); NULL (a holding, or a run with no STAC) adds no row

Value

A list of rows, each a named list (kind, url, …).