#!/bin/bash
# usage:
#   kal2mcf < map.kal > map.mcf
#
# convert Glopus KAL calibration to u-center MCF calibration
# http://www.u-blox.de/products/u_center.html

if [ $# -ne 0 ]; then
  echo "usage: kal2mcf < map.kal > map.mcf"
  exit
fi

echo "[REFERENCE]"
kal2asc | awk '{print FNR "=" $3 "," $4 "," $1 "," $2}'
