#!/bin/bash
# usage:
#   map-tif2png
#
# all files from current directory:
# convert all TIF maps to PNG format
# and adjust all KAL calibration files

hash tif2png1

find . -maxdepth 1 -name '*.tif' -print0 | xargs -I '{}' -0 tif2png1 '{}'
find . -maxdepth 1 -name '*.kal' -print0 | xargs -I '{}' -0 sed -i s/.tif/.png/g '{}'
