data-raw/snapshot_bcfp.sh: manual snapshot of bcfp deps from public sources (v0.31.1)#145
Merged
NewGraphEnvironment merged 2 commits intoMay 8, 2026
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ublic sources Loads everything lnk_pipeline_crossings() (#138) and parity comparisons need into a local fwapg without a tunnel: - BCDC PSCIS (4 tables) via Python `bcdata bc2pg --refresh` - CABD dams via ogr2ogr from CABD's public GeoJSON API - bchamp modelled_stream_crossings.gpkg.zip via curl + ogr2ogr - bchamp observations.parquet via ogr2ogr /vsicurl/... (matches bcfp's jobs/load_observations -- the canonical observations source) - Optional `--with-bcfp-views`: pulls Simon's bcfp output views (crossings_vw, streams_vw) from s3://newgraph for parity comparison - Stamps data-raw/logs/bcfp_baselines.csv with the bcfp build identifier via lnk_baseline_append(lnk_bucket_log()) Documented in data-raw/README.md under a new ## Bootstrap section. DESCRIPTION 0.31.0 -> 0.31.1 (patch -- data-raw + docs only, no R API change). Tests no-op pass (808 PASS / 0 FAIL). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New
data-raw/snapshot_bcfp.shshell script. Loads bcfp dependencies into a local Postgres from public sources only (no SSH tunnel, no DB pg_dump). Prepares the local fwapg forlnk_pipeline_crossings()(link#138, in flight) and parity comparisons.What it loads
whse_fish.pscis_*(4 BCDC tables)bcdata bc2pg --refreshcabd.damsjobs/load_weeklyuses)ogr2ogrfresh.modelled_stream_crossingsmodelled_stream_crossings.gpkg.zipcurl+ogr2ogrbcfishobs.observationsobservations.parquet(same artifact bcfp'sjobs/load_observationsconsumes)ogr2ogr /vsicurl/...fresh.crossings_bcfp/fresh.streams_bcfp(optional,--with-bcfp-views)s3://newgraph/bcfishpass.{crossings,streams}_vw.fgb.zip(anonymous read)aws s3 cp+ogr2ogrStamps
data-raw/logs/bcfp_baselines.csvwith the bcfp build identifier froms3://fresh-bc/bcfishpass/log.jsonvialnk_baseline_append(lnk_bucket_log()).Documentation
data-raw/README.md— new## Bootstrapsection: prereqs (CLI tools +pip install bcdata), quick-start invocation, output schema list, pointer tolnk_pipeline_crossings()(#138) as the consumer.Test plan
bash -nsyntax check on the scriptCloses #137.
Relates to NewGraphEnvironment/sred-2025-2026#24