Skip to content

Commit

Permalink
do not dump dams not matched to streams to csv
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Jan 7, 2024
1 parent 83597aa commit 5cd0e77
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions model/01_access/dams/dams.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,4 @@ ogr2ogr -f PostgreSQL \
OGRGeoJSON

# create bcfishpass.dams - matching the dams to streams
$PSQL -f sql/dams.sql

# report on dams that do not get matched to FWA streams
$PSQL --csv -c "select
a.cabd_id,
a.dam_name_en
from cabd.dams a
left join bcfishpass.dams b
on a.cabd_id::text = b.dam_id
where b.dam_id is null
order by a.cabd_id;" > dams_not_matched_to_streams.csv
$PSQL -f sql/dams.sql

0 comments on commit 5cd0e77

Please sign in to comment.