Connects to the version's SDM DuckDB, emits a Collection + model-surface Item
per dataset, optionally adds NCCOS seasonal Items from nc_models.csv, and
writes the tree (root Catalog -> version Collection -> dataset Collections ->
Items) under dir_out.
Arguments
- version
data version (default "v7")
- dir_out
output directory for the catalog tree
- cfg
config from
stac_cfg()(defaults tostac_cfg(version))- nc_csv
optional path to
nc_models.csvfor seasonal Items- con
optional open DBI connection (else opens read-only via
sdm_db_con())