-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpxt_tropos_bash
More file actions
104 lines (65 loc) · 2.11 KB
/
pxt_tropos_bash
File metadata and controls
104 lines (65 loc) · 2.11 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/bin/bash
today=$(date +'%Y_%m_%d')
#echo "$today"
yesterday=$(date --date="yesterday" +'%Y_%m_%d')
#echo "$yesterday"
current_year=$(date +'%Y%m')
#year_month= $(date + '%Y%m')
#echo "$current_year"
s=8
string1="today"
string2="yesterday"
if [ $1 == $string1 ]; then
echo "today"
year_month=$current_year
day=$today
echo $day
elif [ $1 == $string2 ]; then
echo "yesterday"
year_month=$current_year
day=$yesterday
echo $day
elif (($1 < $s))
then
echo "full_month"
year_month=$enter
day=""
else
string="$1"
echo $string
day=""
year_month="${string:0:6}"
day+="${string:0:4}"
day+="_"
day+="${string:4:2}"
day+="_"
day+="${string:6:8}"
echo $day
fi
if [ -z "$(ls /home/polly_crew/scc_convert/input_pxt_tropos/)"]
then
echo "Empty"
else
echo "Not"
for file in /home/polly_crew/scc_convert/input_pxt_tropos/*; do rm $file; done
fi
for file in /pollyhome/pollyxt_tropos/data_zip/$year_month/$day*.nc.zip; do unzip $file -d /home/polly_crew/scc_convert/input_pxt_tropos/; echo $file; done
/pollyhome/Bildermacher/miniconda3/bin/python3.6 New_converter_in_one_file_changed_02.06.20.py "import lidarconfig_TROPOS as ld"
#cd /home/polly_crew/scc_access/
/home/polly_crew/scc_access/do_all_depol_pxt_tropos
#./do_all_depol_pxt_tropos
/home/polly_crew/scc_access/do_all_pxt_tropos
#./do_all_pxt_tropos
cd /home/polly_crew/scc_convert/input_pxt_tropos/
if [ -z "$(ls /home/polly_crew/scc_convert/input_pxt_tropos/)"]
then
echo "Empty"
else
echo "Not"
for file in /home/polly_crew/scc_convert/input_pxt_tropos/*; do rm $file; done
fi
#for file in /home/polly_crew/scc_access/depol_pxt_tropos/*; do cp $file /home/polly_crew/scc_access/depol_pxt_tropos/uploaded/; done
for file in /home/polly_crew/scc_access/depol_pxt_tropos/*.nc; do rm $file; done
#for file in /home/polly_crew/scc_access/pxt_tropos/*; do cp $file /home/polly_crew/scc_access/pxt_tropos/uploaded/; done
for file in /home/polly_crew/scc_access/pxt_tropos/*.nc; do rm $file; done
echo "Done"