#!/bin/sh

# note satellites plotted first so path comes out on top!
# (should really fix levels in scripts)

TMP_DIR="/tmp"
TMP_FILE="temp_polar_both.fig"
LOCATION="$TMP_DIR/$TMP_FILE"

cat polar_coordinate_system.fig > $LOCATION

# -file sats.dump at end overrides any provided -file,
# allowing -file to be set for plot_path.

perl polar_plot_sats.pl $* -file sats.dump >> "$LOCATION"

# -nomap prevents background map from being included twice

perl polar_plot_path.pl $* -nomap  >> "$LOCATION"

exec xfig "$LOCATION" &
