#!/bin/bash
# usage:
#   map2mcf < map.map > map.mcf
#
# convert Ozi MAP calibration to u-center MCF calibration
# http://www.u-blox.de/products/u_center.html

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

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