-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcsv2shape.sh
executable file
·65 lines (50 loc) · 1.68 KB
/
csv2shape.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
#!/bin/bash
##########################################
#
# Paths and routes
#
##########################################
# paths
source $HOME/gutta.conf
##########################################
#
# Load utils
#
##########################################
source ${OP_PATH}/utils.sh
##########################################
#
# Start doing things...
#
##########################################
# SENT=1
# while [[ ! $SENT -eq 0 ]]; do
# Notify 2 "Csv2shape" "Job starting -- [$LSB_JOBINDEX]"
# SENT=$?
# if [[ $SENT -eq 0 ]]; then
# break
# fi
# sleep 6
# done
RUNDATE=$1
# load anaconda conf
source ~/.bash_anaconda_3.7
# activate environment
conda activate csv2shape
# define routes
ROUTES=('ALDRZ_ITBDS' 'ALDRZ_ITBRI' 'GRGPA_ITBDS' 'GRIGO_ITBDS' 'HRDBV_ITBDS' 'HRDBV_ITBRI' 'HRRJK_ITAOI' 'HRSPU_ITAOI' 'HRSPU_ITBRI' 'HRZAD_ITAOI' 'HRZAD_ITBLT' 'HRZAD_ITRAN' 'ITAOI_HRDBV' 'ITAOI_HRRJK' 'ITAOI_HRSPU' 'ITAOI_HRZAD' 'ITBDS_ALDRZ' 'ITBDS_GRGPA' 'ITBDS_GRIGO' 'ITBDS_HRDBV' 'ITBDS_MEBAR' 'ITBLT_HRZAD' 'ITBRI_ALDRZ' 'ITBRI_HRDBV' 'ITBRI_HRSPU' 'ITBRI_MEBAR' 'ITRAN_HRZAD' 'MEBAR_ITBDS' 'MEBAR_ITBRI' 'HRDBV_ITAOI')
ROUTE=${ROUTES[$LSB_JOBINDEX]}
# process csv files
echo "find ${DATAPRODUCTS}/${RUNDATE}/${SRCAPPEND}/ -iname \*csv -not -name Performance.csv -exec python csv2shape.py -i {} \;"
find ${DATAPRODUCTS}/${RUNDATE}/${SRCAPPEND}/ -iname \*csv -not -name Performance.csv -exec python csv2shape.py -i {} \;
# deactivate environment
conda deactivate
# SENT=1
# while [[ ! $SENT -eq 0 ]]; do
# Notify 1 "Csv2shape" "Job completed -- [$LSB_JOBINDEX]"
# SENT=$?
# if [[ $SENT -eq 0 ]]; then
# break
# fi
# sleep 6
# done