#!/bin/bash
#---------------------------------------------------------------------------------------------------
#
# name:			get_avdc_data_pub.sh
#
#---------------------------------------------------------------------------------------------------

echo 
echo "=================================================================================================================="
echo 
echo "Get AVDC data from public directories"
echo 
echo "=================================================================================================================="
echo 

if [ $# -ne 1 ]; then
	echo
	echo "usage: get_avdc_data_pub.sh [AVDC web dir]"
	echo
	echo "------------------------------------------------------------------------------------------"
	echo "1: AVDC web dir: e.g. http://avdc.gsfc.nasa.gov/pub/DSCOVR/EPIC_Test_Data/EPIC_r05_Test_data/epic_r05_FFSL_2016_10"
	echo "------------------------------------------------------------------------------------------"
	exit
fi

DIRHTTP=$1

wget -r -m -e robots=off -nH --no-parent --cut-dirs=4 --reject "*.html*" $DIRHTTP
