Blob Blame Raw
#!/bin/sh

set -e
export XZ_OPT=-9

# 4204 series
mkdir -p astrometry-data-4204
cd astrometry-data-4204
wget -c http://data.astrometry.net/4200/LICENSE
for i in `seq -w 0 9` ; do
	wget -c http://data.astrometry.net/4200/index-4204-0${i}.fits
done
for i in `seq -w 10 47` ; do
        wget -c http://data.astrometry.net/4200/index-4204-${i}.fits
done
cd ..
#tar -cJf astrometry-data-4204.tar.xz astrometry-data-4204

# 4205 series
mkdir -p astrometry-data-4205
cd astrometry-data-4205
wget -c http://data.astrometry.net/4200/LICENSE
for i in `seq -w 0 9` ; do
        wget -c http://data.astrometry.net/4200/index-4205-0${i}.fits
done
for i in `seq -w 10 11` ; do
        wget -c http://data.astrometry.net/4200/index-4205-${i}.fits
done
cd ..
#tar -cJf astrometry-data-4205.tar.xz astrometry-data-4205

# 4206 series
mkdir -p astrometry-data-4206
cd astrometry-data-4206
wget -c http://data.astrometry.net/4200/LICENSE
for i in `seq -w 0 9` ; do
        wget -c http://data.astrometry.net/4200/index-4206-0${i}.fits
done
for i in `seq -w 10 11` ; do
        wget -c http://data.astrometry.net/4200/index-4206-${i}.fits
done
cd ..
#tar -cJf astrometry-data-4206.tar.xz astrometry-data-4206

# 4207 series
mkdir -p astrometry-data-4207
cd astrometry-data-4207
wget -c http://data.astrometry.net/4200/LICENSE
for i in `seq -w 0 9` ; do
        wget -c http://data.astrometry.net/4200/index-4207-0${i}.fits
done
for i in `seq -w 10 11` ; do
        wget -c http://data.astrometry.net/4200/index-4207-${i}.fits
done
cd ..
#tar -cJf astrometry-data-4207.tar.xz astrometry-data-4207

# 4208 - 4219 series in data subpackage
mkdir -p astrometry-data-4208-4219
cd astrometry-data-4208-4219
wget -c http://data.astrometry.net/4200/LICENSE
for i in `seq -w 8 9` ; do
        wget -c http://data.astrometry.net/4200/index-420${i}.fits
done
for i in `seq -w 10 19` ; do
        wget -c http://data.astrometry.net/4200/index-42${i}.fits
done
cd ..
tar -cJf astrometry-data-4208-4219.tar.xz astrometry-data-4208-4219

#Clean up
rm -rf astrometry-data-4204
rm -rf astrometry-data-4205
rm -rf astrometry-data-4206
rm -rf astrometry-data-4207
rm -rf astrometry-data-4208-4219