Skip to content
Snippets Groups Projects
Verified Commit e1a083a7 authored by David Hoese's avatar David Hoese
Browse files

Change raw tower ascii files from rig_tower to aoss_tower

parent 1e2debf7
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ fi ...@@ -29,7 +29,7 @@ fi
fi fi
log_info "$(date +%Y-%m-%dT%H:%M:%S): Running archive jobs for ${DATE}" log_info "$(date +%Y-%m-%dT%H:%M:%S): Running archive jobs for ${DATE}"
$ENV/bin/python -m metobscommon.archive.incoming -vv -l $logfile --dates=${DATE} 00 aoss.tower "rig_tower.%Y-%m-%d.ascii" $ENV/bin/python -m metobscommon.archive.incoming -vv -l $logfile --dates=${DATE} 00 aoss.tower "aoss_tower.%Y-%m-%d.ascii"
# Hack to keep the old 'ascii' directory up to date # Hack to keep the old 'ascii' directory up to date
# FIXME: Remove this once all new generation scripts work # FIXME: Remove this once all new generation scripts work
...@@ -39,7 +39,7 @@ fi ...@@ -39,7 +39,7 @@ fi
link_fn="$TOWER_CACHE_DIR/ascii/${year}/${month}/rig_tower.${year}-${month}-${day}.ascii" link_fn="$TOWER_CACHE_DIR/ascii/${year}/${month}/rig_tower.${year}-${month}-${day}.ascii"
if [ ! -e $link_fn ]; then if [ ! -e $link_fn ]; then
mkdir -p $TOWER_CACHE_DIR/ascii/${year}/${month}/ mkdir -p $TOWER_CACHE_DIR/ascii/${year}/${month}/
ln -s "$TOWER_PRAW_DIR/${year}/${month}/${day}/rig_tower.${year}-${month}-${day}.ascii" ${link_fn} ln -s "$TOWER_PRAW_DIR/${year}/${month}/${day}/aoss_tower.${year}-${month}-${day}.ascii" ${link_fn}
fi fi
log_info "Done" log_info "Done"
......
...@@ -9,12 +9,11 @@ LOGGERNET_DATA=/data1/incoming/aoss/tower/ ...@@ -9,12 +9,11 @@ LOGGERNET_DATA=/data1/incoming/aoss/tower/
#LOGGERNET_DATA=/tmp #LOGGERNET_DATA=/tmp
HEADER_SIZE=0 HEADER_SIZE=0
INPUT_PREFIX="rig_tower" INPUT_PREFIX="rig_tower"
OUTPUT_PREFIX="rig_tower" OUTPUT_PREFIX="aoss_tower"
#FILE_SUFFIXES="engdata metdata gpsdata" #FILE_SUFFIXES="engdata metdata gpsdata"
FILE_SUFFIXES="_" FILE_SUFFIXES="_"
INPUT_EXT="dat" INPUT_EXT="ascii"
OUTPUT_EXT="ascii" OUTPUT_EXT="ascii"
DAYS=6
assert_python() { assert_python() {
python -c "import sys; sys.exit(sys.version_info[0] >= 3)" python -c "import sys; sys.exit(sys.version_info[0] >= 3)"
......
...@@ -2,17 +2,18 @@ ...@@ -2,17 +2,18 @@
# These values should override values used in python or bash scripts # These values should override values used in python or bash scripts
# #
# where the tower ascii files get pushed to # where the tower ascii files get pushed to
export TOWER_INCOMING_DIR=/mnt/inst-data/incoming/aoss/tower DATA_ROOT=/data1
export TOWER_INCOMING_DIR="${DATA_ROOT}/incoming/aoss/tower"
# The archived location (primary raw) # The archived location (primary raw)
export TOWER_PRAW_DIR=/mnt/inst-data/raw/aoss/tower export TOWER_PRAW_DIR="${DATA_ROOT}/raw/aoss/tower"
# Where generated products go # Where generated products go
export TOWER_CACHE_DIR=/mnt/inst-data/cache/aoss/tower export TOWER_CACHE_DIR="${DATA_ROOT}/cache/aoss/tower"
# Python environment to use and where scripts are location # Python environment to use and where scripts are location
export ENV=/data1/software/aoss-tower3 export ENV=/opt/metobs/aoss_tower
# Directory where logs will be stored # Directory where logs will be stored
export LOGDIR=$ENV/logs export LOGDIR=$ENV/logs
# Directory where work files can be placed (inside a separate temp directory) # Directory where work files can be placed (inside a separate temp directory)
export WORKDIR=/mnt/inst-data/tmp export WORKDIR="${DATA_ROOT}/tmp"
log_info() { log_info() {
echo "INFO: $*" &>> $logfile echo "INFO: $*" &>> $logfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment