Skip to content

Commit

Permalink
newlines after download instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Aug 21, 2024
1 parent 36c618b commit ce74f6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions demo/02_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export obsids_csv=${obsids_csv:-"${outdir}/obsids.csv"}

if [ ! -f "$obsids_csv" ]; then
echo "obsids_csv=$obsids_csv does not exist. try: ${SCRIPT_BASE}/01_tap.sh" && exit 1
else
echo "there are $(wc -l $obsids_csv | awk '{print $1}') obsids in $obsids_csv"
fi

if [ -z $MWA_ASVO_API_KEY ]; then
Expand All @@ -32,18 +34,25 @@ fi
echo "you should run one of the following commands manually:"
echo " -> request raw visibilities"
echo "giant_squid submit-vis $obsids_csv"
echo ""

echo " -> (or) submit preprocessed visibility conversion jobs (uvfits or ms)"
echo "giant_squid submit-conv $obsids_csv -p output=uvfits,avg_freq_res=40,avg_time_res=2,flag_edge_width=80"
echo ""

echo " -> get human-readable list of jobs that are queued or processing"
echo "giant_squid list $obsids_csv"
echo ""

echo " -> (advanced) get a machine readable list of jobs that are queued or processing"
echo "giant_squid list $obsids_csv --states queued,processing --json >$outdir/jobs.json"
echo "jq -r '[.[]|.jobId]|join(" ")' $outdir/jobs.json"
echo ""

echo " -> wait until a job is ready"
echo "giant_squid wait $obsids_csv"
echo ""

echo " -> download a job"
echo "giant_squid download jobid"
echo ""

0 comments on commit ce74f6b

Please sign in to comment.