#!/usr/bin/env bash
# status: success
# code: 200
# message:
# num_results: 6
#
# Instructions for post-download:
# 1. Using the command line, go to the directory where this script is saved
# 2. Make this script executable: chmod u+x <script>
# 3. Run the script: bash <script>
# Create directory structure
CWD=$(pwd)
if [[ ! -d data ]]; then
mkdir data
fi
cd data
# get files
xargs -n1 curl --create-dirs -o '#1' <<EOF
http://metobs.ssec.wisc.edu/pub/cache/aoss/tower/level_00/version_00/2019/03/28/aoss_tower.2019-03-28.ascii
http://metobs.ssec.wisc.edu/pub/cache/aoss/tower/level_00/version_00/2019/03/29/aoss_tower.2019-03-29.ascii
http://metobs.ssec.wisc.edu/pub/cache/aoss/tower/level_00/version_00/2019/03/30/aoss_tower.2019-03-30.ascii
http://metobs.ssec.wisc.edu/pub/cache/aoss/tower/level_00/version_00/2019/03/31/aoss_tower.2019-03-31.ascii
http://metobs.ssec.wisc.edu/pub/cache/aoss/tower/level_00/version_00/2019/04/01/aoss_tower.2019-04-01.ascii
http://metobs.ssec.wisc.edu/pub/cache/aoss/tower/level_00/version_00/2019/04/02/aoss_tower.2019-04-02.ascii
EOF