#!/bin/csh

set LSK  = "/ftp/pub/naif/MER/kernels/lsk/naif0007.tls"
set INPUT = "147874000"

#
# MER-1
#
set SCLK = "/ftp/pub/naif/MER/kernels/sclk/MER_253_SCLKSCET.00004.tsc"

echo " "
echo "MER-1 $INPUT with pre-landing SCLK file ($SCLK:t)"

chronos -setup $SCLK $LSK \
        -sc -253 \
        -from sclk \
        -to et \
        -totype seconds \
        -time $INPUT


set SCLK = "/ftp/pub/naif/MER/kernels/sclk/MER_253_SCLKSCET.00009.tsc"

echo " "
echo "MER-1 $INPUT with latest SCLK file ($SCLK:t)"

chronos -setup $SCLK $LSK \
        -sc -253 \
        -from sclk \
        -to et \
        -totype seconds \
        -time $INPUT

#
# MER-2
#
set SCLK = "/ftp/pub/naif/MER/kernels/sclk/MER_254_SCLKSCET.00005.tsc"

echo " "
echo "MER-2 $INPUT with pre-landing SCLK file ($SCLK:t)"

chronos -setup $SCLK $LSK \
        -sc -254 \
        -from sclk \
        -to et \
        -totype seconds \
        -time $INPUT

set SCLK = "/ftp/pub/naif/MER/kernels/sclk/MER_254_SCLKSCET.00012.tsc"

echo " "
echo "MER-2 $INPUT with latest SCLK file ($SCLK:t)"

chronos -setup $SCLK $LSK \
        -sc -254 \
        -from sclk \
        -to et \
        -totype seconds \
        -time $INPUT


echo " "
exit
