This repository has been archived by the owner on May 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun.sh
executable file
·87 lines (82 loc) · 2.31 KB
/
run.sh
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash
shopt -s expand_aliases
export PYTHONWARNINGS="ignore:Unverified HTTPS request"
export GDAL_DATA="/Users/castro/miniconda2/envs/parflow/share/gdal"
export PROJ_LIB="/Users/castro/miniconda2/envs/parflow/share/proj"
alias py="/Users/castro/miniconda2/envs/parflow/bin/python"
## clip slopex
#echo clip slopex
#py Clip_Inputs/clip_inputs.py \
# -i test/slopex.tif \
# -out_name output_slopex \
# -pfmask test/conus_1km_PFmask2.tif \
# shapefile \
# -shp_file test/shpfile/watershed.shp \
# -id 1 2 3 \
# -att ID
#
## clip slopey
#echo clip slopey
#py Clip_Inputs/clip_inputs.py \
# -i test/slopey.tif \
# -out_name output_slopey \
# -pfmask test/conus_1km_PFmask2.tif \
# shapefile \
# -shp_file test/shpfile/watershed.shp \
# -id 1 2 3 \
# -att ID
#
## clip pressure
#echo clip pressure
#py Clip_Inputs/clip_inputs.py \
# -i test/press.in.tif \
# -out_name output_press \
# -pfmask test/conus_1km_PFmask2.tif \
# shapefile \
# -shp_file test/shpfile/watershed.shp \
# -id 1 2 3 \
# -att ID
#
## clip grid3d
#echo clip grid3d
#py Clip_Inputs/clip_inputs.py \
# -i test/grid3d.v3.tif \
# -out_name output_grid \
# -pfmask test/conus_1km_PFmask2.tif \
# shapefile \
# -shp_file test/shpfile/watershed.shp \
# -id 1 2 3 \
# -att ID
#
#echo subset domain
#py Create_Subdomain/subset_domain.py \
# -out_name subset.pfsol \
# -pfmask test/conus_1km_PFmask2.tif \
# -pflakesmask test/conus_1km_PFmask_selectLakesmask.tif \
# -pflakesborder test/conus_1km_PFmask_selectLakesborder.tif \
# -pfbordertype test/1km_PF_BorderCellType.tif \
# -pfsinks test/conus_1km_PFmask_manualsinks.tif shapefile \
# -shp_file test/shpfile/watershed.shp \
# -id 1 2 3 \
# -att ID
#
#echo extract lat lon
#py CLM/domain_extract_latlon.py \
# -shp_file test/shpfile/watershed.shp \
# -id 1 2 3 \
# -att ID \
# -pfmask test/conus_1km_PFmask2.tif \
# -out_name test/latlon.txt
#
#echo create vsgm lat lon
#py CLM/create_vegm_latlon.py \
# -input_igbp CLM/naigbpl20.tif \
# -input_latlon test/latlon.txt \
# -out_name test/drv_vegm.UC.dat
echo create tcl script
py Make_Tcl/generate_tcl_script.py \
-pfsol test/subset.pfsol.pfsol \
-s test/output_slope \
-t Make_Tcl/parking_lot_template.tcl \
-r test_subset \
-a test/