#!/bin/bash

. /DEV/PROD/apps/soundings/a4/scripts/atovs_include



# ========================================================================
#
# Run the 24 hour EDGEIS capture


#cd $ANCHOR/apps/soundings/nprovs/source/goes/capture
cd /h/mpettey


ln -s $ANCHOR/apps/soundings/nprovs/files/daily_input/goes.gddf                 in.file
ln -s $ANCHOR/apps/soundings/nprovs/source/goes/capture/goes24.edge             out.file
ln -s $ANCHOR/apps/soundings/nprovs/source/goes/capture/gddf_capture.xml        parm.file
ln -s $ANCHOR/apps/soundings/nprovs/source/goes/capture/edgeparm_goes_gddf.txt  fileparm.file

$ANCHOR/apps/soundings/nprovs/source/goes/capture/GDDF_to_Edgeis.x -1 "GOES GRET"

\rm in.file
\rm out.file
\rm parm.file
\rm fileparm.file




# Transfer the edgeis files to nukajda1

sftp nukajda1.nesdis.noaa.gov << EOD
cd /data/OPDB/Edgeis/goes
put $ANCHOR/apps/soundings/nprovs/source/goes/capture/goes24.edge  goes.edge
quit
EOD


rm $ANCHOR/apps/soundings/nprovs/source/goes/capture/goes24.edge

# end of file
