spacedb/data/download_damit.sh
2025-12-08 15:12:52 -05:00

21 lines
661 B
Bash
Executable File

#!/bin/bash -e
pushd $(dirname $0) &>/dev/null
mkdir -p rawdata/shapes
rm -rf rawdata/shapes/*
cd rawdata/shapes
# Download complete flush from
# http://astro.troja.mff.cuni.cz/projects/asteroids3D/web.php?page=db_export
#curl -o damit.tar.gz 'https://astro.troja.mff.cuni.cz/projects/damit/exports/complete/damit-20210401T000301Z.tar.gz'
curl -o damit.tar.gz 'https://www.ianww.com/damit_old.tar.gz'
# Decompress
tar xzvf damit.tar.gz
# Put everything into one directory instead of breaking it up every thousand
# Use find instead of mv because on mac mv limits the number of arguments.
find archive/ -name '*.*' -exec mv {} archive/. \;
popd &>/dev/null