
#!/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:42:36] Module name: VerifyODF
# # [INFO] [2024-11-30T23:42:36] Instrument: all
# # [INFO] [2024-11-30T23:42:36] Stream no.: 0001
# # [INFO] [2024-11-30T23:42:36] Module version number: 1.18
# # [INFO] [2024-11-30T23:42:36] Version of odfingest used was 3.33.1
# # [INFO] [2024-11-30T23:42:36] Module name: MakeCIF
# # [INFO] [2024-11-30T23:42:36] Instrument: all
# # [INFO] [2024-11-30T23:42:36] Stream no.: 0001
# # [INFO] [2024-11-30T23:42:36] Module version number: 1.23
# # [INFO] [2024-11-30T23:42:36] Observation start defined as >2003-05-16T10:24:46.000<
# # [INFO] [2024-11-30T23:42:36] Processing date defined as >2024-12-01T00:42:36<
# [COMMAND] [2024-11-30T23:42:36]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:42:36]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:42:36] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:42:36]
cifbuild analysisdate=2024-12-01T00:42:36 calindexset=product/P0136020101OBX000CALIND0000.FIT fullpath=no \
observationdate=2003-05-16T10:24:46.000 withccfpath=no -w 10
# # [OUTPUT] [2024-11-30T23:43:04]
# # [INFO] [2024-11-30T23:43:04] Task Run Time cifbuild 28.6267850399017s
#
# [COMMAND] [2024-11-30T23:43:04]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:04]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:04] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:04]
addattribute attributecomment="\"Telescope (mission) name\" \"Name of observed object\" \"Date observations were made\" \"DEC of \
instrument pointing\" \"RA of instrument pointing (degrees)\" \"Date observations ended\" \"Observation identifier\" \"Name of PI\" \
\"Observation mode (pointing or slew)\"" attributename="TELESCOP OBJECT DATE-OBS DEC_PNT RA_PNT DATE-END OBS_ID OBSERVER OBS_MODE" \
attributetype="string string string real real string string string string" realvalue="\"40.4283889\" \"305.3374995\"" \
set=product/P0136020101OBX000CALIND0000.FIT stringvalue="\"XMM\" \"Gamma Cygni\" \"2003-05-16T10:24:46.000\" \
\"2003-05-16T13:52:48.000\" \"0136020101\" \"Dr Yasunobu Uchiyama\" \"POINTED\"" -w 10
# # [OUTPUT] [2024-11-30T23:43:04]
# # [INFO] [2024-11-30T23:43:04] Task Run Time addattribute 0.0672409534454346s
#
# [COMMAND] [2024-11-30T23:43:04]
cp /scratch/225748.1.all.q/xmm/ppsprod/228893/product/P0136020101OBX000CALIND0000.FIT \
/scratch/225748.1.all.q/xmm/ppsprod/228893/intermediate/ccf.cif
# # [INFO] [2024-11-30T23:43:05] System RV 0
# # [INFO] [2024-11-30T23:43:05] Module name: GlobalHK
# # [INFO] [2024-11-30T23:43:05] Instrument: all
# # [INFO] [2024-11-30T23:43:05] Stream no.: 0001
# # [INFO] [2024-11-30T23:43:05] Module version number: 1.81
# [COMMAND] [2024-11-30T23:43:05]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:05]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:05] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:05]
preqgti preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:05] ** preqgti: warning (TemporalOverlapInAHF), Temporal overlap of 0.490002s between AHF entries 264\
#     (2003-05-16T10:16:57.000) and 265 (2003-05-16T10:17:37.000) - adjusting duration of entry 264 accordingly
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 169467480.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -41 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 169467480.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -41 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 169467481.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -40 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 169467481.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -40 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 169467482.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -39 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 169467482.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -39 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 169467483.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -38 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 169467483.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -38 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 169467484.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -37 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 169467484.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -37 s away).
# ** preqgti: warning (SummaryOfWarnings), 
# warning NoAttitude silently occurred 38 times 
# # [INFO] [2024-11-30T23:43:05] Task Run Time preqgti 0.423310995101929s
#
# [COMMAND] [2024-11-30T23:43:05]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:05]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:05] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:05]
atthkgen atthkset=product/P0136020101OBX000ATTTSR0000.FIT preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
timestep=1 withpreqgti=no -w 10
# # [OUTPUT] [2024-11-30T23:43:05]
# # [INFO] [2024-11-30T23:43:05] Task Run Time atthkgen 0.371984004974365s
#
# [COMMAND] [2024-11-30T23:43:05]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:05]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:05] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:05]
orbit outfile=product/P0136020101OBX000ORBTSR0000.FIT timestep=1 useobsid=yes -w 10
# # [OUTPUT] [2024-11-30T23:43:06] orbit:- Output FITS Orbit timeseries: product/P0136020101OBX000ORBTSR0000.FIT
# orbit:- Binsize (timestep) of output): 1
# orbit:- Use OBSID data or whole orbit? T 
# # [INFO] [2024-11-30T23:43:06] Task Run Time orbit 0.573813915252686s
#
# [COMMAND] [2024-11-30T23:43:06]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:06]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:06] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:06]
radmonfix output=product/P0136020101OBX000RADMON0000.FIT radmonlist="odf/0629_0136020101_RMX00100ECX.FIT \
odf/0629_0136020101_RMX00200ECX.FIT" withoutputfile=yes -w 10
# # [OUTPUT] [2024-11-30T23:43:06] ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=90703205.86 which\
#     is outside the time correlation data abscissa range [90704822.42, 90719054.88] - result of extrapolation might be afflicted\
#     with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=90703209.86 which is outside the time correlation\
#     data abscissa range [90704822.42, 90719054.88] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=90703213.86 which is outside the time correlation\
#     data abscissa range [90704822.42, 90719054.88] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=90703217.86 which is outside the time correlation\
#     data abscissa range [90704822.42, 90719054.88] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=90703221.86 which is outside the time correlation\
#     data abscissa range [90704822.42, 90719054.88] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=90703225.86 which is outside the time correlation\
#     data abscissa range [90704822.42, 90719054.88] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=90703229.86 which is outside the time correlation\
#     data abscissa range [90704822.42, 90719054.88] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=90703233.86 which is outside the time correlation\
#     data abscissa range [90704822.42, 90719054.88] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=90703237.86 which is outside the time correlation\
#     data abscissa range [90704822.42, 90719054.88] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=90703241.86 which is outside the time correlation\
#     data abscissa range [90704822.42, 90719054.88] - result of extrapolation might be afflicted with large numerical uncertainty.
# radmonfix:- Adding 3584 counts rows from row 515
# radmonfix:- Setting DATE-END...
# ** radmonfix: warning (SummaryOfWarnings), 
# warning Extrapolation silently occurred 481 times 
# # [INFO] [2024-11-30T23:43:06] Task Run Time radmonfix 0.127748966217041s
#
# [COMMAND] [2024-11-30T23:43:06]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/EPICModes.fits \
/scratch/225748.1.all.q/xmm/ppsprod/228893/intermediate/GlobalHK-all-1-Observing_modes_Pileup_and_OoT_data-X00000000000000.fits
# # [INFO] [2024-11-30T23:43:06] System RV 0
# # [INFO] [2024-11-30T23:43:06] Copied EPIC Observing modes table, Pileup data and OoT data table in place
# [COMMAND] [2024-11-30T23:43:06]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfs.fits \
/scratch/225748.1.all.q/xmm/ppsprod/228893/intermediate/GlobalHK-all-1-Energy_Conversion_Factors-X00000000000000.fits
# # [INFO] [2024-11-30T23:43:06] System RV 0
# [COMMAND] [2024-11-30T23:43:06]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfgrid.fits.gz \
/scratch/225748.1.all.q/xmm/ppsprod/228893/intermediate/GlobalHK-all-1-Energy_Conversion_Factors_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:43:06] System RV 0
# [COMMAND] [2024-11-30T23:43:06]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/fluxgrid.fits.gz \
/scratch/225748.1.all.q/xmm/ppsprod/228893/intermediate/GlobalHK-all-1-Flux_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:43:06] System RV 0
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: emos1
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0001
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure S002 for processability
# # [INFO] [2024-11-30T23:43:06] Filter: CalClosed
# # [INFO] [2024-11-30T23:43:06] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:43:06] Exposure duration: 12326
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: emos2
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0001
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure S003 for processability
# # [INFO] [2024-11-30T23:43:06] Filter: CalClosed
# # [INFO] [2024-11-30T23:43:06] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:43:06] Exposure duration: 12337
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0001
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure S001 for processability
# # [INFO] [2024-11-30T23:43:06] Filter: CalClosed
# # [INFO] [2024-11-30T23:43:06] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:43:06] Exposure duration: 10701
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0002
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U001 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0003
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U002 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0004
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U003 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0005
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U004 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0006
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U005 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0007
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U006 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0008
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U007 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0009
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U008 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0010
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U009 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0011
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U010 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0012
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U011 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0013
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U012 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: epn
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0014
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure U013 for processability
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to lack of event files
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: om
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0001
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure S006 for processability
# # [INFO] [2024-11-30T23:43:06] Filter: UVW2
# # [INFO] [2024-11-30T23:43:06] Instrument mode: Image
# # [INFO] [2024-11-30T23:43:06] Exposure duration: 2120
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: om
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0002
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure S400 for processability
# # [INFO] [2024-11-30T23:43:06] Filter: UVW2
# # [INFO] [2024-11-30T23:43:06] Instrument mode: UNDEFINED
# # [INFO] [2024-11-30T23:43:06] Exposure duration: 2120
# # [INFO] [2024-11-30T23:43:06] OM datamode=
# # [INFO] [2024-11-30T23:43:06] Exposure ignored due to invalid or unsupported instrument mode
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: om
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0003
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure S401 for processability
# # [INFO] [2024-11-30T23:43:06] Filter: UVW2
# # [INFO] [2024-11-30T23:43:06] Instrument mode: Image
# # [INFO] [2024-11-30T23:43:06] Exposure duration: 2120
# # [INFO] [2024-11-30T23:43:06] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:06] Instrument: om
# # [INFO] [2024-11-30T23:43:06] Stream no.: 0004
# # [INFO] [2024-11-30T23:43:06] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:06] Checking exposure S402 for processability
# # [INFO] [2024-11-30T23:43:06] Filter: UVW2
# # [INFO] [2024-11-30T23:43:06] Instrument mode: Image
# # [INFO] [2024-11-30T23:43:06] Exposure duration: 2120
# # [INFO] [2024-11-30T23:43:07] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:07] Instrument: om
# # [INFO] [2024-11-30T23:43:07] Stream no.: 0005
# # [INFO] [2024-11-30T23:43:07] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:07] Checking exposure S403 for processability
# # [INFO] [2024-11-30T23:43:07] Filter: UVW2
# # [INFO] [2024-11-30T23:43:07] Instrument mode: Image
# # [INFO] [2024-11-30T23:43:07] Exposure duration: 2120
# # [INFO] [2024-11-30T23:43:07] Module name: ExpChooser
# # [INFO] [2024-11-30T23:43:07] Instrument: om
# # [INFO] [2024-11-30T23:43:07] Stream no.: 0006
# # [INFO] [2024-11-30T23:43:07] Module version number: 1.38
# # [INFO] [2024-11-30T23:43:07] Checking exposure S404 for processability
# # [INFO] [2024-11-30T23:43:07] Filter: UVW2
# # [INFO] [2024-11-30T23:43:07] Instrument mode: Image
# # [INFO] [2024-11-30T23:43:07] Exposure duration: 2119
# # [INFO] [2024-11-30T23:43:07] Module name: InstrumentHK
# # [INFO] [2024-11-30T23:43:07] Instrument: om
# # [INFO] [2024-11-30T23:43:07] Stream no.: 0001
# # [INFO] [2024-11-30T23:43:07] Module version number: 2.01
# # [INFO] [2024-11-30T23:43:07] Module name: USNOExtract
# # [INFO] [2024-11-30T23:43:07] Instrument: all
# # [INFO] [2024-11-30T23:43:07] Stream no.: 0001
# # [INFO] [2024-11-30T23:43:07] Module version number: 0.07
# [COMMAND] [2024-11-30T23:43:07]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:43:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:07]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:07]
fimgcreate bitpix=8 datafile=none headfile=intermediate/USNOExtract-all-1-fimgcreate_kwds-X00000000000000.ascii naxes='648,648' \
outfile=intermediate/USNOExtract-all-1-dummy_image-X00000000000000.fits
# # [OUTPUT] [2024-11-30T23:43:07] Written the output image ......... 
# # [INFO] [2024-11-30T23:43:07] Task Run Time fimgcreate 0.103209018707275s
#
# [COMMAND] [2024-11-30T23:43:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:07]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:07]
catprep catextract=intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
srclistset=product/P0136020101OBX000CALIND0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:07]
# # [INFO] [2024-11-30T23:43:07] Task Run Time catprep 0.495235919952393s
#
# [COMMAND] [2024-11-30T23:43:07]
cp /scratch/225748.1.all.q/xmm/ppsprod/228893/intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
/scratch/225748.1.all.q/xmm/ppsprod/228893/product/P0136020101OBX000REFCAT0000.FIT
# # [INFO] [2024-11-30T23:43:07] System RV 0
# # [INFO] [2024-11-30T23:43:07] Reading keyword RA_OBJ value 3.05337499500000E+02 comment [deg] Ra of the observed object
# # [INFO] [2024-11-30T23:43:07] Reading keyword OBS_ID value 0136020101 comment Observation identifier
# # [INFO] [2024-11-30T23:43:07] Reading keyword DATE-OBS value 2003-05-16T10:24:46.000 comment Date observations were made
# # [INFO] [2024-11-30T23:43:07] Reading keyword DATE-END value 2003-05-16T13:52:48.000 comment Date observations ended
# # [INFO] [2024-11-30T23:43:07] Reading keyword OBS_MODE value POINTING comment Observation mode (pointing or slew)
# # [INFO] [2024-11-30T23:43:07] Reading keyword TELESCOP value XMM comment Telescope (mission) name
# # [INFO] [2024-11-30T23:43:07] Reading keyword DEC_OBJ value 4.04283889000000E+01 comment [deg] Dec of the observed object
# [COMMAND] [2024-11-30T23:43:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:07]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:07]
addattribute attributecomment="\"[deg] Ra of the observed object\" \"Observation identifier\" \"Date observations were made\" \"Date \
observations ended\" \"Observation mode (pointing or slew)\" \"Telescope (mission) name\" \"[deg] Dec of the observed object\"" \
attributename="RA_OBJ OBS_ID DATE-OBS DATE-END OBS_MODE TELESCOP DEC_OBJ" attributetype="\"real\" \"string\" \"string\" \"string\" \
\"string\" \"string\" \"real\"" realvalue="3.05337499500000E+02 4.04283889000000E+01" set=product/P0136020101OBX000REFCAT0000.FIT \
stringvalue="0136020101 2003-05-16T10:24:46.000 2003-05-16T13:52:48.000 POINTING XMM" -w 10
# # [OUTPUT] [2024-11-30T23:43:07] ** addattribute: warning (creatorKeywordNotFound), The CREATOR keyword could not be found in\
#     dataset with name 'product/P0136020101OBX000REFCAT0000.FIT'
# ** addattribute: warning (dateKeywordNotFound), The DATE keyword could not be found in dataset with name\
#     'product/P0136020101OBX000REFCAT0000.FIT' 
# # [INFO] [2024-11-30T23:43:07] Task Run Time addattribute 0.077847957611084s
#
# # [INFO] [2024-11-30T23:43:07] Module name: OMgetFlat
# # [INFO] [2024-11-30T23:43:07] Instrument: om
# # [INFO] [2024-11-30T23:43:07] Stream no.: 0001
# # [INFO] [2024-11-30T23:43:07] Module version number: 1.07
# [COMMAND] [2024-11-30T23:43:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:07]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:07]
omflatgen outset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:08] ** omflatgen: warning (ArgumentIgnored), Warning: countRateFrameRatio argument in small-scale\
#     flatfield retrieval currently ignored 
# # [INFO] [2024-11-30T23:43:08] Task Run Time omflatgen 0.224043130874634s
#
# # [INFO] [2024-11-30T23:43:08] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:43:08] Instrument: om
# # [INFO] [2024-11-30T23:43:08] Stream no.: 0001
# # [INFO] [2024-11-30T23:43:08] Module version number: 1.06
# [COMMAND] [2024-11-30T23:43:08]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:08]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:08] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:08]
omprep modeset=3 nphset=odf/0629_0136020101_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00600000000000.fits pehset=odf/0629_0136020101_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0629_0136020101_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:08] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:43:08] Task Run Time omprep 0.167407035827637s
#
# # [INFO] [2024-11-30T23:43:08] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:43:08] Instrument: om
# # [INFO] [2024-11-30T23:43:08] Stream no.: 0003
# # [INFO] [2024-11-30T23:43:08] Module version number: 1.06
# [COMMAND] [2024-11-30T23:43:08]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:08]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:08] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:08]
omprep modeset=3 nphset=odf/0629_0136020101_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-3-omprep_tracking_history-S40100000000000.fits pehset=odf/0629_0136020101_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0629_0136020101_OMS40100WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:08] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:43:08] Task Run Time omprep 0.116743087768555s
#
# # [INFO] [2024-11-30T23:43:08] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:43:08] Instrument: om
# # [INFO] [2024-11-30T23:43:08] Stream no.: 0004
# # [INFO] [2024-11-30T23:43:08] Module version number: 1.06
# [COMMAND] [2024-11-30T23:43:08]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:08]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:08] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:08]
omprep modeset=3 nphset=odf/0629_0136020101_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-4-omprep_tracking_history-S40200000000000.fits pehset=odf/0629_0136020101_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0629_0136020101_OMS40200WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:08] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:43:08] Task Run Time omprep 0.160866975784302s
#
# # [INFO] [2024-11-30T23:43:08] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:43:08] Instrument: om
# # [INFO] [2024-11-30T23:43:08] Stream no.: 0005
# # [INFO] [2024-11-30T23:43:08] Module version number: 1.06
# [COMMAND] [2024-11-30T23:43:08]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:08]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:08] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:08]
omprep modeset=3 nphset=odf/0629_0136020101_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-5-omprep_tracking_history-S40300000000000.fits pehset=odf/0629_0136020101_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0629_0136020101_OMS40300WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:08] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:43:08] Task Run Time omprep 0.0826828479766846s
#
# # [INFO] [2024-11-30T23:43:08] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:43:08] Instrument: om
# # [INFO] [2024-11-30T23:43:08] Stream no.: 0006
# # [INFO] [2024-11-30T23:43:08] Module version number: 1.06
# [COMMAND] [2024-11-30T23:43:08]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:08]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:08] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:08]
omprep modeset=3 nphset=odf/0629_0136020101_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-6-omprep_tracking_history-S40400000000000.fits pehset=odf/0629_0136020101_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0629_0136020101_OMS40400WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:08] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:43:08] Task Run Time omprep 0.0747780799865723s
#
# # [INFO] [2024-11-30T23:43:08] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:43:08] Instrument: om
# # [INFO] [2024-11-30T23:43:08] Stream no.: 0001
# # [INFO] [2024-11-30T23:43:08] Module version number: 1.36
# # [INFO] [2024-11-30T23:43:08] DEBUG --- exp_id: S006, filter: UVW2
# # [INFO] [2024-11-30T23:43:08] No Fast Mode Windows to process
# # [INFO] [2024-11-30T23:43:08] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:43:08] Instrument: om
# # [INFO] [2024-11-30T23:43:08] Stream no.: 0003
# # [INFO] [2024-11-30T23:43:08] Module version number: 1.36
# # [INFO] [2024-11-30T23:43:08] DEBUG --- exp_id: S401, filter: UVW2
# # [INFO] [2024-11-30T23:43:08] No Fast Mode Windows to process
# # [INFO] [2024-11-30T23:43:08] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:43:08] Instrument: om
# # [INFO] [2024-11-30T23:43:08] Stream no.: 0004
# # [INFO] [2024-11-30T23:43:08] Module version number: 1.36
# # [INFO] [2024-11-30T23:43:08] DEBUG --- exp_id: S402, filter: UVW2
# # [INFO] [2024-11-30T23:43:08] No Fast Mode Windows to process
# # [INFO] [2024-11-30T23:43:08] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:43:08] Instrument: om
# # [INFO] [2024-11-30T23:43:08] Stream no.: 0005
# # [INFO] [2024-11-30T23:43:08] Module version number: 1.36
# # [INFO] [2024-11-30T23:43:08] DEBUG --- exp_id: S403, filter: UVW2
# # [INFO] [2024-11-30T23:43:08] No Fast Mode Windows to process
# # [INFO] [2024-11-30T23:43:08] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:43:08] Instrument: om
# # [INFO] [2024-11-30T23:43:08] Stream no.: 0006
# # [INFO] [2024-11-30T23:43:09] Module version number: 1.36
# # [INFO] [2024-11-30T23:43:09] DEBUG --- exp_id: S404, filter: UVW2
# # [INFO] [2024-11-30T23:43:09] No Fast Mode Windows to process
# # [INFO] [2024-11-30T23:43:09] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:43:09] Instrument: om
# # [INFO] [2024-11-30T23:43:09] Stream no.: 0003
# # [INFO] [2024-11-30T23:43:09] Module version number: 3.28
# # [INFO] [2024-11-30T23:43:09] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:43:09] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:43:09] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:43:09] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:43:09] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:43:09] Found 2 Image mode images.
# # [INFO] [2024-11-30T23:43:09] Analysing odf/0629_0136020101_OMS40100IMI.FIT for image identification
# # [INFO] [2024-11-30T23:43:09] Identified mode: USER
# # [INFO] [2024-11-30T23:43:09] Analysing odf/0629_0136020101_OMS40101IMI.FIT for image identification
# # [INFO] [2024-11-30T23:43:09] Identified mode: USER
# # [INFO] [2024-11-30T23:43:09] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:43:09] Processing USER Images.
# # [INFO] [2024-11-30T23:43:09] 2 images to process.
# # [INFO] [2024-11-30T23:43:09] Processing S401:0:odf/0629_0136020101_OMS40100IMI.FIT
# [COMMAND] [2024-11-30T23:43:09]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:09]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:09] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:09]
omprep modeset=0 nphset=odf/0629_0136020101_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-3-Raw_Image-S40100000000000.fits \
pehset=odf/0629_0136020101_OMX00000PEH.FIT set=odf/0629_0136020101_OMS40100IMI.FIT wdxset=odf/0629_0136020101_OMS40100WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:09]
# # [INFO] [2024-11-30T23:43:09] Task Run Time omprep 0.179741859436035s
#
# # [INFO] [2024-11-30T23:43:09] Retrieving FILTER value
# # [INFO] [2024-11-30T23:43:09] FILTER = S
# # [INFO] [2024-11-30T23:43:09] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:43:09] EXPOSURE = 2.12000000000000E+03
# [COMMAND] [2024-11-30T23:43:09]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:09]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:09] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:09]
omcosflag set=intermediate/OMImageAnalyse-om-3-Raw_Image-S40100000000000.fits \
thxset=intermediate/OMExpAnalyse-om-3-omprep_tracking_history-S40100000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:09]
# # [INFO] [2024-11-30T23:43:09] Task Run Time omcosflag 0.208935976028442s
#
# [COMMAND] [2024-11-30T23:43:09]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:09]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:09] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:09]
omflatfield inorbitflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits \
outset=intermediate/OMImageAnalyse-om-3-OSW_Flat_Fielded_Image-S40100000000000.fits \
set=intermediate/OMImageAnalyse-om-3-Raw_Image-S40100000000000.fits \
thxset=intermediate/OMExpAnalyse-om-3-omprep_tracking_history-S40100000000000.fits \
tsflatset=intermediate/OMImageAnalyse-om-3-OSW_Flat_Field-S40100000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:09]
# # [INFO] [2024-11-30T23:43:09] Task Run Time omflatfield 0.0971591472625732s
#
# [COMMAND] [2024-11-30T23:43:09]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:09]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:09] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:09]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-3-OSW_MODULO_8_IMAGE-S40100000000000.fits nbox=16 nsig=6 \
outset=product/P0136020101OMS401IMAGE_0000.FIT set=intermediate/OMImageAnalyse-om-3-OSW_Flat_Fielded_Image-S40100000000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:43:10] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:43:10] Task Run Time ommodmap 0.703492164611816s
#
# [COMMAND] [2024-11-30T23:43:10]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:10]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:10] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:10]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS401IMAGE_0000.FIT set=product/P0136020101OMS401IMAGE_0000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:43:10] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS401IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:43:10] Task Run Time omqualitymap 0.0526058673858643s
#
# [COMMAND] [2024-11-30T23:43:10]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:10]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:10] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:10]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0136020101OMS401SWSRLI0000.FIT \
regionfile=product/P0136020101OMS401SWSREG0000.ASC set=product/P0136020101OMS401IMAGE_0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:12]
# # [INFO] [2024-11-30T23:43:12] Task Run Time omdetect 2.35782885551453s
#
# [COMMAND] [2024-11-30T23:43:12]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:12]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:12] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:12]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS401IMAGE_0000.FIT set=product/P0136020101OMS401IMAGE_0000.FIT \
srclistset=product/P0136020101OMS401SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:12] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS401SWSRLI0000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS401IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS401SWSRLI0000.FIT; 
# # [INFO] [2024-11-30T23:43:12] Task Run Time omqualitymap 0.13554310798645s
#
# [COMMAND] [2024-11-30T23:43:12]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:12]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:12] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:12]
ommag set=product/P0136020101OMS401SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:12] ** ommag: warning (No sources in source-list file), The number of sources : 0 
# # [INFO] [2024-11-30T23:43:12] Task Run Time ommag 0.079085111618042s
#
# [COMMAND] [2024-11-30T23:43:12]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:12]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:12] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:12]
omatt catfile=product/P0136020101OBX000REFCAT0000.FIT ppsoswset=product/P0136020101OMS401SIMAGE0000.FIT \
set=product/P0136020101OMS401IMAGE_0000.FIT sourcelistset=product/P0136020101OMS401SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:43:14] ** omatt: warning (Too few sources for astrometry (0)), Need at least 5 
# # [INFO] [2024-11-30T23:43:14] Task Run Time omatt 1.31988906860352s
#
# [COMMAND] [2024-11-30T23:43:14]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:43:14]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:14]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:14] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:14]
fimgstat clobber=Y infile=product/P0136020101OMS401SIMAGE0000.FIT max=0 mean=0 min=0 mode=ql num=0 \
outfile=intermediate/OMImageAnalyse-om-3-OSW_0_sky_image_statistics-S40100000000000.ascii rms=0 sum=0 threshlo=INDEF threshup=INDEF \
xmax=0 xmin=0 ymax=0 ymin=0
# # [OUTPUT] [2024-11-30T23:43:14]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:43:14] Task Run Time fimgstat 0.0460638999938965s
#
# # [INFO] [2024-11-30T23:43:14] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMS401SIMAGE0000.FIT\
#     --outfile=product/P0136020101OMS401SIMAGE0000.PNG
# [COMMAND] [2024-11-30T23:43:14]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:14]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:14] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:14]
implot.py --fitsImage=product/P0136020101OMS401SIMAGE0000.FIT --outfile=product/P0136020101OMS401SIMAGE0000.PNG
# # [OUTPUT] [2024-11-30T23:43:17] Image shape. y,x: (299, 296) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (298, 295) x/y ratio: 0.99 
# # [INFO] [2024-11-30T23:43:17] Task Run Time implot.py 3.53324103355408s
#
# # [INFO] [2024-11-30T23:43:17] Processing S401:1:odf/0629_0136020101_OMS40101IMI.FIT
# [COMMAND] [2024-11-30T23:43:17]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:17]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:17] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:17]
omprep modeset=0 nphset=odf/0629_0136020101_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-3-Raw_Image-S40100010000000.fits \
pehset=odf/0629_0136020101_OMX00000PEH.FIT set=odf/0629_0136020101_OMS40101IMI.FIT wdxset=odf/0629_0136020101_OMS40100WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:17]
# # [INFO] [2024-11-30T23:43:17] Task Run Time omprep 0.147159099578857s
#
# # [INFO] [2024-11-30T23:43:17] Retrieving FILTER value
# # [INFO] [2024-11-30T23:43:17] FILTER = S
# # [INFO] [2024-11-30T23:43:17] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:43:17] EXPOSURE = 2.12000000000000E+03
# [COMMAND] [2024-11-30T23:43:17]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:17]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:17] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:17]
omcosflag set=intermediate/OMImageAnalyse-om-3-Raw_Image-S40100010000000.fits \
thxset=intermediate/OMExpAnalyse-om-3-omprep_tracking_history-S40100000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:18]
# # [INFO] [2024-11-30T23:43:18] Task Run Time omcosflag 0.254279851913452s
#
# [COMMAND] [2024-11-30T23:43:18]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:18]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:18] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:18]
omflatfield inorbitflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits \
outset=intermediate/OMImageAnalyse-om-3-OSW_Flat_Fielded_Image-S40100010000000.fits \
set=intermediate/OMImageAnalyse-om-3-Raw_Image-S40100010000000.fits \
thxset=intermediate/OMExpAnalyse-om-3-omprep_tracking_history-S40100000000000.fits \
tsflatset=intermediate/OMImageAnalyse-om-3-OSW_Flat_Field-S40100010000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:18]
# # [INFO] [2024-11-30T23:43:18] Task Run Time omflatfield 0.074105978012085s
#
# [COMMAND] [2024-11-30T23:43:18]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:18]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:18] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:18]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-3-OSW_MODULO_8_IMAGE-S40100010000000.fits nbox=16 nsig=6 \
outset=product/P0136020101OMS401IMAGE_1000.FIT set=intermediate/OMImageAnalyse-om-3-OSW_Flat_Fielded_Image-S40100010000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:43:21] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:43:21] Task Run Time ommodmap 3.1569390296936s
#
# [COMMAND] [2024-11-30T23:43:21]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:21]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:21] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:21]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS401IMAGE_1000.FIT set=product/P0136020101OMS401IMAGE_1000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:43:21] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS401IMAGE_1000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:43:21] Task Run Time omqualitymap 0.13153600692749s
#
# [COMMAND] [2024-11-30T23:43:21]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:21]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:21] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:21]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0136020101OMS401SWSRLI1000.FIT \
regionfile=product/P0136020101OMS401SWSREG1000.ASC set=product/P0136020101OMS401IMAGE_1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:25]
# # [INFO] [2024-11-30T23:43:25] Task Run Time omdetect 4.1256377696991s
#
# [COMMAND] [2024-11-30T23:43:25]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:25]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:25] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:25]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS401IMAGE_1000.FIT set=product/P0136020101OMS401IMAGE_1000.FIT \
srclistset=product/P0136020101OMS401SWSRLI1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:25] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS401SWSRLI1000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS401IMAGE_1000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS401SWSRLI1000.FIT; 
# # [INFO] [2024-11-30T23:43:25] Task Run Time omqualitymap 0.094012975692749s
#
# [COMMAND] [2024-11-30T23:43:25]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:25]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:25] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:25]
ommag set=product/P0136020101OMS401SWSRLI1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:25]
# TDP corr factor is: 1.10034502 
# L265 tdpCorrFactor= 1.10034502 
# L348 getting the column data
# In: 216.070267 95.9428024 2 44
# X,Y,pdepcorr: 476.140533 202.885605 1.00000000 
# In: 160.326324 304.927185 2 44
# X,Y,pdepcorr: 364.652649 620.854370 1.00000000 
# In: 183.890884 377.212708 2 44
# X,Y,pdepcorr: 411.781769 765.425415 1.00000000 
# In: 235.191650 737.491638 2 44
# X,Y,pdepcorr: 514.383301 1485.98328 1.00000000 
# In: 78.7679214 535.904724 2 44
# X,Y,pdepcorr: 201.535843 1082.80945 1.00000000 
# In: 74.3236618 797.484741 2 44
# X,Y,pdepcorr: 192.647324 1605.96948 1.00000000 
# In: 228.981232 769.327576 2 44
# X,Y,pdepcorr: 501.962463 1549.65515 1.00000000 
# In: 228.096207 322.652649 2 44
# X,Y,pdepcorr: 500.192413 656.305298 1.00000000 
# In: 31.0274925 351.665588 2 44
# X,Y,pdepcorr: 106.054985 714.331177 1.00000000 
# In: 73.4140930 704.054199 2 44
# X,Y,pdepcorr: 190.828186 1419.10840 1.00000000 
# # [INFO] [2024-11-30T23:43:25] Task Run Time ommag 0.0811100006103516s
#
# [COMMAND] [2024-11-30T23:43:25]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:25]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:25] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:25]
omatt catfile=product/P0136020101OBX000REFCAT0000.FIT ppsoswset=product/P0136020101OMS401SIMAGE1000.FIT \
set=product/P0136020101OMS401IMAGE_1000.FIT sourcelistset=product/P0136020101OMS401SWSRLI1000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:43:31] ** omatt: warning (Too few sources matched for astrometry correction ( 0)), Need at least 5 
# # [INFO] [2024-11-30T23:43:31] Task Run Time omatt 5.41533303260803s
#
# [COMMAND] [2024-11-30T23:43:31]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:43:31]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:31]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:31] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:31]
fimgstat clobber=Y infile=product/P0136020101OMS401SIMAGE1000.FIT max=0 mean=0 min=0 mode=ql num=0 \
outfile=intermediate/OMImageAnalyse-om-3-OSW_1_sky_image_statistics-S40100000000000.ascii rms=0 sum=0 threshlo=INDEF threshup=INDEF \
xmax=0 xmin=0 ymax=0 ymin=0
# # [OUTPUT] [2024-11-30T23:43:31]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:43:31] Task Run Time fimgstat 0.0205221176147461s
#
# # [INFO] [2024-11-30T23:43:31] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMS401SIMAGE1000.FIT\
#     --outfile=product/P0136020101OMS401SIMAGE1000.PNG
# [COMMAND] [2024-11-30T23:43:31]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:31]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:31] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:31]
implot.py --fitsImage=product/P0136020101OMS401SIMAGE1000.FIT --outfile=product/P0136020101OMS401SIMAGE1000.PNG
# # [OUTPUT] [2024-11-30T23:43:33] Image shape. y,x: (948, 635) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (947, 634) x/y ratio: 0.67 
# # [INFO] [2024-11-30T23:43:33] Task Run Time implot.py 2.49562811851501s
#
# # [INFO] [2024-11-30T23:43:33] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:43:33] 0 images to process.
# # [INFO] [2024-11-30T23:43:33] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:43:33] 0 images to process.
# # [INFO] [2024-11-30T23:43:33] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:43:33] 0 images to process.
# # [INFO] [2024-11-30T23:43:33] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:43:33] 0 images to process.
# # [INFO] [2024-11-30T23:43:33] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:43:33] 0 images to process.
# # [INFO] [2024-11-30T23:43:33] All images processed
# # [INFO] [2024-11-30T23:43:33] Writing accounting information
# # [INFO] [2024-11-30T23:43:33] DEBUG: sourcedetails array: $VAR1 = [
# 'product/P0136020101OMS401SWSRLI0000.FIT|USER|S ',
# 'product/P0136020101OMS401SWSRLI1000.FIT|USER|S '
# ]; 
# # [INFO] [2024-11-30T23:43:33] DEBUG: skyimagedetails array: $VAR1 = [
# 'product/P0136020101OMS401SIMAGE0000.FIT|USER|S|2.12000000000000E+03|S401 ',
# 'product/P0136020101OMS401SIMAGE1000.FIT|USER|S|2.12000000000000E+03|S401 '
# ]; 
# # [INFO] [2024-11-30T23:43:33] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:43:33] Instrument: om
# # [INFO] [2024-11-30T23:43:33] Stream no.: 0004
# # [INFO] [2024-11-30T23:43:33] Module version number: 3.28
# # [INFO] [2024-11-30T23:43:33] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:43:33] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:43:33] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:43:33] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:43:33] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:43:33] Found 2 Image mode images.
# # [INFO] [2024-11-30T23:43:33] Analysing odf/0629_0136020101_OMS40200IMI.FIT for image identification
# # [INFO] [2024-11-30T23:43:33] Identified mode: USER
# # [INFO] [2024-11-30T23:43:33] Analysing odf/0629_0136020101_OMS40201IMI.FIT for image identification
# # [INFO] [2024-11-30T23:43:33] Identified mode: USER
# # [INFO] [2024-11-30T23:43:33] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:43:33] Processing USER Images.
# # [INFO] [2024-11-30T23:43:33] 2 images to process.
# # [INFO] [2024-11-30T23:43:33] Processing S402:0:odf/0629_0136020101_OMS40200IMI.FIT
# [COMMAND] [2024-11-30T23:43:33]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:33]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:33] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:33]
omprep modeset=0 nphset=odf/0629_0136020101_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-4-Raw_Image-S40200000000000.fits \
pehset=odf/0629_0136020101_OMX00000PEH.FIT set=odf/0629_0136020101_OMS40200IMI.FIT wdxset=odf/0629_0136020101_OMS40200WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:33]
# # [INFO] [2024-11-30T23:43:33] Task Run Time omprep 0.10001015663147s
#
# # [INFO] [2024-11-30T23:43:33] Retrieving FILTER value
# # [INFO] [2024-11-30T23:43:33] FILTER = S
# # [INFO] [2024-11-30T23:43:33] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:43:33] EXPOSURE = 2.12000000000000E+03
# [COMMAND] [2024-11-30T23:43:33]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:33]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:33] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:33]
omcosflag set=intermediate/OMImageAnalyse-om-4-Raw_Image-S40200000000000.fits \
thxset=intermediate/OMExpAnalyse-om-4-omprep_tracking_history-S40200000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:34]
# # [INFO] [2024-11-30T23:43:34] Task Run Time omcosflag 0.252665042877197s
#
# [COMMAND] [2024-11-30T23:43:34]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:34]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:34] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:34]
omflatfield inorbitflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits \
outset=intermediate/OMImageAnalyse-om-4-OSW_Flat_Fielded_Image-S40200000000000.fits \
set=intermediate/OMImageAnalyse-om-4-Raw_Image-S40200000000000.fits \
thxset=intermediate/OMExpAnalyse-om-4-omprep_tracking_history-S40200000000000.fits \
tsflatset=intermediate/OMImageAnalyse-om-4-OSW_Flat_Field-S40200000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:34]
# # [INFO] [2024-11-30T23:43:34] Task Run Time omflatfield 0.0445160865783691s
#
# [COMMAND] [2024-11-30T23:43:34]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:34]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:34] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:34]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-4-OSW_MODULO_8_IMAGE-S40200000000000.fits nbox=16 nsig=6 \
outset=product/P0136020101OMS402IMAGE_0000.FIT set=intermediate/OMImageAnalyse-om-4-OSW_Flat_Fielded_Image-S40200000000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:43:34] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:43:34] Task Run Time ommodmap 0.701817989349365s
#
# [COMMAND] [2024-11-30T23:43:34]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:34]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:34] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:34]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS402IMAGE_0000.FIT set=product/P0136020101OMS402IMAGE_0000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:43:35] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS402IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:43:35] Task Run Time omqualitymap 0.0388031005859375s
#
# [COMMAND] [2024-11-30T23:43:35]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:35]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:35] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:35]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0136020101OMS402SWSRLI0000.FIT \
regionfile=product/P0136020101OMS402SWSREG0000.ASC set=product/P0136020101OMS402IMAGE_0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:37]
# # [INFO] [2024-11-30T23:43:37] Task Run Time omdetect 2.09774899482727s
#
# [COMMAND] [2024-11-30T23:43:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:37]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:37]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS402IMAGE_0000.FIT set=product/P0136020101OMS402IMAGE_0000.FIT \
srclistset=product/P0136020101OMS402SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:37] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS402SWSRLI0000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS402IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS402SWSRLI0000.FIT; 
# # [INFO] [2024-11-30T23:43:37] Task Run Time omqualitymap 0.0976219177246094s
#
# [COMMAND] [2024-11-30T23:43:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:37]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:37]
ommag set=product/P0136020101OMS402SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:37] ** ommag: warning (No sources in source-list file), The number of sources : 0 
# # [INFO] [2024-11-30T23:43:37] Task Run Time ommag 0.058765172958374s
#
# [COMMAND] [2024-11-30T23:43:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:37]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:37]
omatt catfile=product/P0136020101OBX000REFCAT0000.FIT ppsoswset=product/P0136020101OMS402SIMAGE0000.FIT \
set=product/P0136020101OMS402IMAGE_0000.FIT sourcelistset=product/P0136020101OMS402SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:43:38] ** omatt: warning (Too few sources for astrometry (0)), Need at least 5 
# # [INFO] [2024-11-30T23:43:38] Task Run Time omatt 1.25060510635376s
#
# [COMMAND] [2024-11-30T23:43:38]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:43:38]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:38]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:38] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:38]
fimgstat clobber=Y infile=product/P0136020101OMS402SIMAGE0000.FIT max=0 mean=0 min=0 mode=ql num=0 \
outfile=intermediate/OMImageAnalyse-om-4-OSW_0_sky_image_statistics-S40200000000000.ascii rms=0 sum=0 threshlo=INDEF threshup=INDEF \
xmax=0 xmin=0 ymax=0 ymin=0
# # [OUTPUT] [2024-11-30T23:43:38]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:43:38] Task Run Time fimgstat 0.0422749519348145s
#
# # [INFO] [2024-11-30T23:43:38] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMS402SIMAGE0000.FIT\
#     --outfile=product/P0136020101OMS402SIMAGE0000.PNG
# [COMMAND] [2024-11-30T23:43:38]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:38]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:38] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:38]
implot.py --fitsImage=product/P0136020101OMS402SIMAGE0000.FIT --outfile=product/P0136020101OMS402SIMAGE0000.PNG
# # [OUTPUT] [2024-11-30T23:43:41] Image shape. y,x: (299, 296) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (298, 295) x/y ratio: 0.99 
# # [INFO] [2024-11-30T23:43:41] Task Run Time implot.py 2.75365900993347s
#
# # [INFO] [2024-11-30T23:43:41] Processing S402:1:odf/0629_0136020101_OMS40201IMI.FIT
# [COMMAND] [2024-11-30T23:43:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:41]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:41]
omprep modeset=0 nphset=odf/0629_0136020101_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-4-Raw_Image-S40200010000000.fits \
pehset=odf/0629_0136020101_OMX00000PEH.FIT set=odf/0629_0136020101_OMS40201IMI.FIT wdxset=odf/0629_0136020101_OMS40200WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:41]
# # [INFO] [2024-11-30T23:43:41] Task Run Time omprep 0.147599935531616s
#
# # [INFO] [2024-11-30T23:43:41] Retrieving FILTER value
# # [INFO] [2024-11-30T23:43:41] FILTER = S
# # [INFO] [2024-11-30T23:43:41] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:43:41] EXPOSURE = 2.12000000000000E+03
# [COMMAND] [2024-11-30T23:43:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:41]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:41]
omcosflag set=intermediate/OMImageAnalyse-om-4-Raw_Image-S40200010000000.fits \
thxset=intermediate/OMExpAnalyse-om-4-omprep_tracking_history-S40200000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:41]
# # [INFO] [2024-11-30T23:43:41] Task Run Time omcosflag 0.21380090713501s
#
# [COMMAND] [2024-11-30T23:43:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:41]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:41]
omflatfield inorbitflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits \
outset=intermediate/OMImageAnalyse-om-4-OSW_Flat_Fielded_Image-S40200010000000.fits \
set=intermediate/OMImageAnalyse-om-4-Raw_Image-S40200010000000.fits \
thxset=intermediate/OMExpAnalyse-om-4-omprep_tracking_history-S40200000000000.fits \
tsflatset=intermediate/OMImageAnalyse-om-4-OSW_Flat_Field-S40200010000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:41]
# # [INFO] [2024-11-30T23:43:41] Task Run Time omflatfield 0.078589916229248s
#
# [COMMAND] [2024-11-30T23:43:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:41]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:41]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-4-OSW_MODULO_8_IMAGE-S40200010000000.fits nbox=16 nsig=6 \
outset=product/P0136020101OMS402IMAGE_1000.FIT set=intermediate/OMImageAnalyse-om-4-OSW_Flat_Fielded_Image-S40200010000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:43:44] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:43:44] Task Run Time ommodmap 3.06929898262024s
#
# [COMMAND] [2024-11-30T23:43:44]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:44]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:44] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:44]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS402IMAGE_1000.FIT set=product/P0136020101OMS402IMAGE_1000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:43:44] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS402IMAGE_1000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:43:44] Task Run Time omqualitymap 0.127997875213623s
#
# [COMMAND] [2024-11-30T23:43:44]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:44]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:44] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:44]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0136020101OMS402SWSRLI1000.FIT \
regionfile=product/P0136020101OMS402SWSREG1000.ASC set=product/P0136020101OMS402IMAGE_1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:48]
# # [INFO] [2024-11-30T23:43:48] Task Run Time omdetect 3.73651313781738s
#
# [COMMAND] [2024-11-30T23:43:48]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:48]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:48] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:48]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS402IMAGE_1000.FIT set=product/P0136020101OMS402IMAGE_1000.FIT \
srclistset=product/P0136020101OMS402SWSRLI1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:48] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS402SWSRLI1000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS402IMAGE_1000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS402SWSRLI1000.FIT; 
# # [INFO] [2024-11-30T23:43:48] Task Run Time omqualitymap 0.0859529972076416s
#
# [COMMAND] [2024-11-30T23:43:48]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:48]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:48] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:48]
ommag set=product/P0136020101OMS402SWSRLI1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:48]
# TDP corr factor is: 1.10034692 
# L265 tdpCorrFactor= 1.10034692 
# L348 getting the column data
# In: 261.769531 119.333755 2 220
# X,Y,pdepcorr: 743.539062 281.667511 1.00000000 
# In: 127.956467 79.8512955 2 220
# X,Y,pdepcorr: 475.912933 202.702591 1.00000000 
# In: 386.790680 28.1413136 2 220
# X,Y,pdepcorr: 993.581360 99.2826233 1.00000000 
# In: 431.844269 30.8685188 2 220
# X,Y,pdepcorr: 1083.68848 104.737038 1.00000000 
# In: 779.393982 59.0383720 2 220
# X,Y,pdepcorr: 1778.78796 161.076752 1.00000000 
# In: 709.209900 22.6605015 2 220
# X,Y,pdepcorr: 1638.41980 88.3209991 1.00000000 
# In: 560.811401 85.5528717 2 220
# X,Y,pdepcorr: 1341.62280 214.105743 1.00000000 
# In: 869.353394 182.123962 2 220
# X,Y,pdepcorr: 1958.70679 407.247925 1.00000000 
# # [INFO] [2024-11-30T23:43:48] Task Run Time ommag 0.122207880020142s
#
# [COMMAND] [2024-11-30T23:43:48]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:48]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:48] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:48]
omatt catfile=product/P0136020101OBX000REFCAT0000.FIT ppsoswset=product/P0136020101OMS402SIMAGE1000.FIT \
set=product/P0136020101OMS402IMAGE_1000.FIT sourcelistset=product/P0136020101OMS402SWSRLI1000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:43:53] ** omatt: warning (Too few guide stars for astrometry correction), Catalogue has not been used to\
#     correct positions 
# # [INFO] [2024-11-30T23:43:53] Task Run Time omatt 4.78497409820557s
#
# [COMMAND] [2024-11-30T23:43:53]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:43:53]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:53]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:53] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:53]
fimgstat clobber=Y infile=product/P0136020101OMS402SIMAGE1000.FIT max=0 mean=0 min=0 mode=ql num=0 \
outfile=intermediate/OMImageAnalyse-om-4-OSW_1_sky_image_statistics-S40200000000000.ascii rms=0 sum=0 threshlo=INDEF threshup=INDEF \
xmax=0 xmin=0 ymax=0 ymin=0
# # [OUTPUT] [2024-11-30T23:43:53]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:43:53] Task Run Time fimgstat 0.0226790904998779s
#
# # [INFO] [2024-11-30T23:43:53] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMS402SIMAGE1000.FIT\
#     --outfile=product/P0136020101OMS402SIMAGE1000.PNG
# [COMMAND] [2024-11-30T23:43:53]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:53]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:53] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:53]
implot.py --fitsImage=product/P0136020101OMS402SIMAGE1000.FIT --outfile=product/P0136020101OMS402SIMAGE1000.PNG
# # [OUTPUT] [2024-11-30T23:43:55] Image shape. y,x: (618, 911) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (617, 910) x/y ratio: 1.47 
# # [INFO] [2024-11-30T23:43:55] Task Run Time implot.py 2.04086303710938s
#
# # [INFO] [2024-11-30T23:43:55] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:43:55] 0 images to process.
# # [INFO] [2024-11-30T23:43:55] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:43:55] 0 images to process.
# # [INFO] [2024-11-30T23:43:55] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:43:55] 0 images to process.
# # [INFO] [2024-11-30T23:43:55] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:43:55] 0 images to process.
# # [INFO] [2024-11-30T23:43:55] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:43:55] 0 images to process.
# # [INFO] [2024-11-30T23:43:55] All images processed
# # [INFO] [2024-11-30T23:43:55] Writing accounting information
# # [INFO] [2024-11-30T23:43:55] DEBUG: sourcedetails array: $VAR1 = [
# 'product/P0136020101OMS402SWSRLI0000.FIT|USER|S ',
# 'product/P0136020101OMS402SWSRLI1000.FIT|USER|S '
# ]; 
# # [INFO] [2024-11-30T23:43:55] DEBUG: skyimagedetails array: $VAR1 = [
# 'product/P0136020101OMS402SIMAGE0000.FIT|USER|S|2.12000000000000E+03|S402 ',
# 'product/P0136020101OMS402SIMAGE1000.FIT|USER|S|2.12000000000000E+03|S402 '
# ]; 
# # [INFO] [2024-11-30T23:43:55] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:43:55] Instrument: om
# # [INFO] [2024-11-30T23:43:55] Stream no.: 0005
# # [INFO] [2024-11-30T23:43:55] Module version number: 3.28
# # [INFO] [2024-11-30T23:43:55] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:43:55] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:43:55] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:43:55] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:43:55] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:43:55] Found 2 Image mode images.
# # [INFO] [2024-11-30T23:43:55] Analysing odf/0629_0136020101_OMS40300IMI.FIT for image identification
# # [INFO] [2024-11-30T23:43:55] Identified mode: USER
# # [INFO] [2024-11-30T23:43:55] Analysing odf/0629_0136020101_OMS40301IMI.FIT for image identification
# # [INFO] [2024-11-30T23:43:55] Identified mode: USER
# # [INFO] [2024-11-30T23:43:55] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:43:55] Processing USER Images.
# # [INFO] [2024-11-30T23:43:55] 2 images to process.
# # [INFO] [2024-11-30T23:43:55] Processing S403:0:odf/0629_0136020101_OMS40300IMI.FIT
# [COMMAND] [2024-11-30T23:43:55]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:55]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:55] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:55]
omprep modeset=0 nphset=odf/0629_0136020101_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-5-Raw_Image-S40300000000000.fits \
pehset=odf/0629_0136020101_OMX00000PEH.FIT set=odf/0629_0136020101_OMS40300IMI.FIT wdxset=odf/0629_0136020101_OMS40300WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:55]
# # [INFO] [2024-11-30T23:43:55] Task Run Time omprep 0.104377031326294s
#
# # [INFO] [2024-11-30T23:43:55] Retrieving FILTER value
# # [INFO] [2024-11-30T23:43:55] FILTER = S
# # [INFO] [2024-11-30T23:43:55] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:43:55] EXPOSURE = 2.12000000000000E+03
# [COMMAND] [2024-11-30T23:43:55]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:55]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:55] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:55]
omcosflag set=intermediate/OMImageAnalyse-om-5-Raw_Image-S40300000000000.fits \
thxset=intermediate/OMExpAnalyse-om-5-omprep_tracking_history-S40300000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:56]
# # [INFO] [2024-11-30T23:43:56] Task Run Time omcosflag 0.24114990234375s
#
# [COMMAND] [2024-11-30T23:43:56]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:56]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:56] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:56]
omflatfield inorbitflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits \
outset=intermediate/OMImageAnalyse-om-5-OSW_Flat_Fielded_Image-S40300000000000.fits \
set=intermediate/OMImageAnalyse-om-5-Raw_Image-S40300000000000.fits \
thxset=intermediate/OMExpAnalyse-om-5-omprep_tracking_history-S40300000000000.fits \
tsflatset=intermediate/OMImageAnalyse-om-5-OSW_Flat_Field-S40300000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:43:56]
# # [INFO] [2024-11-30T23:43:56] Task Run Time omflatfield 0.062283992767334s
#
# [COMMAND] [2024-11-30T23:43:56]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:56]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:56] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:56]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-5-OSW_MODULO_8_IMAGE-S40300000000000.fits nbox=16 nsig=6 \
outset=product/P0136020101OMS403IMAGE_0000.FIT set=intermediate/OMImageAnalyse-om-5-OSW_Flat_Fielded_Image-S40300000000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:43:56] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:43:56] Task Run Time ommodmap 0.68246603012085s
#
# [COMMAND] [2024-11-30T23:43:56]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:56]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:56] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:56]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS403IMAGE_0000.FIT set=product/P0136020101OMS403IMAGE_0000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:43:56] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS403IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:43:56] Task Run Time omqualitymap 0.0572550296783447s
#
# [COMMAND] [2024-11-30T23:43:56]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:56]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:56] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:56]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0136020101OMS403SWSRLI0000.FIT \
regionfile=product/P0136020101OMS403SWSREG0000.ASC set=product/P0136020101OMS403IMAGE_0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:59]
# # [INFO] [2024-11-30T23:43:59] Task Run Time omdetect 2.04714202880859s
#
# [COMMAND] [2024-11-30T23:43:59]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:59]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:59] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:59]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS403IMAGE_0000.FIT set=product/P0136020101OMS403IMAGE_0000.FIT \
srclistset=product/P0136020101OMS403SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:59] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS403SWSRLI0000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS403IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS403SWSRLI0000.FIT; 
# # [INFO] [2024-11-30T23:43:59] Task Run Time omqualitymap 0.0512850284576416s
#
# [COMMAND] [2024-11-30T23:43:59]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:59]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:59] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:59]
ommag set=product/P0136020101OMS403SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:43:59] ** ommag: warning (No sources in source-list file), The number of sources : 0 
# # [INFO] [2024-11-30T23:43:59] Task Run Time ommag 0.0358390808105469s
#
# [COMMAND] [2024-11-30T23:43:59]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:43:59]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:43:59] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:43:59]
omatt catfile=product/P0136020101OBX000REFCAT0000.FIT ppsoswset=product/P0136020101OMS403SIMAGE0000.FIT \
set=product/P0136020101OMS403IMAGE_0000.FIT sourcelistset=product/P0136020101OMS403SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:44:00] ** omatt: warning (Too few sources for astrometry (0)), Need at least 5 
# # [INFO] [2024-11-30T23:44:00] Task Run Time omatt 1.29064893722534s
#
# [COMMAND] [2024-11-30T23:44:00]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:44:00]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:00]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:00] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:00]
fimgstat clobber=Y infile=product/P0136020101OMS403SIMAGE0000.FIT max=0 mean=0 min=0 mode=ql num=0 \
outfile=intermediate/OMImageAnalyse-om-5-OSW_0_sky_image_statistics-S40300000000000.ascii rms=0 sum=0 threshlo=INDEF threshup=INDEF \
xmax=0 xmin=0 ymax=0 ymin=0
# # [OUTPUT] [2024-11-30T23:44:00]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:44:00] Task Run Time fimgstat 0.0186240673065186s
#
# # [INFO] [2024-11-30T23:44:00] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMS403SIMAGE0000.FIT\
#     --outfile=product/P0136020101OMS403SIMAGE0000.PNG
# [COMMAND] [2024-11-30T23:44:00]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:00]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:00] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:00]
implot.py --fitsImage=product/P0136020101OMS403SIMAGE0000.FIT --outfile=product/P0136020101OMS403SIMAGE0000.PNG
# # [OUTPUT] [2024-11-30T23:44:02] Image shape. y,x: (299, 296) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (298, 295) x/y ratio: 0.99 
# # [INFO] [2024-11-30T23:44:02] Task Run Time implot.py 2.44244599342346s
#
# # [INFO] [2024-11-30T23:44:02] Processing S403:1:odf/0629_0136020101_OMS40301IMI.FIT
# [COMMAND] [2024-11-30T23:44:02]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:02]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:02] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:02]
omprep modeset=0 nphset=odf/0629_0136020101_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-5-Raw_Image-S40300010000000.fits \
pehset=odf/0629_0136020101_OMX00000PEH.FIT set=odf/0629_0136020101_OMS40301IMI.FIT wdxset=odf/0629_0136020101_OMS40300WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:03]
# # [INFO] [2024-11-30T23:44:03] Task Run Time omprep 0.162901878356934s
#
# # [INFO] [2024-11-30T23:44:03] Retrieving FILTER value
# # [INFO] [2024-11-30T23:44:03] FILTER = S
# # [INFO] [2024-11-30T23:44:03] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:44:03] EXPOSURE = 2.12000000000000E+03
# [COMMAND] [2024-11-30T23:44:03]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:03]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:03] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:03]
omcosflag set=intermediate/OMImageAnalyse-om-5-Raw_Image-S40300010000000.fits \
thxset=intermediate/OMExpAnalyse-om-5-omprep_tracking_history-S40300000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:44:03]
# # [INFO] [2024-11-30T23:44:03] Task Run Time omcosflag 0.220961809158325s
#
# [COMMAND] [2024-11-30T23:44:03]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:03]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:03] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:03]
omflatfield inorbitflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits \
outset=intermediate/OMImageAnalyse-om-5-OSW_Flat_Fielded_Image-S40300010000000.fits \
set=intermediate/OMImageAnalyse-om-5-Raw_Image-S40300010000000.fits \
thxset=intermediate/OMExpAnalyse-om-5-omprep_tracking_history-S40300000000000.fits \
tsflatset=intermediate/OMImageAnalyse-om-5-OSW_Flat_Field-S40300010000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:44:03]
# # [INFO] [2024-11-30T23:44:03] Task Run Time omflatfield 0.0717658996582031s
#
# [COMMAND] [2024-11-30T23:44:03]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:03]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:03] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:03]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-5-OSW_MODULO_8_IMAGE-S40300010000000.fits nbox=16 nsig=6 \
outset=product/P0136020101OMS403IMAGE_1000.FIT set=intermediate/OMImageAnalyse-om-5-OSW_Flat_Fielded_Image-S40300010000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:44:06] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:44:06] Task Run Time ommodmap 2.94035911560059s
#
# [COMMAND] [2024-11-30T23:44:06]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:06]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:06] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:06]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS403IMAGE_1000.FIT set=product/P0136020101OMS403IMAGE_1000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:44:06] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS403IMAGE_1000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:44:06] Task Run Time omqualitymap 0.0747499465942383s
#
# [COMMAND] [2024-11-30T23:44:06]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:06]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:06] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:06]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0136020101OMS403SWSRLI1000.FIT \
regionfile=product/P0136020101OMS403SWSREG1000.ASC set=product/P0136020101OMS403IMAGE_1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:10]
# # [INFO] [2024-11-30T23:44:10] Task Run Time omdetect 3.67215013504028s
#
# [COMMAND] [2024-11-30T23:44:10]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:10]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:10] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:10]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS403IMAGE_1000.FIT set=product/P0136020101OMS403IMAGE_1000.FIT \
srclistset=product/P0136020101OMS403SWSRLI1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:10] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS403SWSRLI1000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS403IMAGE_1000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS403SWSRLI1000.FIT; 
# # [INFO] [2024-11-30T23:44:10] Task Run Time omqualitymap 0.104501008987427s
#
# [COMMAND] [2024-11-30T23:44:10]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:10]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:10] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:10]
ommag set=product/P0136020101OMS403SWSRLI1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:10]
# TDP corr factor is: 1.10034895 
# L265 tdpCorrFactor= 1.10034895 
# L348 getting the column data
# In: 42.0980339 586.698242 2 1500
# X,Y,pdepcorr: 1584.19604 1408.39648 1.00000000 
# In: 82.8040924 369.933960 2 1500
# X,Y,pdepcorr: 1665.60815 974.867920 1.00000000 
# In: 114.825279 503.137573 2 1500
# X,Y,pdepcorr: 1729.65051 1241.27515 1.00000000 
# In: 229.219940 86.1918869 2 1500
# X,Y,pdepcorr: 1958.43994 407.383789 1.00000000 
# # [INFO] [2024-11-30T23:44:10] Task Run Time ommag 0.0656599998474121s
#
# [COMMAND] [2024-11-30T23:44:10]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:10]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:10] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:10]
omatt catfile=product/P0136020101OBX000REFCAT0000.FIT ppsoswset=product/P0136020101OMS403SIMAGE1000.FIT \
set=product/P0136020101OMS403IMAGE_1000.FIT sourcelistset=product/P0136020101OMS403SWSRLI1000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:44:15] ** omatt: warning (Too few sources for astrometry (4)), Need at least 5 
# # [INFO] [2024-11-30T23:44:15] Task Run Time omatt 4.86909294128418s
#
# [COMMAND] [2024-11-30T23:44:15]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:44:15]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:15]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:15] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:15]
fimgstat clobber=Y infile=product/P0136020101OMS403SIMAGE1000.FIT max=0 mean=0 min=0 mode=ql num=0 \
outfile=intermediate/OMImageAnalyse-om-5-OSW_1_sky_image_statistics-S40300000000000.ascii rms=0 sum=0 threshlo=INDEF threshup=INDEF \
xmax=0 xmin=0 ymax=0 ymin=0
# # [OUTPUT] [2024-11-30T23:44:15]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:44:15] Task Run Time fimgstat 0.0203051567077637s
#
# # [INFO] [2024-11-30T23:44:15] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMS403SIMAGE1000.FIT\
#     --outfile=product/P0136020101OMS403SIMAGE1000.PNG
# [COMMAND] [2024-11-30T23:44:15]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:15]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:15] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:15]
implot.py --fitsImage=product/P0136020101OMS403SIMAGE1000.FIT --outfile=product/P0136020101OMS403SIMAGE1000.PNG
# # [OUTPUT] [2024-11-30T23:44:17] Image shape. y,x: (946, 650) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (945, 649) x/y ratio: 0.69 
# # [INFO] [2024-11-30T23:44:17] Task Run Time implot.py 2.35940718650818s
#
# # [INFO] [2024-11-30T23:44:17] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:44:17] 0 images to process.
# # [INFO] [2024-11-30T23:44:17] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:44:17] 0 images to process.
# # [INFO] [2024-11-30T23:44:17] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:44:17] 0 images to process.
# # [INFO] [2024-11-30T23:44:17] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:44:17] 0 images to process.
# # [INFO] [2024-11-30T23:44:17] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:44:17] 0 images to process.
# # [INFO] [2024-11-30T23:44:17] All images processed
# # [INFO] [2024-11-30T23:44:17] Writing accounting information
# # [INFO] [2024-11-30T23:44:17] DEBUG: sourcedetails array: $VAR1 = [
# 'product/P0136020101OMS403SWSRLI0000.FIT|USER|S ',
# 'product/P0136020101OMS403SWSRLI1000.FIT|USER|S '
# ]; 
# # [INFO] [2024-11-30T23:44:17] DEBUG: skyimagedetails array: $VAR1 = [
# 'product/P0136020101OMS403SIMAGE0000.FIT|USER|S|2.12000000000000E+03|S403 ',
# 'product/P0136020101OMS403SIMAGE1000.FIT|USER|S|2.12000000000000E+03|S403 '
# ]; 
# # [INFO] [2024-11-30T23:44:17] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:44:17] Instrument: om
# # [INFO] [2024-11-30T23:44:17] Stream no.: 0006
# # [INFO] [2024-11-30T23:44:17] Module version number: 3.28
# # [INFO] [2024-11-30T23:44:17] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:44:17] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:44:17] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:44:17] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:44:17] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:44:17] Found 2 Image mode images.
# # [INFO] [2024-11-30T23:44:17] Analysing odf/0629_0136020101_OMS40400IMI.FIT for image identification
# # [INFO] [2024-11-30T23:44:17] Identified mode: USER
# # [INFO] [2024-11-30T23:44:17] Analysing odf/0629_0136020101_OMS40401IMI.FIT for image identification
# # [INFO] [2024-11-30T23:44:17] Identified mode: USER
# # [INFO] [2024-11-30T23:44:17] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:44:17] Processing USER Images.
# # [INFO] [2024-11-30T23:44:17] 2 images to process.
# # [INFO] [2024-11-30T23:44:17] Processing S404:0:odf/0629_0136020101_OMS40400IMI.FIT
# [COMMAND] [2024-11-30T23:44:17]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:17]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:17] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:17]
omprep modeset=0 nphset=odf/0629_0136020101_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-6-Raw_Image-S40400000000000.fits \
pehset=odf/0629_0136020101_OMX00000PEH.FIT set=odf/0629_0136020101_OMS40400IMI.FIT wdxset=odf/0629_0136020101_OMS40400WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:17]
# # [INFO] [2024-11-30T23:44:17] Task Run Time omprep 0.151242017745972s
#
# # [INFO] [2024-11-30T23:44:17] Retrieving FILTER value
# # [INFO] [2024-11-30T23:44:17] FILTER = S
# # [INFO] [2024-11-30T23:44:17] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:44:17] EXPOSURE = 2.12000000000000E+03
# [COMMAND] [2024-11-30T23:44:17]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:17]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:17] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:17]
omcosflag set=intermediate/OMImageAnalyse-om-6-Raw_Image-S40400000000000.fits \
thxset=intermediate/OMExpAnalyse-om-6-omprep_tracking_history-S40400000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:44:17]
# # [INFO] [2024-11-30T23:44:17] Task Run Time omcosflag 0.22606086730957s
#
# [COMMAND] [2024-11-30T23:44:17]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:17]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:17] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:17]
omflatfield inorbitflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits \
outset=intermediate/OMImageAnalyse-om-6-OSW_Flat_Fielded_Image-S40400000000000.fits \
set=intermediate/OMImageAnalyse-om-6-Raw_Image-S40400000000000.fits \
thxset=intermediate/OMExpAnalyse-om-6-omprep_tracking_history-S40400000000000.fits \
tsflatset=intermediate/OMImageAnalyse-om-6-OSW_Flat_Field-S40400000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:44:17]
# # [INFO] [2024-11-30T23:44:17] Task Run Time omflatfield 0.0531730651855469s
#
# [COMMAND] [2024-11-30T23:44:17]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:17]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:17] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:17]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-6-OSW_MODULO_8_IMAGE-S40400000000000.fits nbox=16 nsig=6 \
outset=product/P0136020101OMS404IMAGE_0000.FIT set=intermediate/OMImageAnalyse-om-6-OSW_Flat_Fielded_Image-S40400000000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:44:18] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:44:18] Task Run Time ommodmap 0.677819013595581s
#
# [COMMAND] [2024-11-30T23:44:18]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:18]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:18] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:18]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS404IMAGE_0000.FIT set=product/P0136020101OMS404IMAGE_0000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:44:18] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS404IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:44:18] Task Run Time omqualitymap 0.0858430862426758s
#
# [COMMAND] [2024-11-30T23:44:18]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:18]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:18] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:18]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0136020101OMS404SWSRLI0000.FIT \
regionfile=product/P0136020101OMS404SWSREG0000.ASC set=product/P0136020101OMS404IMAGE_0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:20]
# # [INFO] [2024-11-30T23:44:20] Task Run Time omdetect 2.05684494972229s
#
# [COMMAND] [2024-11-30T23:44:20]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:20]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:20] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:20]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS404IMAGE_0000.FIT set=product/P0136020101OMS404IMAGE_0000.FIT \
srclistset=product/P0136020101OMS404SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:20] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS404SWSRLI0000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS404IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS404SWSRLI0000.FIT; 
# # [INFO] [2024-11-30T23:44:20] Task Run Time omqualitymap 0.0533938407897949s
#
# [COMMAND] [2024-11-30T23:44:20]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:20]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:20] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:20]
ommag set=product/P0136020101OMS404SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:20] ** ommag: warning (No sources in source-list file), The number of sources : 0 
# # [INFO] [2024-11-30T23:44:20] Task Run Time ommag 0.026576042175293s
#
# [COMMAND] [2024-11-30T23:44:20]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:20]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:20] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:20]
omatt catfile=product/P0136020101OBX000REFCAT0000.FIT ppsoswset=product/P0136020101OMS404SIMAGE0000.FIT \
set=product/P0136020101OMS404IMAGE_0000.FIT sourcelistset=product/P0136020101OMS404SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:44:22] ** omatt: warning (Too few sources for astrometry (0)), Need at least 5 
# # [INFO] [2024-11-30T23:44:22] Task Run Time omatt 1.19118690490723s
#
# [COMMAND] [2024-11-30T23:44:22]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:44:22]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:22]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:22] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:22]
fimgstat clobber=Y infile=product/P0136020101OMS404SIMAGE0000.FIT max=0 mean=0 min=0 mode=ql num=0 \
outfile=intermediate/OMImageAnalyse-om-6-OSW_0_sky_image_statistics-S40400000000000.ascii rms=0 sum=0 threshlo=INDEF threshup=INDEF \
xmax=0 xmin=0 ymax=0 ymin=0
# # [OUTPUT] [2024-11-30T23:44:22]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:44:22] Task Run Time fimgstat 0.0204291343688965s
#
# # [INFO] [2024-11-30T23:44:22] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMS404SIMAGE0000.FIT\
#     --outfile=product/P0136020101OMS404SIMAGE0000.PNG
# [COMMAND] [2024-11-30T23:44:22]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:22]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:22] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:22]
implot.py --fitsImage=product/P0136020101OMS404SIMAGE0000.FIT --outfile=product/P0136020101OMS404SIMAGE0000.PNG
# # [OUTPUT] [2024-11-30T23:44:24] Image shape. y,x: (299, 296) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (298, 295) x/y ratio: 0.99 
# # [INFO] [2024-11-30T23:44:24] Task Run Time implot.py 2.38872790336609s
#
# # [INFO] [2024-11-30T23:44:24] Processing S404:1:odf/0629_0136020101_OMS40401IMI.FIT
# [COMMAND] [2024-11-30T23:44:24]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:24]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:24] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:24]
omprep modeset=0 nphset=odf/0629_0136020101_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-6-Raw_Image-S40400010000000.fits \
pehset=odf/0629_0136020101_OMX00000PEH.FIT set=odf/0629_0136020101_OMS40401IMI.FIT wdxset=odf/0629_0136020101_OMS40400WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:24]
# # [INFO] [2024-11-30T23:44:24] Task Run Time omprep 0.16682505607605s
#
# # [INFO] [2024-11-30T23:44:24] Retrieving FILTER value
# # [INFO] [2024-11-30T23:44:24] FILTER = S
# # [INFO] [2024-11-30T23:44:24] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:44:24] EXPOSURE = 2.12000000000000E+03
# [COMMAND] [2024-11-30T23:44:24]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:24]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:24] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:24]
omcosflag set=intermediate/OMImageAnalyse-om-6-Raw_Image-S40400010000000.fits \
thxset=intermediate/OMExpAnalyse-om-6-omprep_tracking_history-S40400000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:44:24]
# # [INFO] [2024-11-30T23:44:24] Task Run Time omcosflag 0.218697071075439s
#
# [COMMAND] [2024-11-30T23:44:24]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:24]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:24] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:24]
omflatfield inorbitflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits \
outset=intermediate/OMImageAnalyse-om-6-OSW_Flat_Fielded_Image-S40400010000000.fits \
set=intermediate/OMImageAnalyse-om-6-Raw_Image-S40400010000000.fits \
thxset=intermediate/OMExpAnalyse-om-6-omprep_tracking_history-S40400000000000.fits \
tsflatset=intermediate/OMImageAnalyse-om-6-OSW_Flat_Field-S40400010000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:44:24]
# # [INFO] [2024-11-30T23:44:24] Task Run Time omflatfield 0.125951051712036s
#
# [COMMAND] [2024-11-30T23:44:24]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:24]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:24] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:24]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-6-OSW_MODULO_8_IMAGE-S40400010000000.fits nbox=16 nsig=6 \
outset=product/P0136020101OMS404IMAGE_1000.FIT set=intermediate/OMImageAnalyse-om-6-OSW_Flat_Fielded_Image-S40400010000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:44:28] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:44:28] Task Run Time ommodmap 3.23343205451965s
#
# [COMMAND] [2024-11-30T23:44:28]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:28]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:28] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:28]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS404IMAGE_1000.FIT set=product/P0136020101OMS404IMAGE_1000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:44:28] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS404IMAGE_1000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:44:28] Task Run Time omqualitymap 0.0908081531524658s
#
# [COMMAND] [2024-11-30T23:44:28]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:28]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:28] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:28]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0136020101OMS404SWSRLI1000.FIT \
regionfile=product/P0136020101OMS404SWSREG1000.ASC set=product/P0136020101OMS404IMAGE_1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:32]
# # [INFO] [2024-11-30T23:44:32] Task Run Time omdetect 4.28332805633545s
#
# [COMMAND] [2024-11-30T23:44:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:32]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:32]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS404IMAGE_1000.FIT set=product/P0136020101OMS404IMAGE_1000.FIT \
srclistset=product/P0136020101OMS404SWSRLI1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:32] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS404SWSRLI1000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS404IMAGE_1000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS404SWSRLI1000.FIT; 
# # [INFO] [2024-11-30T23:44:32] Task Run Time omqualitymap 0.146419048309326s
#
# [COMMAND] [2024-11-30T23:44:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:32]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:32]
ommag set=product/P0136020101OMS404SWSRLI1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:32]
# TDP corr factor is: 1.10035086 
# L265 tdpCorrFactor= 1.10035086 
# L348 getting the column data
# In: 251.094604 1.73126876 2 12
# X,Y,pdepcorr: 514.189209 1486.46252 1.00000000 
# In: 90.0921783 61.3752441 2 12
# X,Y,pdepcorr: 192.184357 1605.75049 1.00000000 
# In: 397.186951 192.699600 2 12
# X,Y,pdepcorr: 806.373901 1868.39917 1.00000000 
# In: 94.9725876 173.736221 2 12
# X,Y,pdepcorr: 201.945175 1830.47241 1.00000000 
# In: 139.321518 162.059113 2 12
# X,Y,pdepcorr: 290.643036 1807.11816 1.00000000 
# In: 244.682922 33.2193260 2 12
# X,Y,pdepcorr: 501.365845 1549.43860 1.00000000 
# In: 333.936798 135.225449 2 12
# X,Y,pdepcorr: 679.873596 1753.45093 1.00000000 
# In: 556.847351 68.0723419 2 12
# X,Y,pdepcorr: 1125.69470 1619.14465 1.00000000 
# In: 217.668335 183.812866 2 12
# X,Y,pdepcorr: 447.336670 1850.62573 1.00000000 
# In: 696.080200 222.787918 2 12
# X,Y,pdepcorr: 1404.16040 1928.57581 1.00000000 
# # [INFO] [2024-11-30T23:44:32] Task Run Time ommag 0.0812969207763672s
#
# [COMMAND] [2024-11-30T23:44:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:32]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:32]
omatt catfile=product/P0136020101OBX000REFCAT0000.FIT ppsoswset=product/P0136020101OMS404SIMAGE1000.FIT \
set=product/P0136020101OMS404IMAGE_1000.FIT sourcelistset=product/P0136020101OMS404SWSRLI1000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:44:38]
# # [INFO] [2024-11-30T23:44:38] Task Run Time omatt 5.61362314224243s
#
# [COMMAND] [2024-11-30T23:44:38]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:44:38]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:38]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:38] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:38]
fimgstat clobber=Y infile=product/P0136020101OMS404SIMAGE1000.FIT max=0 mean=0 min=0 mode=ql num=0 \
outfile=intermediate/OMImageAnalyse-om-6-OSW_1_sky_image_statistics-S40400000000000.ascii rms=0 sum=0 threshlo=INDEF threshup=INDEF \
xmax=0 xmin=0 ymax=0 ymin=0
# # [OUTPUT] [2024-11-30T23:44:38]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:44:38] Task Run Time fimgstat 0.0500259399414062s
#
# # [INFO] [2024-11-30T23:44:38] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMS404SIMAGE1000.FIT\
#     --outfile=product/P0136020101OMS404SIMAGE1000.PNG
# [COMMAND] [2024-11-30T23:44:38]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:38]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:38] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:38]
implot.py --fitsImage=product/P0136020101OMS404SIMAGE1000.FIT --outfile=product/P0136020101OMS404SIMAGE1000.PNG
# # [OUTPUT] [2024-11-30T23:44:41] Image shape. y,x: (633, 931) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (632, 930) x/y ratio: 1.47 
# # [INFO] [2024-11-30T23:44:41] Task Run Time implot.py 2.74619793891907s
#
# # [INFO] [2024-11-30T23:44:41] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:44:41] 0 images to process.
# # [INFO] [2024-11-30T23:44:41] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:44:41] 0 images to process.
# # [INFO] [2024-11-30T23:44:41] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:44:41] 0 images to process.
# # [INFO] [2024-11-30T23:44:41] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:44:41] 0 images to process.
# # [INFO] [2024-11-30T23:44:41] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:44:41] 0 images to process.
# # [INFO] [2024-11-30T23:44:41] All images processed
# # [INFO] [2024-11-30T23:44:41] Writing accounting information
# # [INFO] [2024-11-30T23:44:41] DEBUG: sourcedetails array: $VAR1 = [
# 'product/P0136020101OMS404SWSRLI0000.FIT|USER|S ',
# 'product/P0136020101OMS404SWSRLI1000.FIT|USER|S '
# ]; 
# # [INFO] [2024-11-30T23:44:41] DEBUG: skyimagedetails array: $VAR1 = [
# 'product/P0136020101OMS404SIMAGE0000.FIT|USER|S|2.12000000000000E+03|S404 ',
# 'product/P0136020101OMS404SIMAGE1000.FIT|USER|S|2.12000000000000E+03|S404 '
# ]; 
# # [INFO] [2024-11-30T23:44:41] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:44:41] Instrument: om
# # [INFO] [2024-11-30T23:44:41] Stream no.: 0001
# # [INFO] [2024-11-30T23:44:41] Module version number: 3.28
# # [INFO] [2024-11-30T23:44:41] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:44:41] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:44:41] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:44:41] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:44:41] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:44:41] Found 2 Image mode images.
# # [INFO] [2024-11-30T23:44:41] Analysing odf/0629_0136020101_OMS00600IMI.FIT for image identification
# # [INFO] [2024-11-30T23:44:41] Identified mode: USER
# # [INFO] [2024-11-30T23:44:41] Analysing odf/0629_0136020101_OMS00601IMI.FIT for image identification
# # [INFO] [2024-11-30T23:44:41] Identified mode: USER
# # [INFO] [2024-11-30T23:44:41] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:44:41] Processing USER Images.
# # [INFO] [2024-11-30T23:44:41] 2 images to process.
# # [INFO] [2024-11-30T23:44:41] Processing S006:0:odf/0629_0136020101_OMS00600IMI.FIT
# [COMMAND] [2024-11-30T23:44:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:41]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:41]
omprep modeset=0 nphset=odf/0629_0136020101_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-1-Raw_Image-S00600000000000.fits \
pehset=odf/0629_0136020101_OMX00000PEH.FIT set=odf/0629_0136020101_OMS00600IMI.FIT wdxset=odf/0629_0136020101_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:41]
# # [INFO] [2024-11-30T23:44:41] Task Run Time omprep 0.15873384475708s
#
# # [INFO] [2024-11-30T23:44:41] Retrieving FILTER value
# # [INFO] [2024-11-30T23:44:41] FILTER = S
# # [INFO] [2024-11-30T23:44:41] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:44:41] EXPOSURE = 2.12000000000000E+03
# [COMMAND] [2024-11-30T23:44:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:41]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:41]
omcosflag set=intermediate/OMImageAnalyse-om-1-Raw_Image-S00600000000000.fits \
thxset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00600000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:44:41]
# # [INFO] [2024-11-30T23:44:41] Task Run Time omcosflag 0.217159986495972s
#
# [COMMAND] [2024-11-30T23:44:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:41]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:41]
omflatfield inorbitflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits \
outset=intermediate/OMImageAnalyse-om-1-OSW_Flat_Fielded_Image-S00600000000000.fits \
set=intermediate/OMImageAnalyse-om-1-Raw_Image-S00600000000000.fits \
thxset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00600000000000.fits \
tsflatset=intermediate/OMImageAnalyse-om-1-OSW_Flat_Field-S00600000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:44:41]
# # [INFO] [2024-11-30T23:44:41] Task Run Time omflatfield 0.0632188320159912s
#
# [COMMAND] [2024-11-30T23:44:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:41]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:41]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-1-OSW_MODULO_8_IMAGE-S00600000000000.fits nbox=16 nsig=6 \
outset=product/P0136020101OMS006IMAGE_0000.FIT set=intermediate/OMImageAnalyse-om-1-OSW_Flat_Fielded_Image-S00600000000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:44:42] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:44:42] Task Run Time ommodmap 0.657003879547119s
#
# [COMMAND] [2024-11-30T23:44:42]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:42]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:42] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:42]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS006IMAGE_0000.FIT set=product/P0136020101OMS006IMAGE_0000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:44:42] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS006IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:44:42] Task Run Time omqualitymap 0.0557701587677002s
#
# [COMMAND] [2024-11-30T23:44:42]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:42]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:42] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:42]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0136020101OMS006SWSRLI0000.FIT \
regionfile=product/P0136020101OMS006SWSREG0000.ASC set=product/P0136020101OMS006IMAGE_0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:44]
# # [INFO] [2024-11-30T23:44:44] Task Run Time omdetect 2.13288712501526s
#
# [COMMAND] [2024-11-30T23:44:44]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:44]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:44] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:44]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS006IMAGE_0000.FIT set=product/P0136020101OMS006IMAGE_0000.FIT \
srclistset=product/P0136020101OMS006SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:44] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS006SWSRLI0000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS006IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS006SWSRLI0000.FIT; 
# # [INFO] [2024-11-30T23:44:44] Task Run Time omqualitymap 0.111510038375854s
#
# [COMMAND] [2024-11-30T23:44:44]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:44]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:44] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:44]
ommag set=product/P0136020101OMS006SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:44] ** ommag: warning (No sources in source-list file), The number of sources : 0 
# # [INFO] [2024-11-30T23:44:44] Task Run Time ommag 0.054811954498291s
#
# [COMMAND] [2024-11-30T23:44:44]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:44]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:44] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:44]
omatt catfile=product/P0136020101OBX000REFCAT0000.FIT ppsoswset=product/P0136020101OMS006SIMAGE0000.FIT \
set=product/P0136020101OMS006IMAGE_0000.FIT sourcelistset=product/P0136020101OMS006SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:44:46] ** omatt: warning (Too few sources for astrometry (0)), Need at least 5 
# # [INFO] [2024-11-30T23:44:46] Task Run Time omatt 1.39885997772217s
#
# [COMMAND] [2024-11-30T23:44:46]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:44:46]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:46]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:46] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:46]
fimgstat clobber=Y infile=product/P0136020101OMS006SIMAGE0000.FIT max=0 mean=0 min=0 mode=ql num=0 \
outfile=intermediate/OMImageAnalyse-om-1-OSW_0_sky_image_statistics-S00600000000000.ascii rms=0 sum=0 threshlo=INDEF threshup=INDEF \
xmax=0 xmin=0 ymax=0 ymin=0
# # [OUTPUT] [2024-11-30T23:44:46]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:44:46] Task Run Time fimgstat 0.0550508499145508s
#
# # [INFO] [2024-11-30T23:44:46] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMS006SIMAGE0000.FIT\
#     --outfile=product/P0136020101OMS006SIMAGE0000.PNG
# [COMMAND] [2024-11-30T23:44:46]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:46]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:46] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:46]
implot.py --fitsImage=product/P0136020101OMS006SIMAGE0000.FIT --outfile=product/P0136020101OMS006SIMAGE0000.PNG
# # [OUTPUT] [2024-11-30T23:44:49] Image shape. y,x: (299, 296) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (298, 295) x/y ratio: 0.99 
# # [INFO] [2024-11-30T23:44:49] Task Run Time implot.py 3.04328799247742s
#
# # [INFO] [2024-11-30T23:44:49] Processing S006:1:odf/0629_0136020101_OMS00601IMI.FIT
# [COMMAND] [2024-11-30T23:44:49]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:49]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:49] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:49]
omprep modeset=0 nphset=odf/0629_0136020101_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-1-Raw_Image-S00600010000000.fits \
pehset=odf/0629_0136020101_OMX00000PEH.FIT set=odf/0629_0136020101_OMS00601IMI.FIT wdxset=odf/0629_0136020101_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:49]
# # [INFO] [2024-11-30T23:44:49] Task Run Time omprep 0.138293981552124s
#
# # [INFO] [2024-11-30T23:44:49] Retrieving FILTER value
# # [INFO] [2024-11-30T23:44:49] FILTER = S
# # [INFO] [2024-11-30T23:44:49] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:44:49] EXPOSURE = 2.12000000000000E+03
# [COMMAND] [2024-11-30T23:44:49]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:49]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:49] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:49]
omcosflag set=intermediate/OMImageAnalyse-om-1-Raw_Image-S00600010000000.fits \
thxset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00600000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:44:49]
# # [INFO] [2024-11-30T23:44:49] Task Run Time omcosflag 0.205302000045776s
#
# [COMMAND] [2024-11-30T23:44:49]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:49]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:49] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:49]
omflatfield inorbitflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits \
outset=intermediate/OMImageAnalyse-om-1-OSW_Flat_Fielded_Image-S00600010000000.fits \
set=intermediate/OMImageAnalyse-om-1-Raw_Image-S00600010000000.fits \
thxset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00600000000000.fits \
tsflatset=intermediate/OMImageAnalyse-om-1-OSW_Flat_Field-S00600010000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:44:49]
# # [INFO] [2024-11-30T23:44:49] Task Run Time omflatfield 0.126507043838501s
#
# [COMMAND] [2024-11-30T23:44:49]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:49]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:49] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:49]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-1-OSW_MODULO_8_IMAGE-S00600010000000.fits nbox=16 nsig=6 \
outset=product/P0136020101OMS006IMAGE_1000.FIT set=intermediate/OMImageAnalyse-om-1-OSW_Flat_Fielded_Image-S00600010000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:44:53] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:44:53] Task Run Time ommodmap 3.41999483108521s
#
# [COMMAND] [2024-11-30T23:44:53]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:53]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:53] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:53]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS006IMAGE_1000.FIT set=product/P0136020101OMS006IMAGE_1000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:44:53] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS006IMAGE_1000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:44:53] Task Run Time omqualitymap 0.102450132369995s
#
# [COMMAND] [2024-11-30T23:44:53]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:53]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:53] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:53]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0136020101OMS006SWSRLI1000.FIT \
regionfile=product/P0136020101OMS006SWSREG1000.ASC set=product/P0136020101OMS006IMAGE_1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:57]
# # [INFO] [2024-11-30T23:44:57] Task Run Time omdetect 4.69846796989441s
#
# [COMMAND] [2024-11-30T23:44:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:57]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:57]
omqualitymap mode=setqualityimage outset=product/P0136020101OMS006IMAGE_1000.FIT set=product/P0136020101OMS006IMAGE_1000.FIT \
srclistset=product/P0136020101OMS006SWSRLI1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:58] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS006SWSRLI1000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMS006IMAGE_1000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMS006SWSRLI1000.FIT; 
# # [INFO] [2024-11-30T23:44:58] Task Run Time omqualitymap 0.100004911422729s
#
# [COMMAND] [2024-11-30T23:44:58]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:58]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:58] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:58]
ommag set=product/P0136020101OMS006SWSRLI1000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:44:58]
# TDP corr factor is: 1.10034311 
# L265 tdpCorrFactor= 1.10034311 
# L348 getting the column data
# In: 341.941467 56.0905800 2 524
# X,Y,pdepcorr: 1207.88293 635.181152 1.00000000 
# In: 273.008606 310.709747 2 524
# X,Y,pdepcorr: 1070.01721 1144.41943 1.00000000 
# In: 476.011444 4.89918900 2 524
# X,Y,pdepcorr: 1476.02295 532.798401 1.00000000 
# In: 12.7491207 173.763153 2 524
# X,Y,pdepcorr: 549.498230 870.526306 1.00000000 
# In: 233.835037 458.659698 2 524
# X,Y,pdepcorr: 991.670044 1440.31934 1.00000000 
# In: 107.341621 94.4574432 2 524
# X,Y,pdepcorr: 738.683228 711.914917 1.00000000 
# In: 68.8901443 383.028809 2 524
# X,Y,pdepcorr: 661.780273 1289.05762 1.00000000 
# In: 7.95658398 393.698456 2 524
# X,Y,pdepcorr: 539.913147 1310.39697 1.00000000 
# In: 105.233109 279.064606 2 524
# X,Y,pdepcorr: 734.466187 1081.12915 1.00000000 
# In: 240.862915 308.253693 2 524
# X,Y,pdepcorr: 1005.72583 1139.50732 1.00000000 
# # [INFO] [2024-11-30T23:44:58] Task Run Time ommag 0.150209903717041s
#
# [COMMAND] [2024-11-30T23:44:58]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:44:58]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:44:58] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:44:58]
omatt catfile=product/P0136020101OBX000REFCAT0000.FIT ppsoswset=product/P0136020101OMS006SIMAGE1000.FIT \
set=product/P0136020101OMS006IMAGE_1000.FIT sourcelistset=product/P0136020101OMS006SWSRLI1000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:45:02] ** omatt: warning (Too few sources matched for astrometry correction ( 0)), Need at least 5 
# # [INFO] [2024-11-30T23:45:02] Task Run Time omatt 4.56036686897278s
#
# [COMMAND] [2024-11-30T23:45:02]
export \
PFILES=/scratch/225748.1.all.q/xmm/ppsprod/228893/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:45:02]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:45:02]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:45:02] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:45:02]
fimgstat clobber=Y infile=product/P0136020101OMS006SIMAGE1000.FIT max=0 mean=0 min=0 mode=ql num=0 \
outfile=intermediate/OMImageAnalyse-om-1-OSW_1_sky_image_statistics-S00600000000000.ascii rms=0 sum=0 threshlo=INDEF threshup=INDEF \
xmax=0 xmin=0 ymax=0 ymin=0
# # [OUTPUT] [2024-11-30T23:45:02]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:45:02] Task Run Time fimgstat 0.0858228206634521s
#
# # [INFO] [2024-11-30T23:45:02] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMS006SIMAGE1000.FIT\
#     --outfile=product/P0136020101OMS006SIMAGE1000.PNG
# [COMMAND] [2024-11-30T23:45:02]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:45:02]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:45:02] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:45:02]
implot.py --fitsImage=product/P0136020101OMS006SIMAGE1000.FIT --outfile=product/P0136020101OMS006SIMAGE1000.PNG
# # [OUTPUT] [2024-11-30T23:45:06] Image shape. y,x: (654, 652) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (653, 651) x/y ratio: 1.00 
# # [INFO] [2024-11-30T23:45:06] Task Run Time implot.py 3.35351395606995s
#
# # [INFO] [2024-11-30T23:45:06] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:45:06] 0 images to process.
# # [INFO] [2024-11-30T23:45:06] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:45:06] 0 images to process.
# # [INFO] [2024-11-30T23:45:06] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:45:06] 0 images to process.
# # [INFO] [2024-11-30T23:45:06] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:45:06] 0 images to process.
# # [INFO] [2024-11-30T23:45:06] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:45:06] 0 images to process.
# # [INFO] [2024-11-30T23:45:06] All images processed
# # [INFO] [2024-11-30T23:45:06] Writing accounting information
# # [INFO] [2024-11-30T23:45:06] DEBUG: sourcedetails array: $VAR1 = [
# 'product/P0136020101OMS006SWSRLI0000.FIT|USER|S ',
# 'product/P0136020101OMS006SWSRLI1000.FIT|USER|S '
# ]; 
# # [INFO] [2024-11-30T23:45:06] DEBUG: skyimagedetails array: $VAR1 = [
# 'product/P0136020101OMS006SIMAGE0000.FIT|USER|S|2.12000000000000E+03|S006 ',
# 'product/P0136020101OMS006SIMAGE1000.FIT|USER|S|2.12000000000000E+03|S006 '
# ]; 
# # [INFO] [2024-11-30T23:45:06] Module name: OMMosaic
# # [INFO] [2024-11-30T23:45:06] Instrument: om
# # [INFO] [2024-11-30T23:45:06] Stream no.: 0001
# # [INFO] [2024-11-30T23:45:06] Module version number: 2.39
# # [INFO] [2024-11-30T23:45:06] Looking For Images to Mosaic...
# # [INFO] [2024-11-30T23:45:06] Running addtomosaic.py on\
#     intermediate/OMImageAnalyse-om-3-OM_SKY_IMAGE_DETAILS-S40100000000000.ascii
# # [INFO] [2024-11-30T23:45:06] DEBUG - doCommand fullcmd : addtomosaic.py\
#     --file=intermediate/OMImageAnalyse-om-3-OM_SKY_IMAGE_DETAILS-S40100000000000.ascii
# [COMMAND] [2024-11-30T23:45:06]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:45:06]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:45:06] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:45:06]
addtomosaic.py --file=intermediate/OMImageAnalyse-om-3-OM_SKY_IMAGE_DETAILS-S40100000000000.ascii
# # [OUTPUT] [2024-11-30T23:45:07] intermediate/OMImageAnalyse-om-3-OM_SKY_IMAGE_DETAILS-S40100000000000.ascii
# ['product/P0136020101OMS401SIMAGE0000.FIT|USER|S|2.12000000000000E+03|S401|1\n',\
#     'product/P0136020101OMS401SIMAGE1000.FIT|USER|S|2.12000000000000E+03|S401|1\n'] 
# # [INFO] [2024-11-30T23:45:07] Task Run Time addtomosaic.py 1.4997410774231s
#
# # [INFO] [2024-11-30T23:45:07] Running addtomosaic.py on\
#     intermediate/OMImageAnalyse-om-4-OM_SKY_IMAGE_DETAILS-S40200000000000.ascii
# # [INFO] [2024-11-30T23:45:07] DEBUG - doCommand fullcmd : addtomosaic.py\
#     --file=intermediate/OMImageAnalyse-om-4-OM_SKY_IMAGE_DETAILS-S40200000000000.ascii
# [COMMAND] [2024-11-30T23:45:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:45:07]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:45:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:45:07]
addtomosaic.py --file=intermediate/OMImageAnalyse-om-4-OM_SKY_IMAGE_DETAILS-S40200000000000.ascii
# # [OUTPUT] [2024-11-30T23:45:09] intermediate/OMImageAnalyse-om-4-OM_SKY_IMAGE_DETAILS-S40200000000000.ascii
# ['product/P0136020101OMS402SIMAGE0000.FIT|USER|S|2.12000000000000E+03|S402|1\n',\
#     'product/P0136020101OMS402SIMAGE1000.FIT|USER|S|2.12000000000000E+03|S402|1\n'] 
# # [INFO] [2024-11-30T23:45:09] Task Run Time addtomosaic.py 1.48573994636536s
#
# # [INFO] [2024-11-30T23:45:09] Running addtomosaic.py on\
#     intermediate/OMImageAnalyse-om-5-OM_SKY_IMAGE_DETAILS-S40300000000000.ascii
# # [INFO] [2024-11-30T23:45:09] DEBUG - doCommand fullcmd : addtomosaic.py\
#     --file=intermediate/OMImageAnalyse-om-5-OM_SKY_IMAGE_DETAILS-S40300000000000.ascii
# [COMMAND] [2024-11-30T23:45:09]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:45:09]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:45:09] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:45:09]
addtomosaic.py --file=intermediate/OMImageAnalyse-om-5-OM_SKY_IMAGE_DETAILS-S40300000000000.ascii
# # [OUTPUT] [2024-11-30T23:45:10] intermediate/OMImageAnalyse-om-5-OM_SKY_IMAGE_DETAILS-S40300000000000.ascii
# ['product/P0136020101OMS403SIMAGE0000.FIT|USER|S|2.12000000000000E+03|S403|1\n',\
#     'product/P0136020101OMS403SIMAGE1000.FIT|USER|S|2.12000000000000E+03|S403|1\n'] 
# # [INFO] [2024-11-30T23:45:10] Task Run Time addtomosaic.py 1.39072394371033s
#
# # [INFO] [2024-11-30T23:45:10] Running addtomosaic.py on\
#     intermediate/OMImageAnalyse-om-6-OM_SKY_IMAGE_DETAILS-S40400000000000.ascii
# # [INFO] [2024-11-30T23:45:10] DEBUG - doCommand fullcmd : addtomosaic.py\
#     --file=intermediate/OMImageAnalyse-om-6-OM_SKY_IMAGE_DETAILS-S40400000000000.ascii
# [COMMAND] [2024-11-30T23:45:10]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:45:10]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:45:10] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:45:10]
addtomosaic.py --file=intermediate/OMImageAnalyse-om-6-OM_SKY_IMAGE_DETAILS-S40400000000000.ascii
# # [OUTPUT] [2024-11-30T23:45:11] intermediate/OMImageAnalyse-om-6-OM_SKY_IMAGE_DETAILS-S40400000000000.ascii
# ['product/P0136020101OMS404SIMAGE0000.FIT|USER|S|2.12000000000000E+03|S404|1\n',\
#     'product/P0136020101OMS404SIMAGE1000.FIT|USER|S|2.12000000000000E+03|S404|1\n'] 
# # [INFO] [2024-11-30T23:45:11] Task Run Time addtomosaic.py 1.24874305725098s
#
# # [INFO] [2024-11-30T23:45:11] Running addtomosaic.py on\
#     intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# # [INFO] [2024-11-30T23:45:11] DEBUG - doCommand fullcmd : addtomosaic.py\
#     --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# [COMMAND] [2024-11-30T23:45:11]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:45:11]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:45:11] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:45:11]
addtomosaic.py --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# # [OUTPUT] [2024-11-30T23:45:13] intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# ['product/P0136020101OMS006SIMAGE0000.FIT|USER|S|2.12000000000000E+03|S006|0\n',\
#     'product/P0136020101OMS006SIMAGE1000.FIT|USER|S|2.12000000000000E+03|S006|1\n'] 
# # [INFO] [2024-11-30T23:45:13] Task Run Time addtomosaic.py 1.36069798469543s
#
# # [INFO] [2024-11-30T23:45:13] Found 10 Images
# # [INFO] [2024-11-30T23:45:13] Grouping Images by Mode then Filter
# # [INFO] [2024-11-30T23:45:13] Mode: ALL
# # [INFO] [2024-11-30T23:45:13] Filter: S
# # [INFO] [2024-11-30T23:45:13] Image File : product/P0136020101OMS006SIMAGE0000.FIT
# # [INFO] [2024-11-30T23:45:13] Image File : product/P0136020101OMS006SIMAGE1000.FIT
# # [INFO] [2024-11-30T23:45:13] Image File : product/P0136020101OMS401SIMAGE0000.FIT
# # [INFO] [2024-11-30T23:45:13] Image File : product/P0136020101OMS401SIMAGE1000.FIT
# # [INFO] [2024-11-30T23:45:13] Image File : product/P0136020101OMS402SIMAGE0000.FIT
# # [INFO] [2024-11-30T23:45:13] Image File : product/P0136020101OMS402SIMAGE1000.FIT
# # [INFO] [2024-11-30T23:45:13] Image File : product/P0136020101OMS403SIMAGE0000.FIT
# # [INFO] [2024-11-30T23:45:13] Image File : product/P0136020101OMS403SIMAGE1000.FIT
# # [INFO] [2024-11-30T23:45:13] Image File : product/P0136020101OMS404SIMAGE0000.FIT
# # [INFO] [2024-11-30T23:45:13] Image File : product/P0136020101OMS404SIMAGE1000.FIT
# # [INFO] [2024-11-30T23:45:13] Creating Images...
# # [INFO] [2024-11-30T23:45:13] MODE: ALL
# # [INFO] [2024-11-30T23:45:13] FILTER: S
# # [INFO] [2024-11-30T23:45:13] CREATING: product/P0136020101OMX000XSIMAGS000.FIT, Duration: 10600
# [COMMAND] [2024-11-30T23:45:13]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:45:13]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:45:13] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:45:13]
ommosaic imagesets="product/P0136020101OMS006SIMAGE1000.FIT product/P0136020101OMS401SIMAGE0000.FIT \
product/P0136020101OMS401SIMAGE1000.FIT product/P0136020101OMS402SIMAGE0000.FIT product/P0136020101OMS402SIMAGE1000.FIT \
product/P0136020101OMS403SIMAGE0000.FIT product/P0136020101OMS403SIMAGE1000.FIT product/P0136020101OMS404SIMAGE0000.FIT \
product/P0136020101OMS404SIMAGE1000.FIT" mincorr=0 mosaicedset=product/P0136020101OMX000XSIMAGS000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:46:04] L1109 c3 xLeft=305.381632 xRight=304.908679 
# 63.626 305.145 40.6919 
# # [INFO] [2024-11-30T23:46:04] Task Run Time ommosaic 50.9672520160675s
#
# [COMMAND] [2024-11-30T23:46:04]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:46:04]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:46:04] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:46:04]
omdetect backgroundmethod=1 detectextended=Y minsignificance=3 neighboursforpsfphotometry=1 nsigma=2 \
outset=product/P0136020101OMX000XSISWSS000.FIT psfphotometryenabled=N regionfile=product/P0136020101OMX000XSISWSS000.ASC \
set=product/P0136020101OMX000XSIMAGS000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:46:25]
# # [INFO] [2024-11-30T23:46:25] Task Run Time omdetect 21.7107331752777s
#
# # [INFO] [2024-11-30T23:46:25] DEBUG - doCommand fullcmd : cleanommos.py --image=product/P0136020101OMX000XSIMAGS000.FIT\
#     --srcList=product/P0136020101OMX000XSISWSS000.FIT
# [COMMAND] [2024-11-30T23:46:25]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:46:25]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:46:25] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:46:25]
cleanommos.py --image=product/P0136020101OMX000XSIMAGS000.FIT --srcList=product/P0136020101OMX000XSISWSS000.FIT
# # [OUTPUT] [2024-11-30T23:46:27] Image file: product/P0136020101OMX000XSIMAGS000.FIT
# Nr. of sources in product/P0136020101OMX000XSISWSS000.FIT: 50
# 50 input sources ; 5 output sources 
# # [INFO] [2024-11-30T23:46:27] Task Run Time cleanommos.py 1.38237404823303s
#
# # [INFO] [2024-11-30T23:46:27] DEBUG: writing product/P0136020101OMX000XSISWSS000.FIT in file\
#     intermediate/OMMosaic-om-1-MOSAIC_SOURCE_LISTS-X00000000000000.ascii
# [COMMAND] [2024-11-30T23:46:27]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:46:27]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:46:27] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:46:27]
ommag set=product/P0136020101OMX000XSISWSS000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:46:27]
# TDP corr factor is: 1.10034311 
# L265 tdpCorrFactor= 1.10034311 
# L348 getting the column data
# ra,dec,x,y: 304.99346380406365 40.760330526486953 474.794342 200.549240 
# X,Y,pdepcorr: 474.794342 200.549240 1.00000000 
# ra,dec,x,y: 305.10390682642958 40.606039982851087 512.929382 1484.07202 
# X,Y,pdepcorr: 512.929382 1484.07202 1.00000000 
# ra,dec,x,y: 305.06287891789032 40.570845812763132 191.291183 1603.47534 
# X,Y,pdepcorr: 191.291183 1603.47534 1.00000000 
# ra,dec,x,y: 305.10700555524505 40.597241010164964 500.189697 1547.34888 
# X,Y,pdepcorr: 500.189697 1547.34888 1.00000000 
# ra,dec,x,y: 305.24040947031619 40.821984921403931 1957.52905 405.085724 
# X,Y,pdepcorr: 1957.52905 405.085724 1.00000000 
# # [INFO] [2024-11-30T23:46:27] Task Run Time ommag 0.610394954681396s
#
# [COMMAND] [2024-11-30T23:46:27]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:46:27]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:46:27] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:46:27]
omqualitymap mode=usequalityimage outset=product/P0136020101OMX000XSISWSS000.FIT set=product/P0136020101OMX000XSIMAGS000.FIT \
srclistset=product/P0136020101OMX000XSISWSS000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:46:28] ** omqualitymap: warning (parameter), srclistset = product/P0136020101OMX000XSISWSS000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0136020101OMX000XSISWSS000.FIT will be overwritten 
# # [INFO] [2024-11-30T23:46:28] Task Run Time omqualitymap 0.21778392791748s
#
# # [INFO] [2024-11-30T23:46:28] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0136020101OMX000XSIMAGS000.FIT\
#     --outfile=product/P0136020101OMX000XSIMAGS000.PNG
# [COMMAND] [2024-11-30T23:46:28]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:46:28]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:46:28] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:46:28]
implot.py --fitsImage=product/P0136020101OMX000XSIMAGS000.FIT --outfile=product/P0136020101OMX000XSIMAGS000.PNG
# # [OUTPUT] [2024-11-30T23:46:31] Image shape. y,x: (1349, 1359) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (1348, 1358) x/y ratio: 1.01 
# # [INFO] [2024-11-30T23:46:31] Task Run Time implot.py 3.81687903404236s
#
# # [INFO] [2024-11-30T23:46:31] Done: ALL
# # [INFO] [2024-11-30T23:46:32] Module name: OMSourceCombine
# # [INFO] [2024-11-30T23:46:32] Instrument: om
# # [INFO] [2024-11-30T23:46:32] Stream no.: 0001
# # [INFO] [2024-11-30T23:46:32] Module version number: 3.9
# # [INFO] [2024-11-30T23:46:32] Looking For Source Lists to Combine...
# # [INFO] [2024-11-30T23:46:32] DEBUG: file: intermediate/OMImageAnalyse-om-3-OM_SRC_IMAGE_DETAILS-S40100000000000.ascii
# # [INFO] [2024-11-30T23:46:32] DEBUG: line product/P0136020101OMS401SWSRLI0000.FIT|USER|S
# # [INFO] [2024-11-30T23:46:32] DEBUG: split to tmp: $VAR1 = [
# 'product/P0136020101OMS401SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:46:32] DEBUG: line product/P0136020101OMS401SWSRLI1000.FIT|USER|S
# # [INFO] [2024-11-30T23:46:32] DEBUG: split to tmp: $VAR1 = [
# 'product/P0136020101OMS401SWSRLI1000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:46:32] DEBUG: file: intermediate/OMImageAnalyse-om-4-OM_SRC_IMAGE_DETAILS-S40200000000000.ascii
# # [INFO] [2024-11-30T23:46:32] DEBUG: line product/P0136020101OMS402SWSRLI0000.FIT|USER|S
# # [INFO] [2024-11-30T23:46:32] DEBUG: split to tmp: $VAR1 = [
# 'product/P0136020101OMS402SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:46:32] DEBUG: line product/P0136020101OMS402SWSRLI1000.FIT|USER|S
# # [INFO] [2024-11-30T23:46:32] DEBUG: split to tmp: $VAR1 = [
# 'product/P0136020101OMS402SWSRLI1000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:46:32] DEBUG: file: intermediate/OMImageAnalyse-om-5-OM_SRC_IMAGE_DETAILS-S40300000000000.ascii
# # [INFO] [2024-11-30T23:46:32] DEBUG: line product/P0136020101OMS403SWSRLI0000.FIT|USER|S
# # [INFO] [2024-11-30T23:46:32] DEBUG: split to tmp: $VAR1 = [
# 'product/P0136020101OMS403SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:46:32] DEBUG: line product/P0136020101OMS403SWSRLI1000.FIT|USER|S
# # [INFO] [2024-11-30T23:46:32] DEBUG: split to tmp: $VAR1 = [
# 'product/P0136020101OMS403SWSRLI1000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:46:32] DEBUG: file: intermediate/OMImageAnalyse-om-6-OM_SRC_IMAGE_DETAILS-S40400000000000.ascii
# # [INFO] [2024-11-30T23:46:32] DEBUG: line product/P0136020101OMS404SWSRLI0000.FIT|USER|S
# # [INFO] [2024-11-30T23:46:32] DEBUG: split to tmp: $VAR1 = [
# 'product/P0136020101OMS404SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:46:32] DEBUG: line product/P0136020101OMS404SWSRLI1000.FIT|USER|S
# # [INFO] [2024-11-30T23:46:32] DEBUG: split to tmp: $VAR1 = [
# 'product/P0136020101OMS404SWSRLI1000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:46:32] DEBUG: file: intermediate/OMImageAnalyse-om-1-OM_SRC_IMAGE_DETAILS-S00600000000000.ascii
# # [INFO] [2024-11-30T23:46:32] DEBUG: line product/P0136020101OMS006SWSRLI0000.FIT|USER|S
# # [INFO] [2024-11-30T23:46:32] DEBUG: split to tmp: $VAR1 = [
# 'product/P0136020101OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:46:32] DEBUG: line product/P0136020101OMS006SWSRLI1000.FIT|USER|S
# # [INFO] [2024-11-30T23:46:32] DEBUG: split to tmp: $VAR1 = [
# 'product/P0136020101OMS006SWSRLI1000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:46:32] DEBUG: SrcLstDetails: $VAR1 = [
# [
# 'product/P0136020101OMS401SWSRLI0000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS401SWSRLI1000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS402SWSRLI0000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS402SWSRLI1000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS403SWSRLI0000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS403SWSRLI1000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS404SWSRLI0000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS404SWSRLI1000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS006SWSRLI1000.FIT',
# 'USER',
# 'S'
# ]
# ]; 
# # [INFO] [2024-11-30T23:46:32] Found 10 Lists
# # [INFO] [2024-11-30T23:46:32] Grouping Lists by Mode then Filter
# # [INFO] [2024-11-30T23:46:32] DEBUG: SortedSrcLstDetails: $VAR1 = [
# [
# 'product/P0136020101OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS006SWSRLI1000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS401SWSRLI0000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS401SWSRLI1000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS402SWSRLI0000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS402SWSRLI1000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS403SWSRLI0000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS403SWSRLI1000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS404SWSRLI0000.FIT',
# 'USER',
# 'S'
# ],
# [
# 'product/P0136020101OMS404SWSRLI1000.FIT',
# 'USER',
# 'S'
# ]
# ]; 
# # [INFO] [2024-11-30T23:46:32] Mode: USER
# # [INFO] [2024-11-30T23:46:32] DEBUG: Src: ARRAY(0x6cc6520)
# # [INFO] [2024-11-30T23:46:32] DEBUG: mode_p: 1
# # [INFO] [2024-11-30T23:46:32] DEBUG: SSrc[modep]: USER
# # [INFO] [2024-11-30T23:46:32] DEBUG: SSrc[filterp]: S
# # [INFO] [2024-11-30T23:46:32] Filter: S
# # [INFO] [2024-11-30T23:46:32] Image File : product/P0136020101OMS006SWSRLI0000.FIT
# # [INFO] [2024-11-30T23:46:32] Image File : product/P0136020101OMS006SWSRLI1000.FIT
# # [INFO] [2024-11-30T23:46:32] Image File : product/P0136020101OMS401SWSRLI0000.FIT
# # [INFO] [2024-11-30T23:46:32] Image File : product/P0136020101OMS401SWSRLI1000.FIT
# # [INFO] [2024-11-30T23:46:32] Image File : product/P0136020101OMS402SWSRLI0000.FIT
# # [INFO] [2024-11-30T23:46:32] Image File : product/P0136020101OMS402SWSRLI1000.FIT
# # [INFO] [2024-11-30T23:46:32] Image File : product/P0136020101OMS403SWSRLI0000.FIT
# # [INFO] [2024-11-30T23:46:32] Image File : product/P0136020101OMS403SWSRLI1000.FIT
# # [INFO] [2024-11-30T23:46:32] Image File : product/P0136020101OMS404SWSRLI0000.FIT
# # [INFO] [2024-11-30T23:46:32] Image File : product/P0136020101OMS404SWSRLI1000.FIT
# # [INFO] [2024-11-30T23:46:32] Creating Combined Lists...
# # [INFO] [2024-11-30T23:46:32] MODE: USER
# # [INFO] [2024-11-30T23:46:32] FILTER: S
# # [INFO] [2024-11-30T23:46:32] Done: USER
# # [INFO] [2024-11-30T23:46:32] CREATING: product/P0136020101OMX000OBSMLI0000.FIT
# [COMMAND] [2024-11-30T23:46:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:46:32]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:46:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:46:32]
omsrclistcomb catfile=product/P0136020101OBX000REFCAT0000.FIT outset=product/P0136020101OMX000OBSMLI0000.FIT \
sourcelistsets="product/P0136020101OMS006SWSRLI0000.FIT product/P0136020101OMS006SWSRLI1000.FIT \
product/P0136020101OMS401SWSRLI0000.FIT product/P0136020101OMS401SWSRLI1000.FIT product/P0136020101OMS402SWSRLI0000.FIT \
product/P0136020101OMS402SWSRLI1000.FIT product/P0136020101OMS403SWSRLI0000.FIT product/P0136020101OMS403SWSRLI1000.FIT \
product/P0136020101OMS404SWSRLI0000.FIT product/P0136020101OMS404SWSRLI1000.FIT" usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:46:33]
# # [INFO] [2024-11-30T23:46:33] Task Run Time omsrclistcomb 1.7159698009491s
#
# # [INFO] [2024-11-30T23:46:33] reading file intermediate/OMMosaic-om-1-MOSAIC_SOURCE_LISTS-X00000000000000.ascii
# # [INFO] [2024-11-30T23:46:33] CREATING: product/P0136020101OMX000OBSMOS0000.FIT
# [COMMAND] [2024-11-30T23:46:33]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:46:33]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:46:33] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:46:33]
omsrclistcomb catfile=product/P0136020101OBX000REFCAT0000.FIT outset=product/P0136020101OMX000OBSMOS0000.FIT \
sourcelistsets=product/P0136020101OMX000XSISWSS000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:46:34] ** omsrclistcomb: warning (Too few sources matched for astrometry correction ( 0)), Need at least\
#     5 
# # [INFO] [2024-11-30T23:46:34] Task Run Time omsrclistcomb 0.68297004699707s
#
# [COMMAND] [2024-11-30T23:46:34]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:46:34]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:46:34] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:46:34]
ommergelists maxrawrate=5 outset=intermediate/OMSourceCombine-om-1-final_merged_list-X00000000000000.fits \
srclist1=product/P0136020101OMX000OBSMLI0000.FIT srclist2=product/P0136020101OMX000OBSMOS0000.FIT tolerance=2 -w 10
# # [OUTPUT] [2024-11-30T23:46:34]
# # [INFO] [2024-11-30T23:46:34] Task Run Time ommergelists 0.130433082580566s
#
# # [INFO] [2024-11-30T23:46:34] DEBUG Copy intermediate/OMSourceCombine-om-1-final_merged_list-X00000000000000.fits to\
#     product/P0136020101OMX000OBSMLI0000.FIT
# [COMMAND] [2024-11-30T23:46:34]
cp /scratch/225748.1.all.q/xmm/ppsprod/228893/intermediate/OMSourceCombine-om-1-final_merged_list-X00000000000000.fits \
/scratch/225748.1.all.q/xmm/ppsprod/228893/product/P0136020101OMX000OBSMLI0000.FIT
# # [INFO] [2024-11-30T23:46:34] System RV 0
# [COMMAND] [2024-11-30T23:46:34]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:46:34]
export SAS_RAND_SEED=0136020101
# # [INFO] [2024-11-30T23:46:34] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0136020101
# [COMMAND] [2024-11-30T23:46:34]
omregion bkginner=1.2 bkgouter=1.8 nfwhm=3 set=intermediate/OMSourceCombine-om-1-final_merged_list-X00000000000000.fits \
srcfile=product/P0136020101OMX000OBSMLI0000.ASC srcnumber=1 srcradius=3 -w 10
# # [OUTPUT] [2024-11-30T23:46:34]
# # [INFO] [2024-11-30T23:46:34] Task Run Time omregion 0.0905749797821045s
#
