18 |
# This is obtained from the report of all observations that the XSA makes to CDS, |
# This is obtained from the report of all observations that the XSA makes to CDS, |
19 |
# xsaobslog.txt (http://nxsa.esac.esa.int/ftp_public/cfs_obslog/xsaobslog.txt). |
# xsaobslog.txt (http://nxsa.esac.esa.int/ftp_public/cfs_obslog/xsaobslog.txt). |
20 |
# |
# |
21 |
# $Id: mlovccf,v 1.9 2016/03/18 09:18:29 ccflib Exp $ |
# $Id: mlovccf,v 1.10 2016/03/21 15:36:25 ccflib Exp $ |
22 |
|
|
23 |
# Next two lines allow to submit this script to the grid |
# Next two lines allow to submit this script to the grid |
24 |
# request Bourne shell as shell for job |
# request Bourne shell as shell for job |
48 |
|
|
49 |
# Get the list latest list of ODFs available from nXSA server. |
# Get the list latest list of ODFs available from nXSA server. |
50 |
|
|
51 |
wget -q ${XSAOBSURL} |
wget -q ${XSAOBSURL} -O ${VALID_CCF}/xsaobslog.txt |
52 |
|
|
53 |
# Rename xsaobslog.txt to xsaobslog_${now}.txt just to have a reference |
# Rename xsaobslog.txt to xsaobslog_${now}.txt just to have a reference |
54 |
# of which list of ODFs was used to compute the list of valid CCFs. |
# of which list of ODFs was used to compute the list of valid CCFs. |
100 |
rows=- STDOUT |
rows=- STDOUT |
101 |
} |
} |
102 |
|
|
103 |
|
# Fill in the valid_constituents directory with the Valid CCF set |
104 |
|
|
105 |
|
fillvalidccfdir() |
106 |
|
{ |
107 |
|
|
108 |
|
[ -z "$1" ] && return |
109 |
|
|
110 |
|
validccflist=$1 |
111 |
|
|
112 |
|
if [ ! -f "${VALID_CCF}/${validccflist}" ] ; then |
113 |
|
echo "Error: ${validccflist} not found - Abort!" |
114 |
|
exit |
115 |
|
fi |
116 |
|
|
117 |
|
VALIDCONSTITUENTSDIR="/home/ccflib/ftp-area/valid_constituents/" |
118 |
|
rm -rf ${VALIDCONSTITUENTSDIR}/* |
119 |
|
|
120 |
|
CONSTITUENTSDIR="/home/ccflib/ftp-area/constituents" |
121 |
|
|
122 |
|
while read ccf |
123 |
|
do |
124 |
|
cp -a ${CONSTITUENTSDIR}/${ccf} ${VALIDCONSTITUENTSDIR}/ |
125 |
|
done < ${validccflist} |
126 |
|
|
127 |
|
} |
128 |
|
|
129 |
|
|
130 |
# Get the list of all ODFs |
# Get the list of all ODFs |
131 |
|
|
132 |
xsaobslogsize="0" |
xsaobslogsize="0" |
323 |
echo "Total number of valid CCFs required : ${total_number_of_ccfs}" >> ${all_ccfs_table} |
echo "Total number of valid CCFs required : ${total_number_of_ccfs}" >> ${all_ccfs_table} |
324 |
rm ${VALID_CCF}/ccf_classes.txt |
rm ${VALID_CCF}/ccf_classes.txt |
325 |
rm ${VALID_CCF}/ccf_issues_for*.txt |
rm ${VALID_CCF}/ccf_issues_for*.txt |
326 |
|
|
327 |
|
# Fill in the Valid CCF Set dir with the proper CCFs |
328 |
|
|
329 |
|
fillvalidccfdir all_ccfs_${now}.txt |