Skip to content
Snippets Groups Projects
Unverified Commit 5207bd75 authored by David Hoese's avatar David Hoese
Browse files

Move tower archive script to new common archive scheme

parent 58ddca3e
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,16 @@ fi
mkdir -p $TOWER_INCOMING_DIR
fi
log_info "$(date +%Y-%m-%dT%H:%M:%S): Running archive jobs for ${DATE}" >> $logfile
$ENV/bin/python -m metobscommon.archive.incoming -vv -l $logfile --date=${DATE} aoss.tower
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"
# Hack to keep the old 'ascii' directory up to date
# FIXME: Remove this once all new generation scripts work
year=${DATE:0:4}
month=${DATE:4:2}
day=${DATE:6:2}
mkdir -p $TOWER_CACHE_DIR/ascii/${year}/${month}/
ln -s "$TOWER_PRAW_DIR/${year}/${month}/${day}/rig_tower.${year}-${month}-${day}.ascii" "$TOWER_CACHE_DIR/ascii/${year}/${month}/"
log_info "Done"
......
......@@ -36,7 +36,7 @@ cache_level_00_file() {
year=${d:0:4}
month=${d:4:2}
day=${d:6:2}
echo "${TOWER_CACHE_DIR}/aoss/tower/level_00/version_00/${year}/${month}/${day}/aoss_tower.${year}-${month}-${day}.ascii"
echo "${TOWER_CACHE_DIR}/level_00/version_00/${year}/${month}/${day}/aoss_tower.${year}-${month}-${day}.ascii"
}
cache_level_b1_file() {
......@@ -44,5 +44,8 @@ cache_level_b1_file() {
year=${d:0:4}
month=${d:4:2}
day=${d:6:2}
echo "${TOWER_CACHE_DIR}/aoss/tower/level_b1/version_00/${year}/${month}/${day}/aoss_tower.${year}-${month}-${day}.nc"
# new:
# echo "${TOWER_CACHE_DIR}/level_b1/version_00/${year}/${month}/${day}/aoss_tower.${year}-${month}-${day}.nc"
# old:
echo "${TOWER_CACHE_DIR}/level_b1/version_00/${year}/${month}/aoss_tower.${year}-${month}-${day}.nc"
}
\ No newline at end of file
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