
#!/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] [2024-11-30T23:47:27] Module name: VerifyODF
# # [INFO] [2024-11-30T23:47:27] Instrument: all
# # [INFO] [2024-11-30T23:47:27] Stream no.: 0001
# # [INFO] [2024-11-30T23:47:27] Module version number: 1.18
# # [INFO] [2024-11-30T23:47:27] Version of odfingest used was 3.33.1
# # [INFO] [2024-11-30T23:47:27] Module name: MakeCIF
# # [INFO] [2024-11-30T23:47:27] Instrument: all
# # [INFO] [2024-11-30T23:47:27] Stream no.: 0001
# # [INFO] [2024-11-30T23:47:27] Module version number: 1.23
# # [INFO] [2024-11-30T23:47:27] Observation start defined as >2006-06-27T20:27:54.000<
# # [INFO] [2024-11-30T23:47:27] Processing date defined as >2024-12-01T00:47:27<
# [COMMAND] [2024-11-30T23:47:27]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:47:27]
export SAS_RAND_SEED=0402250501
# # [INFO] [2024-11-30T23:47:27] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0402250501
# [COMMAND] [2024-11-30T23:47:27]
cifbuild analysisdate=2024-12-01T00:47:27 calindexset=product/P0402250501OBX000CALIND0000.FIT fullpath=no \
observationdate=2006-06-27T20:27:54.000 withccfpath=no -w 10
# # [OUTPUT] [2024-11-30T23:47:58]
# # [INFO] [2024-11-30T23:47:58] Task Run Time cifbuild 30.7077090740204s
#
# [COMMAND] [2024-11-30T23:47:58]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:47:58]
export SAS_RAND_SEED=0402250501
# # [INFO] [2024-11-30T23:47:58] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0402250501
# [COMMAND] [2024-11-30T23:47:58]
addattribute attributecomment="\"Telescope (mission) name\" \"Date observations ended\" \"Observation mode (pointing or slew)\" \
\"Name of observed object\" \"Date observations were made\" \"RA of instrument pointing (degrees)\" \"Name of PI\" \"DEC of \
instrument pointing\" \"Observation identifier\"" attributename="TELESCOP DATE-END OBS_MODE OBJECT DATE-OBS RA_PNT OBSERVER DEC_PNT \
OBS_ID" attributetype="string string string string string real string real string" realvalue="\"225.3340005\" \"42.3440000\"" \
set=product/P0402250501OBX000CALIND0000.FIT stringvalue="\"XMM\" \"2006-06-27T21:27:35.000\" \"POINTED\" \"Z7215\" \
\"2006-06-27T20:27:54.000\" \"Dr Ben Maughan\" \"0402250501\"" -w 10
# # [OUTPUT] [2024-11-30T23:47:58]
# # [INFO] [2024-11-30T23:47:58] Task Run Time addattribute 0.0374569892883301s
#
# [COMMAND] [2024-11-30T23:47:58]
cp /scratch/226103.1.all.q/xmm/ppsprod/229248/product/P0402250501OBX000CALIND0000.FIT \
/scratch/226103.1.all.q/xmm/ppsprod/229248/intermediate/ccf.cif
# # [INFO] [2024-11-30T23:47:58] System RV 0
# # [INFO] [2024-11-30T23:47:58] Module name: GlobalHK
# # [INFO] [2024-11-30T23:47:58] Instrument: all
# # [INFO] [2024-11-30T23:47:58] Stream no.: 0001
# # [INFO] [2024-11-30T23:47:58] Module version number: 1.81
# [COMMAND] [2024-11-30T23:47:58]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:47:58]
export SAS_RAND_SEED=0402250501
# # [INFO] [2024-11-30T23:47:58] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0402250501
# [COMMAND] [2024-11-30T23:47:58]
preqgti preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:47:58]
# # [INFO] [2024-11-30T23:47:58] Task Run Time preqgti 0.338572025299072s
#
# [COMMAND] [2024-11-30T23:47:58]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:47:58]
export SAS_RAND_SEED=0402250501
# # [INFO] [2024-11-30T23:47:58] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0402250501
# [COMMAND] [2024-11-30T23:47:58]
atthkgen atthkset=product/P0402250501OBX000ATTTSR0000.FIT preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
timestep=1 withpreqgti=no -w 10
# # [OUTPUT] [2024-11-30T23:47:59]
# # [INFO] [2024-11-30T23:47:59] Task Run Time atthkgen 0.184650897979736s
#
# [COMMAND] [2024-11-30T23:47:59]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:47:59]
export SAS_RAND_SEED=0402250501
# # [INFO] [2024-11-30T23:47:59] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0402250501
# [COMMAND] [2024-11-30T23:47:59]
orbit outfile=product/P0402250501OBX000ORBTSR0000.FIT timestep=1 useobsid=yes -w 10
# # [OUTPUT] [2024-11-30T23:47:59] orbit:- Output FITS Orbit timeseries: product/P0402250501OBX000ORBTSR0000.FIT
# orbit:- Binsize (timestep) of output): 1
# orbit:- Use OBSID data or whole orbit? T 
# # [INFO] [2024-11-30T23:47:59] Task Run Time orbit 0.292162179946899s
#
# [COMMAND] [2024-11-30T23:47:59]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:47:59]
export SAS_RAND_SEED=0402250501
# # [INFO] [2024-11-30T23:47:59] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0402250501
# [COMMAND] [2024-11-30T23:47:59]
radmonfix output=product/P0402250501OBX000RADMON0000.FIT radmonlist=odf/1199_0402250501_RMX00100ECX.FIT withoutputfile=yes -w 10
# # [OUTPUT] [2024-11-30T23:47:59] ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=189061730 which is\
#     outside the time correlation data abscissa range [189063370.8, 189068850.1] - result of extrapolation might be afflicted with\
#     large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=189061733.9 which is outside the time correlation\
#     data abscissa range [189063370.8, 189068850.1] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=189061737.9 which is outside the time correlation\
#     data abscissa range [189063370.8, 189068850.1] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=189061741.9 which is outside the time correlation\
#     data abscissa range [189063370.8, 189068850.1] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=189061746 which is outside the time correlation data\
#     abscissa range [189063370.8, 189068850.1] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=189061749.9 which is outside the time correlation\
#     data abscissa range [189063370.8, 189068850.1] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=189061753.9 which is outside the time correlation\
#     data abscissa range [189063370.8, 189068850.1] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=189061757.9 which is outside the time correlation\
#     data abscissa range [189063370.8, 189068850.1] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=189061762 which is outside the time correlation data\
#     abscissa range [189063370.8, 189068850.1] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=189061765.9 which is outside the time correlation\
#     data abscissa range [189063370.8, 189068850.1] - result of extrapolation might be afflicted with large numerical uncertainty.
# radmonfix:- Setting DATE-END...
# ** radmonfix: warning (SummaryOfWarnings), 
# warning Extrapolation silently occurred 376 times 
# # [INFO] [2024-11-30T23:47:59] Task Run Time radmonfix 0.173969984054565s
#
# [COMMAND] [2024-11-30T23:47:59]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/EPICModes.fits \
/scratch/226103.1.all.q/xmm/ppsprod/229248/intermediate/GlobalHK-all-1-Observing_modes_Pileup_and_OoT_data-X00000000000000.fits
# # [INFO] [2024-11-30T23:47:59] System RV 0
# # [INFO] [2024-11-30T23:47:59] Copied EPIC Observing modes table, Pileup data and OoT data table in place
# [COMMAND] [2024-11-30T23:47:59]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfs.fits \
/scratch/226103.1.all.q/xmm/ppsprod/229248/intermediate/GlobalHK-all-1-Energy_Conversion_Factors-X00000000000000.fits
# # [INFO] [2024-11-30T23:47:59] System RV 0
# [COMMAND] [2024-11-30T23:47:59]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfgrid.fits.gz \
/scratch/226103.1.all.q/xmm/ppsprod/229248/intermediate/GlobalHK-all-1-Energy_Conversion_Factors_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:47:59] System RV 0
# [COMMAND] [2024-11-30T23:47:59]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/fluxgrid.fits.gz \
/scratch/226103.1.all.q/xmm/ppsprod/229248/intermediate/GlobalHK-all-1-Flux_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:47:59] System RV 0
# # [INFO] [2024-11-30T23:47:59] Module name: ExpChooser
# # [INFO] [2024-11-30T23:47:59] Instrument: emos1
# # [INFO] [2024-11-30T23:47:59] Stream no.: 0001
# # [INFO] [2024-11-30T23:47:59] Module version number: 1.38
# # [INFO] [2024-11-30T23:47:59] Checking exposure S003 for processability
# # [INFO] [2024-11-30T23:47:59] Filter: CalClosed
# # [INFO] [2024-11-30T23:47:59] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:47:59] Exposure duration: 3572
# # [INFO] [2024-11-30T23:47:59] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:47:59] Module name: ExpChooser
# # [INFO] [2024-11-30T23:47:59] Instrument: emos2
# # [INFO] [2024-11-30T23:47:59] Stream no.: 0001
# # [INFO] [2024-11-30T23:47:59] Module version number: 1.38
# # [INFO] [2024-11-30T23:47:59] Checking exposure S004 for processability
# # [INFO] [2024-11-30T23:47:59] Filter: CalClosed
# # [INFO] [2024-11-30T23:47:59] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:47:59] Exposure duration: 3581
# # [INFO] [2024-11-30T23:47:59] Exposure ignored due to invalid or unsupported filter
