Skip to content

Commit

Permalink
clearer download script
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Sep 29, 2024
1 parent 9696fce commit 24a4eae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions demo/02_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,13 @@ echo " -> download a job"
echo "giant-squid download jobid"
echo ""

echo " -> download a bunch of obsids with the script at the bottom of 02_download.sh"
exit 0

echo " -> download a bunch of obsids"
cat <<'EOF'
giant-squid list $obsids_csv --states ready --json | jq -r $'.[]|[.jobId,.obsid]|@tsv' | while IFS=$'\t' read -r jobid obsid; do
echo jobid=$jobid obsid=$obsid
mkdir -p $outdir/$obsid/raw;
cd $_;
if eval ls -1 ${obsid}_2*.fits; then continue; fi
if eval ls -1 ${obsid}_2*.fits 2>/dev/null ; then echo "skipping obsid=$obsid"; continue; fi
giant-squid download $jobid;
cd -;
done
EOF

0 comments on commit 24a4eae

Please sign in to comment.