satnogs-wut/wut

26 lines
600 B
Plaintext
Raw Normal View History

2020-01-02 11:53:15 -07:00
#!/bin/bash
# wut
2020-01-02 17:44:09 -07:00
#
# 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
2020-01-26 17:27:12 -07:00
cd /srv/satnogs
2020-01-02 17:44:09 -07:00
OBSID="$1"
rm -rf data/test
mkdir -p data/test/unvetted
2020-01-02 19:13:58 -07:00
./wut-water $OBSID
2020-01-02 17:44:09 -07:00
[ -f download/$OBSID/waterfall_$OBSID_*.png ] || echo "failed"
[ -f download/$OBSID/waterfall_$OBSID_*.png ] || exit
2020-01-02 17:44:09 -07:00
cp -p download/$OBSID/waterfall_$OBSID_*.png data/test/unvetted/
2020-01-03 23:42:58 -07:00
./wut-ml 2>/dev/null | grep -e ^Observation -e "^\[\[" | sed -e 's/\[\[//' -e 's/\]\]//' -e 's/Observation: //g'
2020-01-02 11:53:15 -07:00