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

Fix ascii file location and netcdf generation call

parent 19305312
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,8 @@ cache_level_00_file() { ...@@ -36,7 +36,8 @@ cache_level_00_file() {
year=${d:0:4} year=${d:0:4}
month=${d:4:2} month=${d:4:2}
day=${d:6:2} day=${d:6:2}
echo "${TOWER_CACHE_DIR}/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"
echo "${TOWER_CACHE_DIR}/level_00/version_00/${year}/${month}/${day}/rig_tower.${year}-${month}-${day}.ascii"
} }
cache_level_b1_file() { cache_level_b1_file() {
...@@ -45,7 +46,7 @@ cache_level_b1_file() { ...@@ -45,7 +46,7 @@ cache_level_b1_file() {
month=${d:4:2} month=${d:4:2}
day=${d:6:2} day=${d:6:2}
# new: # new:
# echo "${TOWER_CACHE_DIR}/level_b1/version_00/${year}/${month}/${day}/aoss_tower.${year}-${month}-${day}.nc" echo "${TOWER_CACHE_DIR}/level_b1/version_00/${year}/${month}/${day}/aoss_tower.${year}-${month}-${day}.nc"
# old: # old:
echo "${TOWER_CACHE_DIR}/level_b1/version_00/${year}/${month}/aoss_tower.${year}-${month}-${day}.nc" # echo "${TOWER_CACHE_DIR}/level_b1/version_00/${year}/${month}/aoss_tower.${year}-${month}-${day}.nc"
} }
\ No newline at end of file
...@@ -39,7 +39,7 @@ fi ...@@ -39,7 +39,7 @@ fi
out_file=`cache_level_b1_file "$DATE"` out_file=`cache_level_b1_file "$DATE"`
out_fn=`basename "$out_file"` out_fn=`basename "$out_file"`
tmp_out="$tmp_dir/$out_fn" tmp_out="$tmp_dir/$out_fn"
$ENV/bin/python -m aosstower.level_b1.nc -vv -z -i "$prev_file" "$curr_file" --date="${DATE}" -o "$tmp_out" >> $logfile $ENV/bin/python -m aosstower.level_b1.nc -vv -z -i "$prev_file" "$curr_file" -s "${DATE}" -o "$tmp_out" >> $logfile
nc_status=$? nc_status=$?
if [ $nc_status -ne 0 ]; then if [ $nc_status -ne 0 ]; then
oops "NetCDF generation failed for $DATE" oops "NetCDF generation failed for $DATE"
......
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