#!/bin/sh
# get_new_tles.sh

# Get the file from mission ops and copy it to the official directory
TLE_DIR=/aim/sds/common/input_data/tle
scp -p /home/aimsds/tle_incoming/aim_tle.save aimpro@aimcips:${TLE_DIR}/

# Strip out comments, remove the duplicates, and reverse tle order
# Original is most recent to oldest, output is reversed 
/aim/sds/common/scripts/convert_incoming_cips_tle.py $TLE_DIR > $TLE_DIR/00031304.tle

exit $?

