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 (ftp://nxsa.esac.esa.int/pub/cfs_obslog/xsaobslog.txt). |
# xsaobslog.txt (ftp://nxsa.esac.esa.int/pub/cfs_obslog/xsaobslog.txt). |
20 |
# |
# |
21 |
# $Id: mlovccf,v 1.6 2015/03/12 16:02:52 ccflib Exp $ |
# $Id: mlovccf,v 1.7 2015/08/27 16:47:16 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 |
248 |
fi=$((10#$first_issue)) |
fi=$((10#$first_issue)) |
249 |
|
|
250 |
sequential_number_of_issues_for_this_class=$((li - fi + 1)) |
sequential_number_of_issues_for_this_class=$((li - fi + 1)) |
251 |
if [ "${real_number_of_issues_for_this_class}" -lt "${sequential_number_of_issues_for_this_class}" ] ; then |
|
252 |
asterisk="(*)" |
asterisk=" " |
253 |
else |
[ "${real_number_of_issues_for_this_class}" -lt "${sequential_number_of_issues_for_this_class}" ] && asterisk="(*)" |
254 |
asterisk=" " |
|
|
fi |
|
255 |
total_number_of_ccfs=$((real_number_of_issues_for_this_class + total_number_of_ccfs)) |
total_number_of_ccfs=$((real_number_of_issues_for_this_class + total_number_of_ccfs)) |
256 |
|
|
257 |
rn=$real_number_of_issues_for_this_class |
rn=$real_number_of_issues_for_this_class |
258 |
|
|
259 |
if [ "${first_issue}" != "${last_issue}" ] ; then |
if [ "${first_issue}" != "${last_issue}" ] ; then |
260 |
printf "| %-30s | %4s-%4s%3s| %4s |\n" ${ccf_class} ${first_issue} ${last_issue} ${asterisk} ${rn} >> ${all_ccfs_table} |
if [ "$asterisk" = "(*)" ] ; then |
261 |
else |
printf "| %-30s | %4s-%4s(*)| %4s |\n" ${ccf_class} ${first_issue} ${last_issue} ${rn} >> ${all_ccfs_table} |
262 |
printf "| %-30s | %4s | %4s |\n" ${ccf_class} ${first_issue} ${rn} >> ${all_ccfs_table} |
else |
263 |
fi |
printf "| %-30s | %4s-%4s | %4s |\n" ${ccf_class} ${first_issue} ${last_issue} ${rn} >> ${all_ccfs_table} |
264 |
|
fi |
265 |
|
else |
266 |
|
printf "| %-30s | %4s | %4s |\n" ${ccf_class} ${first_issue} ${rn} >> ${all_ccfs_table} |
267 |
|
fi |
268 |
|
|
269 |
|
|
270 |
echo "done" |
echo "done" |
271 |
done < ${ccf_classes} |
done < ${ccf_classes} |