
#!/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:48:41] Module name: VerifyODF
# # [INFO] [2024-11-30T23:48:41] Instrument: all
# # [INFO] [2024-11-30T23:48:41] Stream no.: 0001
# # [INFO] [2024-11-30T23:48:41] Module version number: 1.18
# # [INFO] [2024-11-30T23:48:41] Version of odfingest used was 3.33.1
# # [INFO] [2024-11-30T23:48:41] Module name: MakeCIF
# # [INFO] [2024-11-30T23:48:41] Instrument: all
# # [INFO] [2024-11-30T23:48:41] Stream no.: 0001
# # [INFO] [2024-11-30T23:48:41] Module version number: 1.23
# # [INFO] [2024-11-30T23:48:41] Observation start defined as >2000-06-23T03:25:36.000<
# # [INFO] [2024-11-30T23:48:41] Processing date defined as >2024-12-01T00:48:41<
# [COMMAND] [2024-11-30T23:48:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:48:41]
export SAS_RAND_SEED=0113321301
# # [INFO] [2024-11-30T23:48:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0113321301
# [COMMAND] [2024-11-30T23:48:41]
cifbuild analysisdate=2024-12-01T00:48:41 calindexset=product/P0113321301OBX000CALIND0000.FIT fullpath=no \
observationdate=2000-06-23T03:25:36.000 withccfpath=no -w 10
# # [OUTPUT] [2024-11-30T23:49:12]
# # [INFO] [2024-11-30T23:49:12] Task Run Time cifbuild 30.7044441699982s
#
# [COMMAND] [2024-11-30T23:49:12]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:49:12]
export SAS_RAND_SEED=0113321301
# # [INFO] [2024-11-30T23:49:12] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0113321301
# [COMMAND] [2024-11-30T23:49:12]
addattribute attributecomment="\"Telescope (mission) name\" \"Observation identifier\" \"RA of instrument pointing (degrees)\" \"DEC \
of instrument pointing\" \"Date observations ended\" \"Name of PI\" \"Date observations were made\" \"Name of observed object\" \
\"Observation mode (pointing or slew)\"" attributename="TELESCOP OBS_ID RA_PNT DEC_PNT DATE-END OBSERVER DATE-OBS OBJECT OBS_MODE" \
attributetype="string string real real string string string string string" realvalue="\"195.019167\" \"68.7200000\"" \
set=product/P0113321301OBX000CALIND0000.FIT stringvalue="\"XMM\" \"0113321301\" \"2000-06-23T04:13:10.000\" \"Dr Norbert Schartel\" \
\"2000-06-23T03:25:36.000\" \"Dummy\" \"POINTED\"" -w 10
# # [OUTPUT] [2024-11-30T23:49:12]
# # [INFO] [2024-11-30T23:49:12] Task Run Time addattribute 0.0842568874359131s
#
# [COMMAND] [2024-11-30T23:49:12]
cp /scratch/226253.1.all.q/xmm/ppsprod/229398/product/P0113321301OBX000CALIND0000.FIT \
/scratch/226253.1.all.q/xmm/ppsprod/229398/intermediate/ccf.cif
# # [INFO] [2024-11-30T23:49:12] System RV 0
# # [INFO] [2024-11-30T23:49:12] Module name: GlobalHK
# # [INFO] [2024-11-30T23:49:12] Instrument: all
# # [INFO] [2024-11-30T23:49:12] Stream no.: 0001
# # [INFO] [2024-11-30T23:49:12] Module version number: 1.81
# [COMMAND] [2024-11-30T23:49:12]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:49:12]
export SAS_RAND_SEED=0113321301
# # [INFO] [2024-11-30T23:49:12] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0113321301
# [COMMAND] [2024-11-30T23:49:12]
preqgti preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:49:12]
# # [INFO] [2024-11-30T23:49:12] Task Run Time preqgti 0.196157932281494s
#
# [COMMAND] [2024-11-30T23:49:12]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:49:12]
export SAS_RAND_SEED=0113321301
# # [INFO] [2024-11-30T23:49:12] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0113321301
# [COMMAND] [2024-11-30T23:49:12]
atthkgen atthkset=product/P0113321301OBX000ATTTSR0000.FIT preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
timestep=1 withpreqgti=no -w 10
# # [OUTPUT] [2024-11-30T23:49:12]
# # [INFO] [2024-11-30T23:49:12] Task Run Time atthkgen 0.245031833648682s
#
# [COMMAND] [2024-11-30T23:49:12]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:49:12]
export SAS_RAND_SEED=0113321301
# # [INFO] [2024-11-30T23:49:12] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0113321301
# [COMMAND] [2024-11-30T23:49:12]
orbit outfile=product/P0113321301OBX000ORBTSR0000.FIT timestep=1 useobsid=yes -w 10
# # [OUTPUT] [2024-11-30T23:49:13] orbit:- Output FITS Orbit timeseries: product/P0113321301OBX000ORBTSR0000.FIT
# orbit:- Binsize (timestep) of output): 1
# orbit:- Use OBSID data or whole orbit? T 
# # [INFO] [2024-11-30T23:49:13] Task Run Time orbit 0.137118101119995s
#
# [COMMAND] [2024-11-30T23:49:13]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:49:13]
export SAS_RAND_SEED=0113321301
# # [INFO] [2024-11-30T23:49:13] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0113321301
# [COMMAND] [2024-11-30T23:49:13]
radmonfix output=product/P0113321301OBX000RADMON0000.FIT radmonlist=odf/0099_0113321301_RMX00100ECX.FIT withoutputfile=yes -w 10
# # [OUTPUT] [2024-11-30T23:49:13] ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=475798.9451 which\
#     is outside the time correlation data abscissa range [471504.837, 475696.2198] - result of extrapolation might be afflicted\
#     with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=475802.9451 which is outside the time correlation\
#     data abscissa range [471504.837, 475696.2198] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=475806.9451 which is outside the time correlation\
#     data abscissa range [471504.837, 475696.2198] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=475810.9451 which is outside the time correlation\
#     data abscissa range [471504.837, 475696.2198] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=475814.9451 which is outside the time correlation\
#     data abscissa range [471504.837, 475696.2198] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=475818.9451 which is outside the time correlation\
#     data abscissa range [471504.837, 475696.2198] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=475822.9451 which is outside the time correlation\
#     data abscissa range [471504.837, 475696.2198] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=475826.9451 which is outside the time correlation\
#     data abscissa range [471504.837, 475696.2198] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=475830.9451 which is outside the time correlation\
#     data abscissa range [471504.837, 475696.2198] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=475834.9451 which is outside the time correlation\
#     data abscissa range [471504.837, 475696.2198] - result of extrapolation might be afflicted with large numerical uncertainty.
# radmonfix:- Setting DATE-END...
# ** radmonfix: warning (SummaryOfWarnings), 
# warning Extrapolation silently occurred 684 times 
# # [INFO] [2024-11-30T23:49:13] Task Run Time radmonfix 0.105569124221802s
#
# [COMMAND] [2024-11-30T23:49:13]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/EPICModes.fits \
/scratch/226253.1.all.q/xmm/ppsprod/229398/intermediate/GlobalHK-all-1-Observing_modes_Pileup_and_OoT_data-X00000000000000.fits
# # [INFO] [2024-11-30T23:49:13] System RV 0
# # [INFO] [2024-11-30T23:49:13] Copied EPIC Observing modes table, Pileup data and OoT data table in place
# [COMMAND] [2024-11-30T23:49:13]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfs.fits \
/scratch/226253.1.all.q/xmm/ppsprod/229398/intermediate/GlobalHK-all-1-Energy_Conversion_Factors-X00000000000000.fits
# # [INFO] [2024-11-30T23:49:13] System RV 0
# [COMMAND] [2024-11-30T23:49:13]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfgrid.fits.gz \
/scratch/226253.1.all.q/xmm/ppsprod/229398/intermediate/GlobalHK-all-1-Energy_Conversion_Factors_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:49:13] System RV 0
# [COMMAND] [2024-11-30T23:49:13]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/fluxgrid.fits.gz \
/scratch/226253.1.all.q/xmm/ppsprod/229398/intermediate/GlobalHK-all-1-Flux_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:49:13] System RV 0
# # [INFO] [2024-11-30T23:49:13] Module name: ExpChooser
# # [INFO] [2024-11-30T23:49:13] Instrument: emos1
# # [INFO] [2024-11-30T23:49:13] Stream no.: 0001
# # [INFO] [2024-11-30T23:49:13] Module version number: 1.38
# # [INFO] [2024-11-30T23:49:13] Checking exposure S002 for processability
# # [INFO] [2024-11-30T23:49:13] Filter: CalClosed
# # [INFO] [2024-11-30T23:49:13] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:49:13] Exposure duration: 2799
# # [INFO] [2024-11-30T23:49:13] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:49:13] Module name: ExpChooser
# # [INFO] [2024-11-30T23:49:13] Instrument: epn
# # [INFO] [2024-11-30T23:49:13] Stream no.: 0001
# # [INFO] [2024-11-30T23:49:13] Module version number: 1.38
# # [INFO] [2024-11-30T23:49:13] Checking exposure S004 for processability
# # [INFO] [2024-11-30T23:49:13] Filter: CalClosed
# # [INFO] [2024-11-30T23:49:13] Instrument mode: FastTiming
# # [INFO] [2024-11-30T23:49:13] Exposure duration: 1205
# # [INFO] [2024-11-30T23:49:13] Exposure ignored due to invalid or unsupported filter
