-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·36 lines (31 loc) · 918 Bytes
/
run.sh
File metadata and controls
executable file
·36 lines (31 loc) · 918 Bytes
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
#!/bin/bash
PS_METHOD=$1
today=`date +%Y%m%d_%H%M%S`
stat="pansharpenning_stats_"$today".csv"
if [ $# -lt 1 ];then
echo "Method input is missing."
fi
if [ "$2" == "--multi-thread" ];then
/usr/bin/python perf_main_latest.py \
--ms-file data/spot6/GEBZE/S6_GEBZE_MS.tiff \
--pan-file data/spot6/GEBZE/S6_GEBZE_PAN.tiff \
--xml-file data/spot6/GEBZE/S6_GEBZE_MS.XML \
--filter ideal_lpf \
--cutoff-freq 0.125 \
--ps-method $PS_METHOD \
--out-file data/spot6/GEBZE/ \
--stat-file $stat \
--run-times 10 \
--multi-thread
else
/usr/bin/python perf_main_latest.py \
--ms-file data/spot6/GEBZE/S6_GEBZE_MS.tiff \
--pan-file data/spot6/GEBZE/S6_GEBZE_PAN.tiff \
--xml-file data/spot6/GEBZE/S6_GEBZE_MS.XML \
--filter ideal_lpf \
--cutoff-freq 0.125 \
--ps-method $PS_METHOD \
--out-file data/spot6/GEBZE/ \
--stat-file $stat \
--run-times 10
fi