This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
4_other_sources.yml
67 lines (54 loc) · 2.13 KB
/
4_other_sources.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
target_default: 4_other_sources
packages:
- dplyr
- readr
- yaml
- stringr
- readxl
- sf
sources:
- 4_other_sources/src/get_ecosheds_data.R
- 4_other_sources/src/get_norwest_data.R
targets:
4_other_sources:
depends:
- 4_other_sources/out/ecosheds_summary.csv
- 4_other_sources/out/ecosheds_sites.rds.ind
- 4_other_sources/out/norwest_raw_site_data.rds.ind
- 4_other_sources/out/norwest_raw_temp_data.feather.ind
# Eco-SHEDS data
# unzip values and metadata, merge, and write EcoSHEDS data
# files sent by Jeff Walker on 6/22 - includes all public-facing EcoSHEDS daily data
4_other_sources/out/ecosheds_data.rds.ind:
command: unzip_merge_values(
zip_ind = '4_other_sources/in/sheds-public-data-20220412.zip.ind',
out_ind = target_name)
4_other_sources/out/ecosheds_sites.rds.ind:
command: unzip_extract_sites(
zip_ind = '4_other_sources/in/sheds-public-data-20220412.zip.ind',
out_ind = target_name)
4_other_sources/out/ecosheds_summary.csv:
command: summarize_ecosheds_data(
data_ind = '4_other_sources/out/ecosheds_data.rds.ind', out_file = target_name)
##############################
## get NorWeST data ##########
##############################
norwest_url:
command: c(I('https://www.fs.fed.us/rm/boise/AWAE/projects/NorWeST/StreamTemperatureDataSummaries.shtml'))
norwest_dl_filenames:
command: get_filenames(url = norwest_url)
# this returns hashes of the two indicator files
# created by the task file
4_other_sources/out/norwest_raw_files.yml:
command: do_data_file_tasks(
out_file = target_name,
files = norwest_dl_filenames,
download_base_url = I('https://www.fs.fed.us/rm/boise/AWAE/projects/NorWeST/downloads/ObservedStreamTemperatureMaps'),
'4_other_sources/src/get_norwest_data.R')
# pull out indicators explicity here, depend on norwest_raw_files.yml
4_other_sources/out/norwest_raw_site_data.rds.ind:
command: c()
depends: '4_other_sources/out/norwest_raw_files.yml'
4_other_sources/out/norwest_raw_temp_data.feather.ind:
command: c()
depends: '4_other_sources/out/norwest_raw_files.yml'