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

Make plots daily

parent 1b568b37
No related branches found
No related tags found
No related merge requests found
...@@ -512,7 +512,7 @@ def main(): ...@@ -512,7 +512,7 @@ def main():
frame = frame[args.start_time: args.end_time] frame = frame[args.start_time: args.end_time]
elif args.start_time: elif args.start_time:
#frame only contains data from start-end of that day #frame only contains data from start-end of that day
end_time = args.start_time.replace(hour=23, minute=59, second=59) end_time = args.start_time.replace(hour=23, minute=59, second=59, microsecond=999999)
frame = frame[args.start_time: end_time] frame = frame[args.start_time: end_time]
if not args.daily: if not args.daily:
......
...@@ -52,7 +52,7 @@ fi ...@@ -52,7 +52,7 @@ fi
### Quicklook Generation ### ### Quicklook Generation ###
# assumes that out_file is what the archive script wrote the file as # assumes that out_file is what the archive script wrote the file as
log_info "Generating Quicklook images..." log_info "Generating Quicklook images..."
$ENV/bin/python -m aosstower.level_b1.quicklook -l "$logfile" -vv --thumbnail -s "$DATE" "$out_file" -o "$tmp_dir/aoss_tower.{plot_name}.{start_time:%Y-%m-%d}.png" -p meteorogram td pressure wind_speed wind_dir accum_precip solar_flux $ENV/bin/python -m aosstower.level_b1.quicklook -l "$logfile" -vv --thumbnail --daily -s "$DATE" "$out_file" -o "$tmp_dir/aoss_tower.{plot_name}.{start_time:%Y-%m-%d}.png" -p meteorogram td pressure wind_speed wind_dir accum_precip solar_flux
quicklook_status=$? quicklook_status=$?
if [ $quicklook_status -ne 0 ]; then if [ $quicklook_status -ne 0 ]; then
oops "Quicklook generation failed for $DATE" oops "Quicklook 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