# ********************************************************

echo " "
echo "==================================================================="
echo " "
date
echo "NUCAPS File Processing"
echo " "


LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/data/starfs1/libs/netcdf-4.2/lib:/data/starfs1/libs/hdf5-1.8.7/lib

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}



# Run the script that transfers the NUCAPS files from the STAR FTP

perl /data/smcd/nprovs/scripts/data_input/ftp_nucaps.perl 1



# Run the script that copies all of the NUCAPS granules into a single day file

perl /data/smcd/nprovs/scripts/data_input/process_nucaps_granules.perl



# A copy of the processing script needs to be run to create a swapped-byte
# version of the NUCAPS daily file. This file will be copied to the anonymous 
# FTP directory for transfer to North/South. Once North/South shuts down,
# this step and the copy to the FTP can be deleted.

#perl /data/smcd/nprovs/scripts/data_input/process_nucaps_swapped.perl

#gzip /data/smcd/nprovs/data/matchup/DailyFiles_incoming/nucaps_swapped.nddf

#cp /data/smcd/nprovs/data/matchup/DailyFiles_incoming/nucaps_swapped.nddf.gz /net/www/aftp/pub/smcd/opdb/edge/nucaps/nucaps.nddf.gz

#rm /data/smcd/nprovs/data/matchup/DailyFiles_incoming/nucaps_swapped.nddf.gz




# Run the script that creates an EDGEIS file from the NUCAPS data

#cd /data/smcd/nprovs/source/data_transfer/nucaps

#ln -s /data/smcd/nprovs/data/matchup/DailyFiles_incoming/nucaps.nddf                in.file
#ln -s /data/smcd/nprovs/source/data_transfer/nucaps/nucaps.edge                     out.file
#ln -s /data/smcd/nprovs/source/data_transfer/nucaps/capture/iasi.xml                parm.file
#ln -s /data/smcd/nprovs/source/data_transfer/nucaps/capture/edgeparm_iasi_iddf.txt  fileparm.file

#/data/smcd/nprovs/source/data_transfer/nucaps/capture/IDDF_to_Edgeis.x "NUCAPS"


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


# end of file
