16 |
# date. This is obtained from the report of all observations that the XSA makes to CDS, |
# date. This is obtained from the report of all observations that the XSA makes to CDS, |
17 |
# xsaobslog.txt (ftp://nxsa.esac.esa.int/pub/cfs_obslog/xsaobslog.txt). |
# xsaobslog.txt (ftp://nxsa.esac.esa.int/pub/cfs_obslog/xsaobslog.txt). |
18 |
# |
# |
19 |
# $Id: mlovccf,v 1.3 2015/03/10 16:51:28 ccflib Exp $ |
# $Id: mlovccf,v 1.4 2015/03/10 17:00:47 ccflib Exp $ |
20 |
|
|
21 |
# Next two lines allow to submit this script to the grid |
# Next two lines allow to submit this script to the grid |
22 |
# request Bourne shell as shell for job |
# request Bourne shell as shell for job |
23 |
#$ -S /bin/sh |
#$ -S /bin/sh |
24 |
|
|
25 |
|
|
26 |
host=`hostname | cut -d. -f1` |
host=`hostname | cut -d. -f1` |
27 |
|
|
28 |
now=`date +'%Y-%M-%dT%H:%M:%S'` |
now=`date +'%Y%m%d_%H%M'` |
29 |
|
|
30 |
# Function find_latest_mif to get the latest XMM_CALINDEX from given directory |
# Function find_latest_mif to get the latest XMM_CALINDEX from given directory |
31 |
|
|
84 |
|
|
85 |
case "$host" in |
case "$host" in |
86 |
xvsoc01|xmm) |
xvsoc01|xmm) |
87 |
SAS_CCFPATH="/data/xmm/ccflib/ftp-area/constituents" |
export SAS_CCFPATH="/data/xmm/ccflib/ftp-area/constituents" |
88 |
SAS_DIR=/data/xmm/ccflib/sas |
export SAS_DIR=/data/xmm/ccflib/sas |
89 |
SAS_PATH=$SAS_DIR |
export SAS_PATH=$SAS_DIR |
90 |
source $SAS_DIR/sas-setup.sh |
source $SAS_DIR/sas-setup.sh |
91 |
;; |
;; |
92 |
sasbld01|sasbld02) |
sasbld01|sasbld02) |
93 |
SAS_CCFPATH="/home/ccflib/ftp-area/constituents" |
export SAS_CCFPATH="/home/ccflib/ftp-area/constituents" |
94 |
/sas/bin/confsas |
/sas/bin/confsas |
95 |
export HEADAS=/sasbuild/local/${host}/headas/architecture |
export HEADAS=/sasbuild/local/${host}/headas/architecture |
96 |
. $HEADAS/headas-init.sh |
. $HEADAS/headas-init.sh |
97 |
source $HOME/setsas.sh 1> /dev/null |
source $HOME/setsas.sh 1> /dev/null |
98 |
export SAS_VERBOSITY=0 |
export SAS_VERBOSITY=0 |
99 |
;; |
;; |
100 |
|
scigrid6|cn-*) |
101 |
|
export SAS_CCFPATH="/home/ccflib/ftp-area/constituents" |
102 |
|
/sas/bin/confsas |
103 |
|
export HEADAS=/sasbuild/local/sasbld02/headas/architecture |
104 |
|
. $HEADAS/headas-init.sh |
105 |
|
fversion |
106 |
|
source $HOME/setsas.sh 1> /dev/null |
107 |
|
export SAS_VERBOSITY=0 |
108 |
|
;; |
109 |
|
*) echo "Error: Do not know how to do it in host $host" ; exit ;; |
110 |
esac |
esac |
111 |
|
|
112 |
# Finds the latest MIF issue |
# Finds the latest MIF issue |