Value added table/view reference
fwa_approx_borders
Lines of latitude / longitude for 49N, 60N, -120W. These are used by fwapg for finding cross-border streams
Column |
Type |
Description |
---|---|---|
|
|
Unique identifer |
|
|
A code identifying the border (USA49, YTNWT_60, AB_120) |
|
|
Geometry of the border line |
fwa_assessment_watersheds_lut
Some workflows require relating fwa_assessment_watersheds_poly
to fundamental watersheds. There are no existing keys in the data that maintain this link - the query requires a resource intensive spatial function. Rather than running a spatial query every time, this lookup is provided.
Column |
Type |
Description |
---|---|---|
watershed_feature_id |
integer |
|
assmnt_watershed_id |
integer |
fwa_assessment_watersheds_streams_lut
Some workflows require relating fwa_assessment_watersheds_poly
to stream segments. There are no existing keys in the data that maintain this link - the query requires a resource intensive spatial function. Rather than running a spatial query every time, this lookup is provided.
Column |
Type |
Description |
---|---|---|
linear_feature_id |
integer |
|
assmnt_watershed_id |
integer |
fwa_basins_poly
Large BC watersheds consisting of at least 2-3 watershed groups, used by fwapg for watershed pre-aggregation
Column |
Type |
Description |
---|---|---|
|
|
Basin unique identifier |
|
|
Basin name, eg Thompson River |
|
|
The watershed code associated with the stream at the outlet of the basin |
|
|
The local watershed code associated with the stream at the outlet of the basin |
|
|
Geometry of the basin |
fwa_bcboundary
Boundary of BC as defined by FWA - used by FWA_WatershedAtMeasure()
Column |
Type |
Description |
---|---|---|
|
|
Boundary polygon id |
|
|
Boundary geometry |
fwa_named_streams
Named streams of BC, aggregated per watershed group and simplified using a 25m tolerance (primarily for mapping use)
Column |
Type |
Description |
---|---|---|
|
|
Named stream unique identifier |
|
|
The BCGNIS (BC Geographical Names Information System) name associated with the stream |
|
|
The blue line key of the named stream, see FWA documentation for blue_line_key description |
|
|
The maximum stream order associated with the stream name |
|
|
The watershed group code associated with the named stream |
|
|
The geometry of the named stream, an aggregation of the source features and simpified by 25m |
whse_basemapping.fwa_streams_vw
View of FWA stream networks and value-added attributes
Column |
Type |
Description |
---|---|---|
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
FWA watershed code as postgres ltree type, with trailing -000000 strings removed |
|
|
FWA local watershed code as postgres ltree type, with trailing -000000 strings removed |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
See FWA documentation |
|
|
Stream order of parent stream at confluence with stream having |
|
|
Maxiumum order of the stream with equivalent |
|
|
Area (ha) upstream of the stream segment (including all fundamental watersheds with equivalent watershed code) |
|
|
Area weighted average mean annual precipitation upstream of the stream segment, source ClimateBC |
|
|
Channel width of the stream segment in metres, with source as per channel_width_source |
|
|
Data source for channel_width at given segment, with values (FIELD_MEASURMENT, FWA_RIVERS_POLY, MODELLED). FIELD_MEASUREMENT is derived from PSCIS and FISS data, MODELLED is taken from Thorley et al, 2021 |
|
|
Modelled mean annual discharge at the stream segment (Pacific Climate Impacts Consortium, University of Victoria, (January 2020) VIC-GL BCCAQ CMIP5: Gridded Hydrologic Model Output) |
|
|
fwa_streams_watersheds_lut
A convenience lookup for quickly relating streams and fundamental watersheds
Column |
Type |
Description |
---|---|---|
|
|
FWA stream segment unique identifier |
|
|
FWA fundamental watershed unique identifer |
fwa_waterbodies
All FWA waterbodies in one table for convenience (lakes, wetlands, rivers, manmade waterbodies, glaciers).
Note that this table is meant for connectivity purposes only, only features connected to the network are included (waterbodies with watershed code 999.999999
are excluded). For column descriptions see FWA docs for the various waterbody tables.
Column |
Type |
Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fwa_waterbodies_upstream_area
A lookup storing area of lake/reservoir/wetland upstream of individual stream segments.
Note that this table differs from fwa_watersheds_upstream_area
noted above - we use streams as the lookup base rather than watersheds because waterbodies can be nested within fundamental watersheds.
NOTE - output currently includes area upstream WITHIN BC ONLY, this will not be accurate in watersheds that have contributing drainage outside of BC!
Column |
Type |
Description |
---|---|---|
linear_feature_id |
bigint |
|
upstream_lake_ha |
double precision |
|
upstream_reservoir_ha |
double precision |
|
upstream_wetland_ha |
double precision |
fwa_watersheds_upstream_area
Area upstream (ha) for all fundamental watersheds as a lookup table. Area includes the area of the fundamental watershed indicated by the id.
NOTE - output currently includes area upstream WITHIN BC ONLY, this will not be accurate in watersheds that have contributing drainage outside of BC!
When working with watersheds, join to this lookup directly via watershed_feature_id
.
When working with streams, relate the streams to watersheds via the lookup fwa_streams_watersheds_lut
:
SELECT
s.linear_feature_id,
ua.upstream_area_ha
FROM whse_basemapping.fwa_stream_networks_sp s
LEFT OUTER JOIN whse_basemapping.fwa_streams_watersheds_lut l
ON s.linear_feature_id = l.linear_feature_id
INNER JOIN whse_basemapping.fwa_watersheds_upstream_area ua
ON l.watershed_feature_id = ua.watershed_feature_id
Column |
Type |
Description |
---|---|---|
watershed_feature_id |
integer |
|
upstream_area_ha |
double precision |