-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpaths.py
More file actions
72 lines (48 loc) · 1.64 KB
/
Copy pathpaths.py
File metadata and controls
72 lines (48 loc) · 1.64 KB
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
68
69
70
71
72
#!/usr/bin/env python
# coding: utf-8
import geopandas as gpd
import requests
################# EDIT ##########################
domain = 'WY'
#################################################
#assimilation files
assimPath = 'extra/'
#path to CSO domain
domains_resp = requests.get("https://raw.githubusercontent.com/snowmodel-tools/preprocess_python/master/CSO_domains.json")
domains = domains_resp.json()
# #start date 'YYYY-MM-DD'
# st = domains[domain]['st']
# #end date
# ed = domains[domain]['ed']
#Snotel bounding box
Bbox = domains[domain]['Bbox']
# CSO projection
stn_proj = domains[domain]['stn_proj']
# CSO projection
mod_proj = domains[domain]['mod_proj']
# dem path
dem_path = 'topo_vege/DEM_'+domain+'.tif'
# nlcd path
lc_path = 'topo_vege/NLCD2016_'+domain+'.tif'
##################### SM ######################
#path to SM
SMpath = '/nfs/attic/dfh/Aragon2/WY_scratch/jan2021_snowmodel-dfhill_elev/'
#path to SM .f files
codepath = SMpath+'code'
#path to.inc file
incFile = SMpath+'code/snowmodel.inc'
################# Calibration ##################
################# Assimilation #################
#path to SM outputs on scratch
SMout_scrach = SMpath+domain+'/'
#evaluation snotel sites
snotel_eval_sites = gpd.read_file(SMpath+ 'extra/eval_snotel.geojson')
#assimilation snotel stations
snotel_assim_sites = gpd.read_file(SMpath+ 'extra/assim_snotel_sites.geojson')
#gdat path
gdat_out_path = '/scratch/Nina/WY_gdat/'
############# General CSO info ##################
#CSO data path
CSOpath = SMpath+'extra/cso-data.geojson'
#geojson of all snotel stations in domain
gdf = gpd.read_file(SMpath+'extra/CSO_SNOTEL_sites.geojson')