#!/bin/bash

set -e
set -x


dir=/mnt/disk-1/srv/digital-elevation-model/austria-dem-10m

input=../dhm_at_lamb_10m_2018.tif
output=dem-10m-rg.tif

python ../copernicus-dem-30m/encode_heightmap.py -s $input -o $output

gdal2tiles.py --resume --processes=4 --zoom=7-16 --tilesize=128 $dir/$output $dir/tiles-rg

