
#!/bin/sh
if [ ! "$SAS_ODFDIR" ]; then
echo ""
echo "Please set the SAS_ODFDIR environment variable to point at the directory"
echo "containing the ODF files for this observation."
echo ""
exit 1
fi
# # [INFO] [2013-09-02T08:52:00] Module name: VerifyODF
# # [INFO] [2013-09-02T08:52:00] Instrument: all
# # [INFO] [2013-09-02T08:52:00] Stream no.: 0001
# # [INFO] [2013-09-02T08:52:00] Module version number: 1.18
# # [INFO] [2013-09-02T08:52:00] Version of odfingest used was 3.28.3
# # [INFO] [2013-09-02T08:52:00] Module name: MakeCIF
# # [INFO] [2013-09-02T08:52:00] Instrument: all
# # [INFO] [2013-09-02T08:52:00] Stream no.: 0001
# # [INFO] [2013-09-02T08:52:00] Module version number: 1.23
# # [INFO] [2013-09-02T08:52:00] Observation start defined as >2001-07-26T21:07:17.000<
# # [INFO] [2013-09-02T08:52:00] Processing date defined as >2013-09-02T10:51:59<
# [COMMAND] [2013-09-02T08:52:00]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-09-02T08:52:00]
export SAS_RAND_SEED=108061601
# # [INFO] [2013-09-02T08:52:00] ## DEBUG ModuleResources: SAS_RAND_SEED set: 108061601
# [COMMAND] [2013-09-02T08:52:00]
cifbuild analysisdate=2013-09-02T10:51:59 calindexset=product/P0108061601OBX000CALIND0000.FIT fullpath=no \
observationdate=2001-07-26T21:07:17.000 withccfpath=no -w 10
# # [OUTPUT] [2013-09-02T08:52:06]
# # [INFO] [2013-09-02T08:52:06] Task Run Time cifbuild 6.81571698188782s
#
# [COMMAND] [2013-09-02T08:52:06]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-09-02T08:52:06]
export SAS_RAND_SEED=108061601
# # [INFO] [2013-09-02T08:52:06] ## DEBUG ModuleResources: SAS_RAND_SEED set: 108061601
# [COMMAND] [2013-09-02T08:52:06]
addattribute attributecomment="\"Telescope (mission) name\" \"Date observations ended\" \"Name of observed object\" \"DEC of \
instrument pointing\" \"Date observations were made\" \"Observation identifier\" \"Observation mode (pointing or slew)\" \"Name of \
PI\" \"RA of instrument pointing (degrees)\"" attributename="TELESCOP DATE-END OBJECT DEC_PNT DATE-OBS OBS_ID OBS_MODE OBSERVER \
RA_PNT" attributetype="string string string real string string string string real" realvalue="-27.8083333 53.1166665" \
set=product/P0108061601OBX000CALIND0000.FIT stringvalue="\"XMM\" \"2001-07-27T07:30:13.000\" \"AXAF Ultra Deep F\" \
\"2001-07-26T21:07:17.000\" \"0108061601\" \"POINTED\" \"Dr Bergeron Jacqueline\"" -w 10
# # [OUTPUT] [2013-09-02T08:52:07]
# # [INFO] [2013-09-02T08:52:07] Task Run Time addattribute 0.0823020935058594s
#
# [COMMAND] [2013-09-02T08:52:07]
cp /scratch/xmm//076871/product/P0108061601OBX000CALIND0000.FIT /scratch/xmm//076871/intermediate/ccf.cif
# # [INFO] [2013-09-02T08:52:07] System RV 0
# # [INFO] [2013-09-02T08:52:07] Module name: GlobalHK
# # [INFO] [2013-09-02T08:52:07] Instrument: all
# # [INFO] [2013-09-02T08:52:07] Stream no.: 0001
# # [INFO] [2013-09-02T08:52:07] Module version number: 1.68
# [COMMAND] [2013-09-02T08:52:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-09-02T08:52:07]
export SAS_RAND_SEED=108061601
# # [INFO] [2013-09-02T08:52:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 108061601
# [COMMAND] [2013-09-02T08:52:07]
atthkgen atthkset=product/P0108061601OBX000ATTTSR0000.FIT timestep=1 -w 10
# # [OUTPUT] [2013-09-02T08:52:07] ** atthkgen: warning (NoAttitude), The attitude was requested for time 112568901.184 which is\
#     more than 20 s outside the period for which the attitude is known (closest time is -1700.99999999 s away).
# ** atthkgen: warning (NoAttitude), The attitude was requested for time 112568901.184 which is more than 20 s outside the period\
#     for which the attitude is known (closest time is -1700.99999999 s away).
# ** atthkgen: warning (NoAttitude), The attitude was requested for time 112568902.184 which is more than 20 s outside the period\
#     for which the attitude is known (closest time is -1699.99999999 s away).
# ** atthkgen: warning (NoAttitude), The attitude was requested for time 112568902.184 which is more than 20 s outside the period\
#     for which the attitude is known (closest time is -1699.99999999 s away).
# ** atthkgen: warning (NoAttitude), The attitude was requested for time 112568903.184 which is more than 20 s outside the period\
#     for which the attitude is known (closest time is -1698.99999999 s away).
# ** atthkgen: warning (NoAttitude), The attitude was requested for time 112568903.184 which is more than 20 s outside the period\
#     for which the attitude is known (closest time is -1698.99999999 s away).
# ** atthkgen: warning (NoAttitude), The attitude was requested for time 112568904.184 which is more than 20 s outside the period\
#     for which the attitude is known (closest time is -1697.99999999 s away).
# ** atthkgen: warning (NoAttitude), The attitude was requested for time 112568904.184 which is more than 20 s outside the period\
#     for which the attitude is known (closest time is -1697.99999999 s away).
# ** atthkgen: warning (NoAttitude), The attitude was requested for time 112568905.184 which is more than 20 s outside the period\
#     for which the attitude is known (closest time is -1696.99999999 s away).
# ** atthkgen: warning (NoAttitude), The attitude was requested for time 112568905.184 which is more than 20 s outside the period\
#     for which the attitude is known (closest time is -1696.99999999 s away).
# ** : warning (MissingOrbitData), Begin of orbit data 2001-07-26T21:34:24.701 in\
#     `/scratch/xmm//076871/odf/0299_0108061601_SCX00000ROS.ASC' lies after start of observation at 2001-07-26T21:07:17.000
# ** atthkgen: warning (NoAttributesAdded), The Time Correlation data set `/scratch/xmm//076871/odf/0299_0108061601_SCX00000TCS.FIT'\
#     in the current ODF is empty - no new attributes will be added to data set
# ** atthkgen: warning (SummaryOfWarnings), 
# warning NoAttitude silently occurred 3358 times 
# # [INFO] [2013-09-02T08:52:07] Task Run Time atthkgen 0.625342130661011s
#
# [COMMAND] [2013-09-02T08:52:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-09-02T08:52:07]
export SAS_RAND_SEED=108061601
# # [INFO] [2013-09-02T08:52:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 108061601
# [COMMAND] [2013-09-02T08:52:07]
tabgtigen expression="!isNull(DAHFPNT) && DAHFPNT < 3.0/60.0" gtiset=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
postfraction=0 prefraction=0 table=product/P0108061601OBX000ATTTSR0000.FIT:ATTHK -w 10
# # [OUTPUT] [2013-09-02T08:52:07]
# # [INFO] [2013-09-02T08:52:07] Task Run Time tabgtigen 0.0829129219055176s
#
# # [INFO] [2013-09-02T08:52:07] Module name: StampKeywords
# # [INFO] [2013-09-02T08:52:07] Instrument: all
# # [INFO] [2013-09-02T08:52:07] Stream no.: 0001
# # [INFO] [2013-09-02T08:52:07] Module version number: 2.07
# # [INFO] [2013-09-02T08:52:07] Getting ODS version from file /scratch/xmm//076871/odf/0299_0108061601_SCX00000TCS.FIT
# [COMMAND] [2013-09-02T08:52:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-09-02T08:52:07]
export SAS_RAND_SEED=108061601
# # [INFO] [2013-09-02T08:52:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 108061601
# [COMMAND] [2013-09-02T08:52:07]
addattribute attributecomment="\"Pipeline sequence\" \"Satellite Revolution Number\" \"Processing date\" \"Processing revision\" \
\"PPS configuration\" \"SAS version used in pipeline processing\" \"ODS version\" \"Origin of FITS file\" \"ODF_VERSION\" \"Contents \
of file\"" attributename="SEQ_ID REVOLUT PROCDATE PROCREV PPSVERS SASVERS ODSVER ORIGIN ODFVER CONTENT" attributetype="string string \
string string string string string string string string" set=product/P0108061601OBX000CALIND0000.FIT stringvalue="\"076871\" \
\"0299\" \"2013-09-02T10:51:59\" \"1\" \"12.09_20130826_1200\" \"Multiple\" \"12.0.0\" \"XMM-Newton/SOC\" \"000\" \"CALIBRATION \
INDEX FILE\"" -w 10
# # [OUTPUT] [2013-09-02T08:52:07]
# # [INFO] [2013-09-02T08:52:07] Task Run Time addattribute 0.0795929431915283s
#
# [COMMAND] [2013-09-02T08:52:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-09-02T08:52:07]
export SAS_RAND_SEED=108061601
# # [INFO] [2013-09-02T08:52:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 108061601
# [COMMAND] [2013-09-02T08:52:07]
addattribute attributecomment="\"Pipeline sequence\" \"Satellite Revolution Number\" \"Processing date\" \"Processing revision\" \
\"PPS configuration\" \"SAS version used in pipeline processing\" \"ODS version\" \"Origin of FITS file\" \"ODF_VERSION\" \"Contents \
of file\"" attributename="SEQ_ID REVOLUT PROCDATE PROCREV PPSVERS SASVERS ODSVER ORIGIN ODFVER CONTENT" attributetype="string string \
string string string string string string string string" set=product/P0108061601OBX000ATTTSR0000.FIT stringvalue="\"076871\" \
\"0299\" \"2013-09-02T10:51:59\" \"1\" \"12.09_20130826_1200\" \"Multiple\" \"12.0.0\" \"XMM-Newton/SOC\" \"000\" \"ATTITUDE TIME \
SERIES\"" -w 10
# # [OUTPUT] [2013-09-02T08:52:08]
# # [INFO] [2013-09-02T08:52:08] Task Run Time addattribute 0.110754013061523s
#
# [COMMAND] [2013-09-02T08:52:08]
gzip --rsyncable -f intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits
# # [INFO] [2013-09-02T08:52:08] System RV 0
