
#!/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:49:30] Module name: VerifyODF
# # [INFO] [2024-11-30T23:49:30] Instrument: all
# # [INFO] [2024-11-30T23:49:30] Stream no.: 0001
# # [INFO] [2024-11-30T23:49:30] Module version number: 1.18
# # [INFO] [2024-11-30T23:49:30] Version of odfingest used was 3.33.1
# # [INFO] [2024-11-30T23:49:30] Module name: MakeCIF
# # [INFO] [2024-11-30T23:49:30] Instrument: all
# # [INFO] [2024-11-30T23:49:30] Stream no.: 0001
# # [INFO] [2024-11-30T23:49:30] Module version number: 1.23
# # [INFO] [2024-11-30T23:49:30] Observation start defined as >2006-08-28T15:01:46.000<
# # [INFO] [2024-11-30T23:49:30] Processing date defined as >2024-12-01T00:49:30<
# [COMMAND] [2024-11-30T23:49:30]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:49:30]
export SAS_RAND_SEED=0400320201
# # [INFO] [2024-11-30T23:49:30] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0400320201
# [COMMAND] [2024-11-30T23:49:30]
cifbuild analysisdate=2024-12-01T00:49:30 calindexset=product/P0400320201OBX000CALIND0000.FIT fullpath=no \
observationdate=2006-08-28T15:01:46.000 withccfpath=no -w 10
# # [OUTPUT] [2024-11-30T23:49:59]
# # [INFO] [2024-11-30T23:49:59] Task Run Time cifbuild 28.6870708465576s
#
# [COMMAND] [2024-11-30T23:49:59]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:49:59]
export SAS_RAND_SEED=0400320201
# # [INFO] [2024-11-30T23:49:59] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0400320201
# [COMMAND] [2024-11-30T23:49:59]
addattribute attributecomment="\"Telescope (mission) name\" \"Observation identifier\" \"Date observations were made\" \"RA of \
instrument pointing (degrees)\" \"Name of PI\" \"DEC of instrument pointing\" \"Date observations ended\" \"Name of observed \
object\" \"Observation mode (pointing or slew)\"" attributename="TELESCOP OBS_ID DATE-OBS RA_PNT OBSERVER DEC_PNT DATE-END OBJECT \
OBS_MODE" attributetype="string string string real string real string string string" realvalue="83.086875 -67.6579722" \
set=product/P0400320201OBX000CALIND0000.FIT stringvalue="\"XMM\" \"0400320201\" \"2006-08-28T15:01:46.000\" \"Dr Rosa Williams\" \
\"2006-08-28T17:20:39.000\" \"LHA 120-N 57 SB\" \"POINTED\"" -w 10
# # [OUTPUT] [2024-11-30T23:49:59]
# # [INFO] [2024-11-30T23:49:59] Task Run Time addattribute 0.0386478900909424s
#
# [COMMAND] [2024-11-30T23:49:59]
cp /scratch/226287.1.all.q/xmm/ppsprod/229433/product/P0400320201OBX000CALIND0000.FIT \
/scratch/226287.1.all.q/xmm/ppsprod/229433/intermediate/ccf.cif
# # [INFO] [2024-11-30T23:49:59] System RV 0
# # [INFO] [2024-11-30T23:49:59] Module name: GlobalHK
# # [INFO] [2024-11-30T23:49:59] Instrument: all
# # [INFO] [2024-11-30T23:49:59] Stream no.: 0001
# # [INFO] [2024-11-30T23:49:59] Module version number: 1.81
# [COMMAND] [2024-11-30T23:49:59]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:49:59]
export SAS_RAND_SEED=0400320201
# # [INFO] [2024-11-30T23:49:59] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0400320201
# [COMMAND] [2024-11-30T23:49:59]
preqgti preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:50:00]
# # [INFO] [2024-11-30T23:50:00] Task Run Time preqgti 0.492982149124146s
#
# [COMMAND] [2024-11-30T23:50:00]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:00]
export SAS_RAND_SEED=0400320201
# # [INFO] [2024-11-30T23:50:00] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0400320201
# [COMMAND] [2024-11-30T23:50:00]
atthkgen atthkset=product/P0400320201OBX000ATTTSR0000.FIT preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
timestep=1 withpreqgti=no -w 10
# # [OUTPUT] [2024-11-30T23:50:00]
# # [INFO] [2024-11-30T23:50:00] Task Run Time atthkgen 0.305720090866089s
#
# [COMMAND] [2024-11-30T23:50:00]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:00]
export SAS_RAND_SEED=0400320201
# # [INFO] [2024-11-30T23:50:00] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0400320201
# [COMMAND] [2024-11-30T23:50:00]
orbit outfile=product/P0400320201OBX000ORBTSR0000.FIT timestep=1 useobsid=yes -w 10
# # [OUTPUT] [2024-11-30T23:50:00] orbit:- Output FITS Orbit timeseries: product/P0400320201OBX000ORBTSR0000.FIT
# orbit:- Binsize (timestep) of output): 1
# orbit:- Use OBSID data or whole orbit? T 
# # [INFO] [2024-11-30T23:50:00] Task Run Time orbit 0.413559913635254s
#
# [COMMAND] [2024-11-30T23:50:00]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:00]
export SAS_RAND_SEED=0400320201
# # [INFO] [2024-11-30T23:50:00] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0400320201
# [COMMAND] [2024-11-30T23:50:00]
radmonfix output=product/P0400320201OBX000RADMON0000.FIT radmonlist=odf/1230_0400320201_RMX00100ECX.FIT withoutputfile=yes -w 10
# # [OUTPUT] [2024-11-30T23:50:00] ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=194398662 which is\
#     outside the time correlation data abscissa range [194400548.9, 194410842.6] - result of extrapolation might be afflicted with\
#     large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=194398665.9 which is outside the time correlation\
#     data abscissa range [194400548.9, 194410842.6] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=194398670 which is outside the time correlation data\
#     abscissa range [194400548.9, 194410842.6] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=194398673.9 which is outside the time correlation\
#     data abscissa range [194400548.9, 194410842.6] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=194398677.9 which is outside the time correlation\
#     data abscissa range [194400548.9, 194410842.6] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=194398681.9 which is outside the time correlation\
#     data abscissa range [194400548.9, 194410842.6] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=194398686 which is outside the time correlation data\
#     abscissa range [194400548.9, 194410842.6] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=194398689.9 which is outside the time correlation\
#     data abscissa range [194400548.9, 194410842.6] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=194398694 which is outside the time correlation data\
#     abscissa range [194400548.9, 194410842.6] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=194398698 which is outside the time correlation data\
#     abscissa range [194400548.9, 194410842.6] - result of extrapolation might be afflicted with large numerical uncertainty.
# radmonfix:- Setting DATE-END...
# ** radmonfix: warning (SummaryOfWarnings), 
# warning Extrapolation silently occurred 467 times 
# # [INFO] [2024-11-30T23:50:00] Task Run Time radmonfix 0.17301607131958s
#
# [COMMAND] [2024-11-30T23:50:00]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/EPICModes.fits \
/scratch/226287.1.all.q/xmm/ppsprod/229433/intermediate/GlobalHK-all-1-Observing_modes_Pileup_and_OoT_data-X00000000000000.fits
# # [INFO] [2024-11-30T23:50:01] System RV 0
# # [INFO] [2024-11-30T23:50:01] Copied EPIC Observing modes table, Pileup data and OoT data table in place
# [COMMAND] [2024-11-30T23:50:01]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfs.fits \
/scratch/226287.1.all.q/xmm/ppsprod/229433/intermediate/GlobalHK-all-1-Energy_Conversion_Factors-X00000000000000.fits
# # [INFO] [2024-11-30T23:50:01] System RV 0
# [COMMAND] [2024-11-30T23:50:01]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfgrid.fits.gz \
/scratch/226287.1.all.q/xmm/ppsprod/229433/intermediate/GlobalHK-all-1-Energy_Conversion_Factors_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:50:01] System RV 0
# [COMMAND] [2024-11-30T23:50:01]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/fluxgrid.fits.gz \
/scratch/226287.1.all.q/xmm/ppsprod/229433/intermediate/GlobalHK-all-1-Flux_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:50:01] System RV 0
# # [INFO] [2024-11-30T23:50:01] Module name: ExpChooser
# # [INFO] [2024-11-30T23:50:01] Instrument: emos1
# # [INFO] [2024-11-30T23:50:01] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:01] Module version number: 1.38
# # [INFO] [2024-11-30T23:50:01] Checking exposure S003 for processability
# # [INFO] [2024-11-30T23:50:01] Filter: CalClosed
# # [INFO] [2024-11-30T23:50:01] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:50:01] Exposure duration: 8322
# # [INFO] [2024-11-30T23:50:01] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:50:01] Module name: ExpChooser
# # [INFO] [2024-11-30T23:50:01] Instrument: emos2
# # [INFO] [2024-11-30T23:50:01] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:01] Module version number: 1.38
# # [INFO] [2024-11-30T23:50:01] Checking exposure S004 for processability
# # [INFO] [2024-11-30T23:50:01] Filter: CalClosed
# # [INFO] [2024-11-30T23:50:01] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:50:01] Exposure duration: 8333
# # [INFO] [2024-11-30T23:50:01] Exposure ignored due to invalid or unsupported filter
