#!/bin/bash # wut # # Given an observation ID, return whether the observation is # "good", "bad", or "failed" depending on what the computer thinks. # # Usage: # wut [Observation ID] # Example: # wut 1456893 cd /srv/satnogs OBSID="$1" rm -rf data/test mkdir -p data/test/unvetted ./wut-water $OBSID [ -f download/$OBSID/waterfall_$OBSID_*.png ] || echo "failed" [ -f download/$OBSID/waterfall_$OBSID_*.png ] || exit cp -p download/$OBSID/waterfall_$OBSID_*.png data/test/unvetted/ ./wut-ml 2>/dev/null | grep -e ^Observation -e "^\[\[" | sed -e 's/\[\[//' -e 's/\]\]//' -e 's/Observation: //g'