#! /bin/bash

# Check if running inside the pixi environment
which darts >/dev/null 2>&1
if [ $? -ne 0 ]; then
    echo "This script must be run inside the pixi environment."
    exit 1
fi

# pixi shell
darts extract-darts-v2 --grid hex --level 3
darts extract-darts-v2 --grid hex --level 4
darts extract-darts-v2 --grid hex --level 5
darts extract-darts-v2 --grid hex --level 6
darts extract-darts-v2 --grid healpix --level 6
darts extract-darts-v2 --grid healpix --level 7
darts extract-darts-v2 --grid healpix --level 8
darts extract-darts-v2 --grid healpix --level 9
darts extract-darts-v2 --grid healpix --level 10

darts extract-darts-v2-aggregated --grid hex --level 3
darts extract-darts-v2-aggregated --grid hex --level 4
darts extract-darts-v2-aggregated --grid hex --level 5
darts extract-darts-v2-aggregated --grid hex --level 6
darts extract-darts-v2-aggregated --grid healpix --level 6
darts extract-darts-v2-aggregated --grid healpix --level 7
darts extract-darts-v2-aggregated --grid healpix --level 8
darts extract-darts-v2-aggregated --grid healpix --level 9
darts extract-darts-v2-aggregated --grid healpix --level 10
exit 0
darts extract-darts-v1 --grid hex --level 3
darts extract-darts-v1 --grid hex --level 4
darts extract-darts-v1 --grid hex --level 5
darts extract-darts-v1 --grid hex --level 6
darts extract-darts-v1 --grid healpix --level 6
darts extract-darts-v1 --grid healpix --level 7
darts extract-darts-v1 --grid healpix --level 8
darts extract-darts-v1 --grid healpix --level 9
darts extract-darts-v1 --grid healpix --level 10


darts extract-darts-v1-aggregated --grid hex --level 3
darts extract-darts-v1-aggregated --grid hex --level 4
darts extract-darts-v1-aggregated --grid hex --level 5
darts extract-darts-v1-aggregated --grid hex --level 6
darts extract-darts-v1-aggregated --grid healpix --level 6
darts extract-darts-v1-aggregated --grid healpix --level 7
darts extract-darts-v1-aggregated --grid healpix --level 8
darts extract-darts-v1-aggregated --grid healpix --level 9
darts extract-darts-v1-aggregated --grid healpix --level 10

darts extract-darts-mllabels --grid hex --level 3
darts extract-darts-mllabels --grid hex --level 4
darts extract-darts-mllabels --grid hex --level 5
darts extract-darts-mllabels --grid hex --level 6
darts extract-darts-mllabels --grid healpix --level 6
darts extract-darts-mllabels --grid healpix --level 7
darts extract-darts-mllabels --grid healpix --level 8
darts extract-darts-mllabels --grid healpix --level 9
darts extract-darts-mllabels --grid healpix --level 10