THREDDS-backed, database-free replacement for the Pacific Climate Data Portal (PDP) with projection support, faster subsetting, additional palettes, and portal-based interactive map viewing.
scripts/: operational entrypointsportal_meta_builder/: shared metadata parsing and menu-building codeportal-prep/portal-file-patterns/: source-of-truth file patterns for each portalportal-meta/: generated per-portal metadata JSON consumed by the viewerviewer/: current frontend/viewer assetsthredds/: local THREDDS config and support files
- Build or refresh the
/pdp/<portal>/<file>.nchardlink mirror from portal file patterns. - Optionally compute min/max rendering metadata for selected files.
- Build
portal-meta/<portal>.jsonfrom NetCDF metadata and normalized derived fields.
The metadata builder reads NetCDF metadata, normalizes common fields into metadata.derived, and applies per-portal
menu rules from portal_meta_builder/portals.py.
python3 scripts/gen_hardlinks.py
python3 scripts/gen_hardlinks.py --portal prism --portal vicglUses file-pattern definitions from portal-prep/portal-file-patterns/.
python3 scripts/calculate-portal-minmax.py
python3 scripts/calculate-portal-minmax.py --portal prismWrites portal-prep/pdp_min_max.csv.
python3 scripts/update-portal-meta.py
python3 scripts/update-portal-meta.py --portal prismWrites portal-meta/<portal>.json.
- Add a portal pattern file at
portal-prep/portal-file-patterns/<portal>.txt. - Add a portal definition in
portal_meta_builder/portals.py. - Run
scripts/gen_hardlinks.pyfor the portal. - Run
scripts/update-portal-meta.py --portal <portal>.
If the portal needs custom menu labels or grouping, add a focused menu builder in
portal_meta_builder/portals.py. If it needs additional normalized metadata, add that in
portal_meta_builder/metadata.py.