#!/bin/sh
#
# NASA/IPAC Infrared Science Archive
# Planck Data Release 2: All-Sky Maps
#
# Edit this script to select which files to download
#

#-----------------------------------
# Planck Single Frequency Foreground-Subtracted CMB Maps
#-----------------------------------
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/tophfi.fits

# Full mission maps

# Full
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-ds1-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-ds2-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-ds1-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-ds2-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-ds1-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-ds2-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds1-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds1-leakage-global_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds2-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds2-leakage-global_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-dustleak-ground_2048_R2.00_full.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-leakage-global_2048_R2.00_full.fits

# Single-year maps

# Year 1
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-ds1-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-ds2-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-ds1-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-ds2-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-ds1-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-ds2-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds1-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds2-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-dustleak-ground_2048_R2.00_year-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-leakage-global_2048_R2.00_year-1.fits

# Year 2
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-ds1-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-ds2-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-ds1-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-ds2-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-ds1-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-ds2-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds1-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds2-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-dustleak-ground_2048_R2.00_year-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-leakage-global_2048_R2.00_year-2.fits

# Half-mission maps

# First half
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-ds1-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-ds2-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-ds1-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-ds2-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-ds1-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-ds2-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds1-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds2-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-dustleak-ground_2048_R2.00_halfmission-1.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-leakage-global_2048_R2.00_halfmission-1.fits

# Second half
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-ds1-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-ds2-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_100-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-ds1-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-ds2-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_143-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-ds1-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-ds2-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_217-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds1-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-ds2-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-dustleak-ground_2048_R2.00_halfmission-2.fits
curl -f -O http://irsa.ipac.caltech.edu/data/Planck/release_2/ancillary-data/correction-maps/HFI_CorrMap_353-leakage-global_2048_R2.00_halfmission-2.fits

# End of script
