Skip to content

Commit

Permalink
FIX: update path of pyrad tools for new balfrin structure
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Oct 15, 2024
1 parent e01a676 commit d2e3feb
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/pyart
4 changes: 2 additions & 2 deletions tools/copyData/get_hzt_cscs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ umask 0002
# Config
dateCmd="/bin/date"

rawdata_origbase=/store/msrad/radar/swiss/data/
data_destbase=/store/msrad/cosmo/HZT/
rawdata_origbase=/store_new/mch/msrad/radar/swiss/data/
data_destbase=/store_new/mch/msrad/cosmo/HZT/

hour_fcst_vec='all'
hour_run_vec='all'
Expand Down
2 changes: 1 addition & 1 deletion tools/copyData/get_iso0_cosmo_cscs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ umask 0002
#module load idl
. /apps/escha/itt/idl/idl85/inst/idl85/bin/idl_setup.bash

export IDL_OTLDIR=/store/msrad/idl
export IDL_OTLDIR=/store_new/mch/msrad/idl
export IDL_STARTUP=$IDL_OTLDIR/im_setup.idl;export IDL_STARTUP

export IDL_DIR=/apps/escha/itt/idl/idl85/inst/idl85/
Expand Down
4 changes: 2 additions & 2 deletions tools/copyData/get_rad4alp_cartesian_data_CSCS_2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ umask 0002
dateCmd="/bin/date"


rawdata_origbase=/store/msrad/radar/swiss/data/
rawdata_origbase=/store_new/mch/msrad/radar/swiss/data/

# default variables
START_TIME="000001"
END_TIME="240000"
time_vec='all'

