parent
d9dcb1b1ae
commit
2fa920feab
|
@ -8,7 +8,7 @@
|
|||
# Usage:
|
||||
# wut-compare-tx [Transmitter UUID]
|
||||
# Example:
|
||||
# wut-compare-tx EifSE4XNdP9LyoFNcbcNJo
|
||||
# wut-compare-tx KgazZMKEa74VnquqXLwAvD
|
||||
|
||||
MAIN_DIR=`pwd`
|
||||
OBSTX="$1"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# Usage:
|
||||
# wut-dl-sort-tx [Transmitter UUID] [Minimum Observation ID] [Maximum Observation ID]
|
||||
# Example:
|
||||
# wut-dl-sort-tx EifSE4XNdP9LyoFNcbcNJo 1467000 1470000
|
||||
# wut-dl-sort-tx KgazZMKEa74VnquqXLwAvD 1467000 1470000
|
||||
#
|
||||
# * Takes the files in the download/ dir.
|
||||
# * Looks at the JSON files to see if it is :good", "bad", or "failed".
|
||||
|
@ -41,8 +41,7 @@ echo "Parsing download/ directory for observation IDs $OBSIDMIN to $OBSIDMAX"
|
|||
cd download/ || exit
|
||||
|
||||
while [ $OBSID -lt $OBSIDMAX ]
|
||||
do echo "ID: $OBSID "
|
||||
cd $OBSID
|
||||
do cd $OBSID
|
||||
VET=`cat $OBSID.json | jq --compact-output '.[0] | {vetted_status}' | cut -f 2 -d ":" | sed -e 's/}//g' -e 's/"//g'`
|
||||
TX=`cat $OBSID.json | jq --compact-output '.[0] | {transmitter_uuid}' | cut -f 2 -d ":" | sed -e 's/}//g' -e 's/"//g'`
|
||||
if [ $OBSTX = $TX ] ; then
|
||||
|
|
|
@ -44,11 +44,10 @@ echo "Parsing download/ directory for observation IDs $OBSIDMIN to $OBSIDMAX"
|
|||
cd download/ || exit
|
||||
|
||||
while [ $OBSID -lt $OBSIDMAX ]
|
||||
do echo "ID: $OBSID "
|
||||
cd $OBSID
|
||||
do cd $OBSID
|
||||
VET=`cat $OBSID.json | jq --compact-output '.[0] | {vetted_status}' | cut -f 2 -d ":" | sed -e 's/}//g' -e 's/"//g'`
|
||||
ENC=`cat $OBSID.json | jq --compact-output '.[0] | {transmitter_mode}' | cut -f 2 -d ":" | sed -e 's/}//g' -e 's/"//g'`
|
||||
if [ $OBSENC = $ENC ] ; then
|
||||
if [ "$OBSENC" = "$ENC" ] ; then
|
||||
RAND_DIR=`echo $((0 + RANDOM % 2))`
|
||||
if [ $RAND_DIR = 1 ] ; then
|
||||
CLASS_DIR="train"
|
||||
|
|
2
wut-ml
2
wut-ml
|
@ -5,7 +5,7 @@
|
|||
# It will vet the image located at test/unvetted/waterfall.png.
|
||||
#
|
||||
# Note, there is an issue to fix where it will vet everything
|
||||
# under the data/test directory, so fix that. For now, just deleted
|
||||
# under the data/test directory, so fix that. For now, just delete
|
||||
# everything else. :)
|
||||
#
|
||||
# Usage:
|
||||
|
|
|
@ -36,7 +36,7 @@ while [ $OBSID -gt $OBSIDMIN ]
|
|||
--http2 --ipv4 \
|
||||
--silent \
|
||||
--output $OBSID.json \
|
||||
"$APIURL/observations/?id=$OBSID&ground_station=&satellite__norad_cat_id=&transmitter_uuid=&transmitter_mode=&transmitter_type=&vetted_status=&vetted_user=&start=&end=" && sleep `echo $((0 + RANDOM % 6))`
|
||||
"$APIURL/observations/?id=$OBSID&ground_station=&satellite__norad_cat_id=&transmitter_uuid=&transmitter_mode=&transmitter_type=&vetted_status=&vetted_user=&start=&end=" && sleep `echo $((0 + RANDOM % 1))`
|
||||
WATERURL=`cat $OBSID.json | jq --compact-output '.[0] | {waterfall}' | cut -f 2- -d : | sed -e 's/}//g' -e 's/http:/https:/g' -e 's/"//g'`
|
||||
WATERFILE=`basename $WATERURL`
|
||||
[ ! -f $WATERFILE ] && \
|
||||
|
@ -46,7 +46,7 @@ while [ $OBSID -gt $OBSIDMIN ]
|
|||
--continue-at - \
|
||||
--remote-time \
|
||||
--output $WATERFILE \
|
||||
$WATERURL && sleep `echo $((0 + RANDOM % 6))`
|
||||
$WATERURL && sleep `echo $((0 + RANDOM % 1))`
|
||||
cd ..
|
||||
let OBSID=$OBSID-1
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue