Skip to content

Commit

Permalink
minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Apr 22, 2021
1 parent c52da28 commit 5d8c568
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion reg/providers.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
id,provider,description
1,https://waterdata.usgs.gov,U.S. Geological Survey Water Mission Area
2,https://cdec.water.ca.gov,California Data Exchange Center
2,https://cdec.water.ca.gov,California Data Exchange Center
1 change: 0 additions & 1 deletion reg/ref_gages.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
id,provider,provider_id
111,1,a123
1000001,1,08332622
1000002,1,08332620
1000003,1,08332616
Expand Down
8 changes: 5 additions & 3 deletions runner.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ plan <- drake_plan(
# This functions loads locally stored streamstats sites.
streamstats_sites = get_streamstats_sites(),

# this function filters and renames NWIS Gage Locations
# this function filters and renames gage locations to a common table
gage_locations = get_gage_locations(nwis_gage, streamstats_sites, cdec_gage),

# This Gage layer from NHDPlusV2 is a basic starting point for
Expand Down Expand Up @@ -70,9 +70,11 @@ plan <- drake_plan(
# Each entry will have a provider and provider_id that acts as a unique
# primary key. The existing registry file will have a unique attribute
# that contains that primary key.
providers = read_csv(drake::file_in("reg/providers.csv")),
providers = read_csv(file_in("reg/providers.csv")),


registry = build_registry(gage_locations,
registry = registry_file,
registry = file_in(registry_file),
providers = providers),

# Creates an output for USGS namespace reference locations
Expand Down

0 comments on commit 5d8c568

Please sign in to comment.