data_destbase=/store/msrad/radar/rad4alp/rawdata/
data_destbase=/store_new/mch/msrad/radar/rad4alp/rawdata/
while [[ $# -gt 1 ]]
do
key="$1"
Expand Down
6 changes: 3 additions & 3 deletions tools/copyData/get_rad4alp_data_CSCS_2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ umask 0002
# Config
dateCmd="/bin/date"

phdata_origbase=/store/msrad/radar/polarHR/data/
rawdata_origbase=/store/msrad/radar/swiss/data/
phdata_origbase=/store_new/mch/msrad/radar/polarHR/data/
rawdata_origbase=/store_new/mch/msrad/radar/swiss/data/

file_type=M

Expand All @@ -22,7 +22,7 @@ time_vec='all'

ele_vec='all'

data_destbase=/store/msrad/radar/rad4alp/rawdata/
data_destbase=/store_new/mch/msrad/radar/rad4alp/rawdata/
while [[ $# -gt 1 ]]
do
key="$1"
Expand Down
6 changes: 3 additions & 3 deletions tools/copyData/get_temp_cosmo1_cscs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
umask 0002

# Config
cosmobaseraw='/store/msrad/cosmo/TEMP/raw/'
cosmopathcscs='/store/s83/owm/COSMO-1/ORDERS/MDR/'
cosmobaseraw='/store_new/mch/msrad/cosmo/TEMP/raw/'
cosmopathcscs='/store_new/mch/s83/owm/COSMO-1/ORDERS/MDR/'

#module load idl
. /apps/albis/itt/idl/idl84/inst/idl84/bin/idl_setup.bash

export IDL_OTLDIR=/store/msrad/idl
export IDL_OTLDIR=/store_new/mch/msrad/idl
export IDL_STARTUP=$IDL_OTLDIR/im_setup.idl;export IDL_STARTUP

export IDL_DIR=/apps/albis/itt/idl/idl84/inst/idl84/
Expand Down
6 changes: 3 additions & 3 deletions tools/copyData/get_temp_cosmo1e_cscs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
umask 0002

# Config
cosmobaseraw='/store/msrad/cosmo/TEMP/raw/'
cosmopathcscs='/store/s83/osm/COSMO-1E/ORDERS/MDR/'
cosmobaseraw='/store_new/mch/msrad/cosmo/TEMP/raw/'
cosmopathcscs='/store_new/mch/s83/osm/COSMO-1E/ORDERS/MDR/'

#module load idl
. /apps/albis/itt/idl/idl84/inst/idl84/bin/idl_setup.bash

export IDL_OTLDIR=/store/msrad/idl
export IDL_OTLDIR=/store_new/mch/msrad/idl
export IDL_STARTUP=$IDL_OTLDIR/im_setup.idl;export IDL_STARTUP

export IDL_DIR=/apps/albis/itt/idl/idl84/inst/idl84/
Expand Down
2 changes: 1 addition & 1 deletion tools/copyData/get_temp_cosmo2_cscs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ umask 0002
#module load idl
. /apps/albis/itt/idl/idl84/inst/idl84/bin/idl_setup.bash

export IDL_OTLDIR=/store/msrad/idl
export IDL_OTLDIR=/store_new/mch/msrad/idl
export IDL_STARTUP=$IDL_OTLDIR/im_setup.idl;export IDL_STARTUP

export IDL_DIR=/apps/albis/itt/idl/idl84/inst/idl84/
Expand Down
4 changes: 2 additions & 2 deletions tools/copyData/get_trt_data_cscs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ umask 0002
# Config
dateCmd="/bin/date"

rawdata_origbase=/store/msrad/radar/swiss/data/
rawdata_origbase=/store_new/mch/msrad/radar/swiss/data/

# default variables
data_destbase=/store/msrad/radar/rad4alp/TRT/
data_destbase=/store_new/mch/msrad/radar/rad4alp/TRT/
while [[ $# -gt 1 ]]
do
key="$1"
Expand Down
2 changes: 1 addition & 1 deletion tools/copyData/rm_hzt_cscs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
umask 0002

# Config
data_destbase=/store/msrad/cosmo/cosmo1/HZT/
data_destbase=/store_new/mch/msrad/cosmo/cosmo1/HZT/
while [[ $# -gt 1 ]]
do
key="$1"
Expand Down
2 changes: 1 addition & 1 deletion tools/copyData/rm_rad4alp_cartesian_data_CSCS_2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ START_TIME="000001"
END_TIME="240000"
time_vec='all'

data_destbase=/store/msrad/radar/rad4alp/rawdata/
data_destbase=/store_new/mch/msrad/radar/rad4alp/rawdata/
while [[ $# -gt 1 ]]
do
key="$1"
Expand Down
2 changes: 1 addition & 1 deletion tools/copyData/rm_rad4alp_data_CSCS_2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ START_TIME="000001"
END_TIME="240000"
time_vec='all'

data_destbase=/store/msrad/radar/rad4alp/rawdata/
data_destbase=/store_new/mch/msrad/radar/rad4alp/rawdata/
while [[ $# -gt 1 ]]
do
key="$1"
Expand Down
2 changes: 1 addition & 1 deletion tools/copyData/rm_temp_cosmo1_cscs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ umask 0002

# Config
dateCmd="/bin/date"
cosmobaseraw='/store/msrad/cosmo/cosmo1/TEMP/raw1/'
cosmobaseraw='/store_new/mch/msrad/cosmo/cosmo1/TEMP/raw1/'

while [[ $# -gt 1 ]]
do
Expand Down
2 changes: 1 addition & 1 deletion tools/processData/generate_cartesian_tasks_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def main():
get_data = 1
rm_data = 1
prod = 'RZC'
data_destbase = '/store/msrad/radar/rad4alp/rawdata/'
data_destbase = '/store_new/mch/msrad/radar/rad4alp/rawdata/'

with open(ftasks_name, 'w', newline='') as txtfile:
for day in datelist:
Expand Down
6 changes: 3 additions & 3 deletions tools/processData/generate_tasks_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,18 @@ def main():
get_data = 1
rm_data = 1
ele = '001,002,003'
data_destbase = '/store/msrad/radar/rad4alp/raw/'
data_destbase = '/store_new/mch/msrad/radar/rad4alp/raw/'

get_cosmo = 0
rm_cosmo = 0
cosmo_destbase = '/store/msrad/cosmo/cosmo1/TEMP/raw1/'
cosmo_destbase = '/store_new/mch/msrad/cosmo/cosmo1/TEMP/raw1/'

# hour: hours from run time format 00 to 06
# if more than one separate by a comma
get_hzt = 0
rm_hzt = 0
hour = '00,01,02'
hzt_destbase = '/store/msrad/cosmo/tmp/HZT/'
hzt_destbase = '/store_new/mch/msrad/cosmo/tmp/HZT/'

with open(ftasks_name, 'w', newline='') as txtfile:
for day in datelist:
Expand Down
14 changes: 7 additions & 7 deletions tools/processData/get_and_process_rad4alp_data_cscs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,24 @@
# --rm_data : if set, remove radar data after processing if data was fetched
# from archive. Default 0
# --data_destbase : rad4alp data destination base path.
# Default /store/msrad/radar/rad4alp/rawdata/
# Default /store_new/mch/msrad/radar/rad4alp/rawdata/
# --get_cosmo : if set, get COSMO temperature data. Default 1
# --rm_cosmo : if set, remove COSMO temperature data after processing if data
# was fetched from archive. Default 0
# --cosmo_destbase : COSMO temperature data destination base path.
# Default /store/msrad/cosmo/cosmo1/TEMP/raw1/
# Default /store_new/mch/msrad/cosmo/cosmo1/TEMP/raw1/
# --get_hzt : if set, get HZT data. Default 0
# --rm_hzt : if set, remove HZT data after processing if data was fecthed from
# archive. Default 0
# -h|--hour : hour from run of iso0 to retrieved format 00 to 06
# if "all" all forecast times will be retrieved
# --hzt_destbase : HZT data destination base path.
# Default /store/msrad/cosmo/cosmo1/HZT/
# Default /store_new/mch/msrad/cosmo/cosmo1/HZT/
# --MP_DSET : Parallelize dataset generation. Default 0
# --MP_PROD : Parallelize product generation. Default 0
# --MP_PROF : Profile parallelization. Default 0
umask 0002;
export PATH="/store/msrad/utils/anaconda3-pyrad/bin/:$PATH"
export PATH="/store_new/mch/msrad/utils/anaconda3-pyrad/bin/:$PATH"

pyradpath="$HOME/pyrad/src/pyrad_proc/scripts/"

Expand All @@ -59,15 +59,15 @@ END_TIME="240000"

GET_DATA=1
RM_DATA=0
DATA_DESTBASE=/store/msrad/radar/rad4alp/rawdata/
DATA_DESTBASE=/store_new/mch/msrad/radar/rad4alp/rawdata/

GET_COSMO=1
RM_COSMO=0
COSMO_DESTBASE=/store/msrad/cosmo/TEMP/raw/
COSMO_DESTBASE=/store_new/mch/msrad/cosmo/TEMP/raw/

GET_HZT=0
RM_HZT=0
HZT_DESTBASE=/store/msrad/cosmo/HZT/
HZT_DESTBASE=/store_new/mch/msrad/cosmo/HZT/

info_vec='None'
cfgpath_vec="$HOME/pyrad/config/processing/"
Expand Down

0 comments on commit d2e3feb

Please sign in to comment.