
#!/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-08-30T15:41:57] Module name: VerifyODF
# # [INFO] [2013-08-30T15:41:57] Instrument: all
# # [INFO] [2013-08-30T15:41:57] Stream no.: 0001
# # [INFO] [2013-08-30T15:41:57] Module version number: 1.18
# # [INFO] [2013-08-30T15:41:57] Version of odfingest used was 3.28.3
# # [INFO] [2013-08-30T15:41:57] Module name: MakeCIF
# # [INFO] [2013-08-30T15:41:57] Instrument: all
# # [INFO] [2013-08-30T15:41:57] Stream no.: 0001
# # [INFO] [2013-08-30T15:41:57] Module version number: 1.23
# # [INFO] [2013-08-30T15:41:57] Observation start defined as >2003-06-02T10:33:47.000<
# # [INFO] [2013-08-30T15:41:57] Processing date defined as >2013-08-30T17:41:57<
# [COMMAND] [2013-08-30T15:41:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-08-30T15:41:57]
export SAS_RAND_SEED=158970601
# # [INFO] [2013-08-30T15:41:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 158970601
# [COMMAND] [2013-08-30T15:41:57]
cifbuild analysisdate=2013-08-30T17:41:57 calindexset=product/P0158970601OBX000CALIND0000.FIT fullpath=no \
observationdate=2003-06-02T10:33:47.000 withccfpath=no -w 10
# # [OUTPUT] [2013-08-30T15:42:04]
# # [INFO] [2013-08-30T15:42:04] Task Run Time cifbuild 6.50781202316284s
#
# [COMMAND] [2013-08-30T15:42:04]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-08-30T15:42:04]
export SAS_RAND_SEED=158970601
# # [INFO] [2013-08-30T15:42:04] ## DEBUG ModuleResources: SAS_RAND_SEED set: 158970601
# [COMMAND] [2013-08-30T15:42:04]
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="\"38.2105556\" \"166.1091675\"" \
set=product/P0158970601OBX000CALIND0000.FIT stringvalue="\"XMM\" \"2003-06-02T18:14:35.000\" \"Mkn421\" \"2003-06-02T10:33:47.000\" \
\"0158970601\" \"POINTED\" \"Mr Andy Pollock\"" -w 10
# # [OUTPUT] [2013-08-30T15:42:04]
# # [INFO] [2013-08-30T15:42:04] Task Run Time addattribute 0.0513350963592529s
#
# [COMMAND] [2013-08-30T15:42:04]
cp /scratch/xmm//076839/product/P0158970601OBX000CALIND0000.FIT /scratch/xmm//076839/intermediate/ccf.cif
# # [INFO] [2013-08-30T15:42:04] System RV 0
# # [INFO] [2013-08-30T15:42:04] Module name: GlobalHK
# # [INFO] [2013-08-30T15:42:04] Instrument: all
# # [INFO] [2013-08-30T15:42:04] Stream no.: 0001
# # [INFO] [2013-08-30T15:42:04] Module version number: 1.68
# [COMMAND] [2013-08-30T15:42:04]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-08-30T15:42:04]
export SAS_RAND_SEED=158970601
# # [INFO] [2013-08-30T15:42:04] ## DEBUG ModuleResources: SAS_RAND_SEED set: 158970601
# [COMMAND] [2013-08-30T15:42:04]
atthkgen atthkset=product/P0158970601OBX000ATTTSR0000.FIT timestep=1 -w 10
# # [OUTPUT] [2013-08-30T15:42:05] ** atthkgen: warning (NoAttributesAdded), The Time Correlation data set\
#     `/scratch/xmm//076839/odf/0637_0158970601_SCX00000TCS.FIT' in the current ODF is empty - no new attributes will be added to\
#     data set 
# # [INFO] [2013-08-30T15:42:05] Task Run Time atthkgen 0.734391927719116s
#
# [COMMAND] [2013-08-30T15:42:05]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-08-30T15:42:05]
export SAS_RAND_SEED=158970601
# # [INFO] [2013-08-30T15:42:05] ## DEBUG ModuleResources: SAS_RAND_SEED set: 158970601
# [COMMAND] [2013-08-30T15:42:05]
tabgtigen expression="!isNull(DAHFPNT) && DAHFPNT < 3.0/60.0" gtiset=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
postfraction=0 prefraction=0 table=product/P0158970601OBX000ATTTSR0000.FIT:ATTHK -w 10
# # [OUTPUT] [2013-08-30T15:42:05]
# # [INFO] [2013-08-30T15:42:05] Task Run Time tabgtigen 0.0618939399719238s
#
# # [INFO] [2013-08-30T15:42:05] Module name: StampKeywords
# # [INFO] [2013-08-30T15:42:05] Instrument: all
# # [INFO] [2013-08-30T15:42:05] Stream no.: 0001
# # [INFO] [2013-08-30T15:42:05] Module version number: 2.07
# # [INFO] [2013-08-30T15:42:05] Getting ODS version from file /scratch/xmm//076839/odf/0637_0158970601_SCX00000TCS.FIT
# [COMMAND] [2013-08-30T15:42:05]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-08-30T15:42:05]
export SAS_RAND_SEED=158970601
# # [INFO] [2013-08-30T15:42:05] ## DEBUG ModuleResources: SAS_RAND_SEED set: 158970601
# [COMMAND] [2013-08-30T15:42:05]
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/P0158970601OBX000CALIND0000.FIT stringvalue="\"076839\" \
\"0637\" \"2013-08-30T17:41:57\" \"1\" \"12.09_20130826_1200\" \"Multiple\" \"14.0.0\" \"XMM-Newton/SOC\" \"001\" \"CALIBRATION \
INDEX FILE\"" -w 10
# # [OUTPUT] [2013-08-30T15:42:05]
# # [INFO] [2013-08-30T15:42:05] Task Run Time addattribute 0.0528609752655029s
#
# [COMMAND] [2013-08-30T15:42:05]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2013-08-30T15:42:05]
export SAS_RAND_SEED=158970601
# # [INFO] [2013-08-30T15:42:05] ## DEBUG ModuleResources: SAS_RAND_SEED set: 158970601
# [COMMAND] [2013-08-30T15:42:05]
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/P0158970601OBX000ATTTSR0000.FIT stringvalue="\"076839\" \
\"0637\" \"2013-08-30T17:41:57\" \"1\" \"12.09_20130826_1200\" \"Multiple\" \"14.0.0\" \"XMM-Newton/SOC\" \"001\" \"ATTITUDE TIME \
SERIES\"" -w 10
# # [OUTPUT] [2013-08-30T15:42:05]
# # [INFO] [2013-08-30T15:42:05] Task Run Time addattribute 0.0938050746917725s
#
# [COMMAND] [2013-08-30T15:42:05]
gzip --rsyncable -f intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits
# # [INFO] [2013-08-30T15:42:05] System RV 0
