Skip to content

Commit

Permalink
add missing precip table and use prod wsg in access
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Jan 5, 2024
1 parent a580c68 commit 884e3e3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions db/tables/mean_annual_precip.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
drop table bcfishpass.mean_annual_precip;
create table bcfishpass.mean_annual_precip (
id integer primary key,
wscode_ltree ltree ,
localcode_ltree ltree ,
watershed_group_code text ,
area bigint ,
map integer,
map_upstream integer
);
create index on bcfishpass.mean_annual_precip using gist (localcode_ltree);
create index on bcfishpass.mean_annual_precip using btree (localcode_ltree);
create index on bcfishpass.mean_annual_precip using gist (wscode_ltree);
create index on bcfishpass.mean_annual_precip using btree (wscode_ltree);
4 changes: 2 additions & 2 deletions model/01_access/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
PSQL=psql $(DATABASE_URL) -v ON_ERROR_STOP=1 # point psql to db and stop on errors

# process all watershed groups
#WSGS = $(shell $(PSQL) -AtX -c "SELECT watershed_group_code FROM whse_basemapping.fwa_watershed_groups_poly")
WSGS = $(shell $(PSQL) -AtX -c "SELECT watershed_group_code FROM whse_basemapping.fwa_watershed_groups_poly")
# test with just watershed groups noted in param (misses cross-wsg barreriers)
WSGS = $(shell $(PSQL) -AtX -c "SELECT watershed_group_code FROM bcfishpass.parameters_habitat_method")
#WSGS = $(shell $(PSQL) -AtX -c "SELECT watershed_group_code FROM bcfishpass.parameters_habitat_method")

# define barrier table targets
NATURAL_BARRIERS = .make/barriers_falls \
Expand Down

0 comments on commit 884e3e3

Please sign in to comment.