
#!/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:55:16] Module name: VerifyODF
# # [INFO] [2024-11-30T23:55:16] Instrument: all
# # [INFO] [2024-11-30T23:55:16] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:16] Module version number: 1.18
# # [INFO] [2024-11-30T23:55:16] Version of odfingest used was 3.33.1
# # [INFO] [2024-11-30T23:55:16] Module name: MakeCIF
# # [INFO] [2024-11-30T23:55:16] Instrument: all
# # [INFO] [2024-11-30T23:55:16] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:16] Module version number: 1.23
# # [INFO] [2024-11-30T23:55:16] Observation start defined as >2002-04-28T10:33:42.000<
# # [INFO] [2024-11-30T23:55:16] Processing date defined as >2024-12-01T00:55:16<
# [COMMAND] [2024-11-30T23:55:16]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:16]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:16] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:16]
cifbuild analysisdate=2024-12-01T00:55:16 calindexset=product/P0018140901OBX000CALIND0000.FIT fullpath=no \
observationdate=2002-04-28T10:33:42.000 withccfpath=no -w 10
# # [OUTPUT] [2024-11-30T23:55:46]
# # [INFO] [2024-11-30T23:55:46] Task Run Time cifbuild 29.3722639083862s
#
# [COMMAND] [2024-11-30T23:55:46]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:46]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:46] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:46]
addattribute attributecomment="\"Telescope (mission) name\" \"Name of PI\" \"Date observations ended\" \"DEC of instrument \
pointing\" \"RA of instrument pointing (degrees)\" \"Date observations were made\" \"Name of observed object\" \"Observation mode \
(pointing or slew)\" \"Observation identifier\"" attributename="TELESCOP OBSERVER DATE-END DEC_PNT RA_PNT DATE-OBS OBJECT OBS_MODE \
OBS_ID" attributetype="string string string real real string string string string" realvalue="\"31.0029167\" \"314.338167\"" \
set=product/P0018140901OBX000CALIND0000.FIT stringvalue="\"XMM\" \"Dr Terrance Gaetz\" \"2002-04-28T11:05:50.000\" \
\"2002-04-28T10:33:42.000\" \"Cygnus Loop XA knot\" \"POINTED\" \"0018140901\"" -w 10
# # [OUTPUT] [2024-11-30T23:55:46]
# # [INFO] [2024-11-30T23:55:46] Task Run Time addattribute 0.115350008010864s
#
# [COMMAND] [2024-11-30T23:55:46]
cp /scratch/226787.1.all.q/xmm/ppsprod/229932/product/P0018140901OBX000CALIND0000.FIT \
/scratch/226787.1.all.q/xmm/ppsprod/229932/intermediate/ccf.cif
# # [INFO] [2024-11-30T23:55:46] System RV 0
# # [INFO] [2024-11-30T23:55:46] Module name: GlobalHK
# # [INFO] [2024-11-30T23:55:46] Instrument: all
# # [INFO] [2024-11-30T23:55:46] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:46] Module version number: 1.81
# [COMMAND] [2024-11-30T23:55:46]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:46]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:46] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:46]
preqgti preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:55:47] ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 136379241.184\
#     which is more than 20 s outside the period for which the attitude is known (closest time is 21 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 136379241.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is 21 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 136379242.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is 21 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 136379242.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is 21 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 136379243.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is 21 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 136379243.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is 21 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 136379244.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is 21 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 136379244.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is 21 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 136379245.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is 22 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 136379245.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is 22 s away).
# ** preqgti: warning (SummaryOfWarnings), 
# warning NoAttitude silently occurred 29098 times 
# # [INFO] [2024-11-30T23:55:47] Task Run Time preqgti 0.638665914535522s
#
# [COMMAND] [2024-11-30T23:55:47]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:47]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:47] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:47]
atthkgen atthkset=product/P0018140901OBX000ATTTSR0000.FIT preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
timestep=1 withpreqgti=no -w 10
# # [OUTPUT] [2024-11-30T23:55:47]
# # [INFO] [2024-11-30T23:55:47] Task Run Time atthkgen 0.136680841445923s
#
# [COMMAND] [2024-11-30T23:55:47]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:47]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:47] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:47]
orbit outfile=product/P0018140901OBX000ORBTSR0000.FIT timestep=1 useobsid=yes -w 10
# # [OUTPUT] [2024-11-30T23:55:47] orbit:- Output FITS Orbit timeseries: product/P0018140901OBX000ORBTSR0000.FIT
# orbit:- Binsize (timestep) of output): 1
# orbit:- Use OBSID data or whole orbit? T 
# # [INFO] [2024-11-30T23:55:47] Task Run Time orbit 0.149855852127075s
#
# [COMMAND] [2024-11-30T23:55:47]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:47]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:47] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:47]
radmonfix output=product/P0018140901OBX000RADMON0000.FIT radmonlist=odf/0437_0018140901_RMX00100ECX.FIT withoutputfile=yes -w 10
# # [OUTPUT] [2024-11-30T23:55:47] ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=57614149.95 which\
#     is outside the time correlation data abscissa range [57614949.96, 57618002.83] - result of extrapolation might be afflicted\
#     with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=57614153.95 which is outside the time correlation\
#     data abscissa range [57614949.96, 57618002.83] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=57614157.95 which is outside the time correlation\
#     data abscissa range [57614949.96, 57618002.83] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=57614161.95 which is outside the time correlation\
#     data abscissa range [57614949.96, 57618002.83] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=57614165.95 which is outside the time correlation\
#     data abscissa range [57614949.96, 57618002.83] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=57614169.95 which is outside the time correlation\
#     data abscissa range [57614949.96, 57618002.83] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=57614173.95 which is outside the time correlation\
#     data abscissa range [57614949.96, 57618002.83] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=57614177.95 which is outside the time correlation\
#     data abscissa range [57614949.96, 57618002.83] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=57614181.95 which is outside the time correlation\
#     data abscissa range [57614949.96, 57618002.83] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=57614185.95 which is outside the time correlation\
#     data abscissa range [57614949.96, 57618002.83] - result of extrapolation might be afflicted with large numerical uncertainty.
# radmonfix:- Setting DATE-END...
# ** radmonfix: warning (SummaryOfWarnings), 
# warning Extrapolation silently occurred 585 times 
# # [INFO] [2024-11-30T23:55:47] Task Run Time radmonfix 0.0654299259185791s
#
# [COMMAND] [2024-11-30T23:55:47]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/EPICModes.fits \
/scratch/226787.1.all.q/xmm/ppsprod/229932/intermediate/GlobalHK-all-1-Observing_modes_Pileup_and_OoT_data-X00000000000000.fits
# # [INFO] [2024-11-30T23:55:47] System RV 0
# # [INFO] [2024-11-30T23:55:47] Copied EPIC Observing modes table, Pileup data and OoT data table in place
# [COMMAND] [2024-11-30T23:55:47]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfs.fits \
/scratch/226787.1.all.q/xmm/ppsprod/229932/intermediate/GlobalHK-all-1-Energy_Conversion_Factors-X00000000000000.fits
# # [INFO] [2024-11-30T23:55:47] System RV 0
# [COMMAND] [2024-11-30T23:55:47]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfgrid.fits.gz \
/scratch/226787.1.all.q/xmm/ppsprod/229932/intermediate/GlobalHK-all-1-Energy_Conversion_Factors_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:55:47] System RV 0
# [COMMAND] [2024-11-30T23:55:47]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/fluxgrid.fits.gz \
/scratch/226787.1.all.q/xmm/ppsprod/229932/intermediate/GlobalHK-all-1-Flux_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:55:47] System RV 0
# # [INFO] [2024-11-30T23:55:47] Module name: ExpChooser
# # [INFO] [2024-11-30T23:55:47] Instrument: emos1
# # [INFO] [2024-11-30T23:55:47] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:47] Module version number: 1.38
# # [INFO] [2024-11-30T23:55:47] Checking exposure S003 for processability
# # [INFO] [2024-11-30T23:55:47] Filter: CalClosed
# # [INFO] [2024-11-30T23:55:47] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:55:47] Exposure duration: 1771
# # [INFO] [2024-11-30T23:55:47] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:55:47] Module name: ExpChooser
# # [INFO] [2024-11-30T23:55:47] Instrument: emos2
# # [INFO] [2024-11-30T23:55:47] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:47] Module version number: 1.38
# # [INFO] [2024-11-30T23:55:47] Checking exposure S004 for processability
# # [INFO] [2024-11-30T23:55:47] Filter: CalClosed
# # [INFO] [2024-11-30T23:55:47] Instrument mode: PrimePartialW2
# # [INFO] [2024-11-30T23:55:47] Exposure duration: 1763
# # [INFO] [2024-11-30T23:55:47] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:55:47] Module name: ExpChooser
# # [INFO] [2024-11-30T23:55:47] Instrument: om
# # [INFO] [2024-11-30T23:55:47] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:47] Module version number: 1.38
# # [INFO] [2024-11-30T23:55:47] Checking exposure S006 for processability
# # [INFO] [2024-11-30T23:55:47] Filter: UVW2
# # [INFO] [2024-11-30T23:55:47] Instrument mode: Image
# # [INFO] [2024-11-30T23:55:47] Exposure duration: 1800
# # [INFO] [2024-11-30T23:55:47] Module name: InstrumentHK
# # [INFO] [2024-11-30T23:55:47] Instrument: om
# # [INFO] [2024-11-30T23:55:47] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:47] Module version number: 2.01
# # [INFO] [2024-11-30T23:55:47] Module name: USNOExtract
# # [INFO] [2024-11-30T23:55:47] Instrument: all
# # [INFO] [2024-11-30T23:55:47] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:47] Module version number: 0.07
# [COMMAND] [2024-11-30T23:55:47]
export \
PFILES=/scratch/226787.1.all.q/xmm/ppsprod/229932/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:55:47]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:47]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:47] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:47]
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:55:47] Written the output image ......... 
# # [INFO] [2024-11-30T23:55:47] Task Run Time fimgcreate 0.0345621109008789s
#
# [COMMAND] [2024-11-30T23:55:47]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:47]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:47] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:47]
catprep catextract=intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
srclistset=product/P0018140901OBX000CALIND0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:55:48]
# # [INFO] [2024-11-30T23:55:48] Task Run Time catprep 0.785953044891357s
#
# [COMMAND] [2024-11-30T23:55:48]
cp /scratch/226787.1.all.q/xmm/ppsprod/229932/intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
/scratch/226787.1.all.q/xmm/ppsprod/229932/product/P0018140901OBX000REFCAT0000.FIT
# # [INFO] [2024-11-30T23:55:48] System RV 0
# # [INFO] [2024-11-30T23:55:48] Reading keyword DEC_OBJ value 3.10029167000000E+01 comment [deg] Dec of the observed object
# # [INFO] [2024-11-30T23:55:48] Reading keyword DATE-OBS value 2002-04-28T10:33:42.000 comment Date observations were made
# # [INFO] [2024-11-30T23:55:48] Reading keyword OBS_ID value 0018140901 comment Observation identifier
# # [INFO] [2024-11-30T23:55:48] Reading keyword OBS_MODE value POINTING comment Observation mode (pointing or slew)
# # [INFO] [2024-11-30T23:55:48] Reading keyword TELESCOP value XMM comment Telescope (mission) name
# # [INFO] [2024-11-30T23:55:48] Reading keyword DATE-END value 2002-04-28T11:05:50.000 comment Date observations ended
# # [INFO] [2024-11-30T23:55:48] Reading keyword RA_OBJ value 3.14338167000000E+02 comment [deg] Ra of the observed object
# [COMMAND] [2024-11-30T23:55:48]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:48]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:48] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:48]
addattribute attributecomment="\"[deg] Dec of the observed object\" \"Date observations were made\" \"Observation identifier\" \
\"Observation mode (pointing or slew)\" \"Telescope (mission) name\" \"Date observations ended\" \"[deg] Ra of the observed \
object\"" attributename="DEC_OBJ DATE-OBS OBS_ID OBS_MODE TELESCOP DATE-END RA_OBJ" attributetype="\"real\" \"string\" \"string\" \
\"string\" \"string\" \"string\" \"real\"" realvalue="3.10029167000000E+01 3.14338167000000E+02" \
set=product/P0018140901OBX000REFCAT0000.FIT stringvalue="2002-04-28T10:33:42.000 0018140901 POINTING XMM 2002-04-28T11:05:50.000" -w \
10
# # [OUTPUT] [2024-11-30T23:55:48] ** addattribute: warning (creatorKeywordNotFound), The CREATOR keyword could not be found in\
#     dataset with name 'product/P0018140901OBX000REFCAT0000.FIT'
# ** addattribute: warning (dateKeywordNotFound), The DATE keyword could not be found in dataset with name\
#     'product/P0018140901OBX000REFCAT0000.FIT' 
# # [INFO] [2024-11-30T23:55:48] Task Run Time addattribute 0.0354609489440918s
#
# # [INFO] [2024-11-30T23:55:48] Module name: OMgetFlat
# # [INFO] [2024-11-30T23:55:48] Instrument: om
# # [INFO] [2024-11-30T23:55:48] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:48] Module version number: 1.07
# [COMMAND] [2024-11-30T23:55:48]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:48]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:48] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:48]
omflatgen outset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:55:48] ** omflatgen: warning (ArgumentIgnored), Warning: countRateFrameRatio argument in small-scale\
#     flatfield retrieval currently ignored 
# # [INFO] [2024-11-30T23:55:48] Task Run Time omflatgen 0.184963941574097s
#
# # [INFO] [2024-11-30T23:55:48] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:55:48] Instrument: om
# # [INFO] [2024-11-30T23:55:48] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:48] Module version number: 1.06
# [COMMAND] [2024-11-30T23:55:48]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:48]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:48] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:48]
omprep modeset=3 nphset=odf/0437_0018140901_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00600000000000.fits pehset=odf/0437_0018140901_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0437_0018140901_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:55:48] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:55:48] Task Run Time omprep 0.070836067199707s
#
# # [INFO] [2024-11-30T23:55:48] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:55:48] Instrument: om
# # [INFO] [2024-11-30T23:55:48] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:48] Module version number: 1.36
# # [INFO] [2024-11-30T23:55:48] DEBUG --- exp_id: S006, filter: UVW2
# # [INFO] [2024-11-30T23:55:48] No Fast Mode Windows to process
# # [INFO] [2024-11-30T23:55:48] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:55:48] Instrument: om
# # [INFO] [2024-11-30T23:55:48] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:48] Module version number: 3.28
# # [INFO] [2024-11-30T23:55:48] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:55:48] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:55:48] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:55:48] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:55:48] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:55:48] Found 1 Image mode images.
# # [INFO] [2024-11-30T23:55:48] Analysing odf/0437_0018140901_OMS00600IMI.FIT for image identification
# # [INFO] [2024-11-30T23:55:48] Identified mode: USER
# # [INFO] [2024-11-30T23:55:48] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:55:48] Processing USER Images.
# # [INFO] [2024-11-30T23:55:48] 1 images to process.
# # [INFO] [2024-11-30T23:55:48] Processing S006:0:odf/0437_0018140901_OMS00600IMI.FIT
# [COMMAND] [2024-11-30T23:55:48]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:48]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:48] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:48]
omprep modeset=0 nphset=odf/0437_0018140901_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-1-Raw_Image-S00600000000000.fits \
pehset=odf/0437_0018140901_OMX00000PEH.FIT set=odf/0437_0018140901_OMS00600IMI.FIT wdxset=odf/0437_0018140901_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:55:48] ** omprep: warning (NoSuchIPPV), There is no IPPV `DATA_MODE_1' in the actual exposure 
# # [INFO] [2024-11-30T23:55:48] Task Run Time omprep 0.086374044418335s
#
# # [INFO] [2024-11-30T23:55:48] Retrieving FILTER value
# # [INFO] [2024-11-30T23:55:48] FILTER = S
# # [INFO] [2024-11-30T23:55:48] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:55:48] EXPOSURE = 1.80000000000000E+03
# [COMMAND] [2024-11-30T23:55:48]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:48]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:48] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:48]
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:55:49]
# # [INFO] [2024-11-30T23:55:49] Task Run Time omcosflag 0.251723051071167s
#
# [COMMAND] [2024-11-30T23:55:49]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:49]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:49] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:49]
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:55:49]
# # [INFO] [2024-11-30T23:55:49] Task Run Time omflatfield 0.0826809406280518s
#
# [COMMAND] [2024-11-30T23:55:49]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:49]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:49] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:49]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-1-OSW_MODULO_8_IMAGE-S00600000000000.fits nbox=16 nsig=6 \
outset=product/P0018140901OMS006IMAGE_0000.FIT set=intermediate/OMImageAnalyse-om-1-OSW_Flat_Fielded_Image-S00600000000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:55:53] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:55:53] Task Run Time ommodmap 4.49020791053772s
#
# [COMMAND] [2024-11-30T23:55:53]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:53]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:53] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:53]
omqualitymap mode=setqualityimage outset=product/P0018140901OMS006IMAGE_0000.FIT set=product/P0018140901OMS006IMAGE_0000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:55:53] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0018140901OMS006IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:55:53] Task Run Time omqualitymap 0.0911738872528076s
#
# [COMMAND] [2024-11-30T23:55:53]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:53]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:55:53] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:55:53]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0018140901OMS006SWSRLI0000.FIT \
regionfile=product/P0018140901OMS006SWSREG0000.ASC set=product/P0018140901OMS006IMAGE_0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:56:07]
# # [INFO] [2024-11-30T23:56:07] Task Run Time omdetect 13.891998052597s
#
# [COMMAND] [2024-11-30T23:56:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:07]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:56:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:56:07]
omqualitymap mode=setqualityimage outset=product/P0018140901OMS006IMAGE_0000.FIT set=product/P0018140901OMS006IMAGE_0000.FIT \
srclistset=product/P0018140901OMS006SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:56:07] ** omqualitymap: warning (parameter), srclistset = product/P0018140901OMS006SWSRLI0000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0018140901OMS006IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0018140901OMS006SWSRLI0000.FIT; 
# # [INFO] [2024-11-30T23:56:07] Task Run Time omqualitymap 0.0840280055999756s
#
# [COMMAND] [2024-11-30T23:56:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:07]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:56:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:56:07]
ommag set=product/P0018140901OMS006SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:56:07]
# TDP corr factor is: 1.07258451 
# L265 tdpCorrFactor= 1.07258451 
# L348 getting the column data
# In: 2.10076928 12.8667269 1 768
# X,Y,pdepcorr: 770.100769 668.866699 1.00000000 
# In: 238.391937 16.1333733 1 768
# X,Y,pdepcorr: 1006.39197 672.133362 1.00000000 
# In: 600.389160 70.4097214 1 768
# X,Y,pdepcorr: 1368.38916 726.409729 1.00000000 
# In: 617.848389 79.9144440 1 768
# X,Y,pdepcorr: 1385.84839 735.914429 1.00000000 
# In: 170.575943 101.563995 1 768
# X,Y,pdepcorr: 938.575928 757.563965 1.00000000 
# In: 193.061874 154.698807 1 768
# X,Y,pdepcorr: 961.061890 810.698792 1.00000000 
# In: 548.261841 587.776245 1 768
# X,Y,pdepcorr: 1316.26184 1243.77625 1.00000000 
# In: 405.211731 621.878296 1 768
# X,Y,pdepcorr: 1173.21167 1277.87830 1.00000000 
# In: 233.935883 71.2065125 1 768
# X,Y,pdepcorr: 1001.93591 727.206543 1.00000000 
# # [INFO] [2024-11-30T23:56:07] Task Run Time ommag 0.0606820583343506s
#
# [COMMAND] [2024-11-30T23:56:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:07]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:56:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:56:07]
omatt catfile=product/P0018140901OBX000REFCAT0000.FIT ppsoswset=product/P0018140901OMS006SIMAGE0000.FIT \
set=product/P0018140901OMS006IMAGE_0000.FIT sourcelistset=product/P0018140901OMS006SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:56:12]
# # [INFO] [2024-11-30T23:56:12] Task Run Time omatt 4.47868394851685s
#
# [COMMAND] [2024-11-30T23:56:12]
export \
PFILES=/scratch/226787.1.all.q/xmm/ppsprod/229932/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:56:12]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:12]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:56:12] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:56:12]
fimgstat clobber=Y infile=product/P0018140901OMS006SIMAGE0000.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:56:12]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:56:12] Task Run Time fimgstat 0.0225939750671387s
#
# # [INFO] [2024-11-30T23:56:12] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0018140901OMS006SIMAGE0000.FIT\
#     --outfile=product/P0018140901OMS006SIMAGE0000.PNG
# [COMMAND] [2024-11-30T23:56:12]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:12]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:56:12] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:56:12]
implot.py --fitsImage=product/P0018140901OMS006SIMAGE0000.FIT --outfile=product/P0018140901OMS006SIMAGE0000.PNG
# # [OUTPUT] [2024-11-30T23:56:14] Image shape. y,x: (711, 694) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (710, 693) x/y ratio: 0.98 
# # [INFO] [2024-11-30T23:56:14] Task Run Time implot.py 2.4473888874054s
#
# # [INFO] [2024-11-30T23:56:14] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:56:14] 0 images to process.
# # [INFO] [2024-11-30T23:56:14] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:56:14] 0 images to process.
# # [INFO] [2024-11-30T23:56:14] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:56:14] 0 images to process.
# # [INFO] [2024-11-30T23:56:14] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:56:14] 0 images to process.
# # [INFO] [2024-11-30T23:56:14] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:56:14] 0 images to process.
# # [INFO] [2024-11-30T23:56:14] All images processed
# # [INFO] [2024-11-30T23:56:14] Writing accounting information
# # [INFO] [2024-11-30T23:56:14] DEBUG: sourcedetails array: $VAR1 = [
# 'product/P0018140901OMS006SWSRLI0000.FIT|USER|S '
# ]; 
# # [INFO] [2024-11-30T23:56:14] DEBUG: skyimagedetails array: $VAR1 = [
# 'product/P0018140901OMS006SIMAGE0000.FIT|USER|S|1.80000000000000E+03|S006 '
# ]; 
# # [INFO] [2024-11-30T23:56:14] Module name: OMMosaic
# # [INFO] [2024-11-30T23:56:14] Instrument: om
# # [INFO] [2024-11-30T23:56:14] Stream no.: 0001
# # [INFO] [2024-11-30T23:56:14] Module version number: 2.39
# # [INFO] [2024-11-30T23:56:14] Looking For Images to Mosaic...
# # [INFO] [2024-11-30T23:56:14] Running addtomosaic.py on\
#     intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# # [INFO] [2024-11-30T23:56:14] DEBUG - doCommand fullcmd : addtomosaic.py\
#     --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# [COMMAND] [2024-11-30T23:56:14]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:14]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:56:14] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:56:14]
addtomosaic.py --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# # [OUTPUT] [2024-11-30T23:56:15] intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# ['product/P0018140901OMS006SIMAGE0000.FIT|USER|S|1.80000000000000E+03|S006|1\n'] 
# # [INFO] [2024-11-30T23:56:15] Task Run Time addtomosaic.py 0.976600170135498s
#
# # [INFO] [2024-11-30T23:56:15] Found 1 Images
# # [INFO] [2024-11-30T23:56:15] Grouping Images by Mode then Filter
# # [INFO] [2024-11-30T23:56:15] Mode: ALL
# # [INFO] [2024-11-30T23:56:15] Filter: S
# # [INFO] [2024-11-30T23:56:15] Image File : product/P0018140901OMS006SIMAGE0000.FIT
# # [INFO] [2024-11-30T23:56:15] Creating Images...
# # [INFO] [2024-11-30T23:56:15] MODE: ALL
# # [INFO] [2024-11-30T23:56:15] FILTER: S
# # [INFO] [2024-11-30T23:56:15] CREATING: product/P0018140901OMX000XSIMAGS000.FIT, Duration: 1800
# [COMMAND] [2024-11-30T23:56:15]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:15]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:56:15] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:56:15]
ommosaic imagesets=product/P0018140901OMS006SIMAGE0000.FIT mincorr=0 mosaicedset=product/P0018140901OMX000XSIMAGS000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:56:23] L1109 c3 xLeft=314.389237 xRight=314.282012 
# 82.346 314.329 30.9949 
# # [INFO] [2024-11-30T23:56:23] Task Run Time ommosaic 7.94038200378418s
#
# # [INFO] [2024-11-30T23:56:23] Only one exposure in mosaic. No omdetect,ommag and omqualitymap 
# # [INFO] [2024-11-30T23:56:23] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0018140901OMX000XSIMAGS000.FIT\
#     --outfile=product/P0018140901OMX000XSIMAGS000.PNG
# [COMMAND] [2024-11-30T23:56:23]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:23]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:56:23] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:56:23]
implot.py --fitsImage=product/P0018140901OMX000XSIMAGS000.FIT --outfile=product/P0018140901OMX000XSIMAGS000.PNG
# # [OUTPUT] [2024-11-30T23:56:26] Image shape. y,x: (711, 695) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (710, 694) x/y ratio: 0.98 
# # [INFO] [2024-11-30T23:56:26] Task Run Time implot.py 2.69748520851135s
#
# # [INFO] [2024-11-30T23:56:26] Done: ALL
# # [INFO] [2024-11-30T23:56:26] Module name: OMSourceCombine
# # [INFO] [2024-11-30T23:56:26] Instrument: om
# # [INFO] [2024-11-30T23:56:26] Stream no.: 0001
# # [INFO] [2024-11-30T23:56:26] Module version number: 3.9
# # [INFO] [2024-11-30T23:56:26] Looking For Source Lists to Combine...
# # [INFO] [2024-11-30T23:56:26] DEBUG: file: intermediate/OMImageAnalyse-om-1-OM_SRC_IMAGE_DETAILS-S00600000000000.ascii
# # [INFO] [2024-11-30T23:56:26] DEBUG: line product/P0018140901OMS006SWSRLI0000.FIT|USER|S
# # [INFO] [2024-11-30T23:56:26] DEBUG: split to tmp: $VAR1 = [
# 'product/P0018140901OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:56:26] DEBUG: SrcLstDetails: $VAR1 = [
# [
# 'product/P0018140901OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]
# ]; 
# # [INFO] [2024-11-30T23:56:26] Found 1 Lists
# # [INFO] [2024-11-30T23:56:26] Grouping Lists by Mode then Filter
# # [INFO] [2024-11-30T23:56:26] DEBUG: SortedSrcLstDetails: $VAR1 = [
# [
# 'product/P0018140901OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]
# ]; 
# # [INFO] [2024-11-30T23:56:26] Mode: USER
# # [INFO] [2024-11-30T23:56:26] DEBUG: Src: ARRAY(0x4c79be0)
# # [INFO] [2024-11-30T23:56:26] DEBUG: mode_p: 1
# # [INFO] [2024-11-30T23:56:26] DEBUG: SSrc[modep]: USER
# # [INFO] [2024-11-30T23:56:26] DEBUG: SSrc[filterp]: S
# # [INFO] [2024-11-30T23:56:26] Filter: S
# # [INFO] [2024-11-30T23:56:26] Image File : product/P0018140901OMS006SWSRLI0000.FIT
# # [INFO] [2024-11-30T23:56:26] Creating Combined Lists...
# # [INFO] [2024-11-30T23:56:26] MODE: USER
# # [INFO] [2024-11-30T23:56:26] FILTER: S
# # [INFO] [2024-11-30T23:56:26] Done: USER
# # [INFO] [2024-11-30T23:56:26] CREATING: product/P0018140901OMX000OBSMLI0000.FIT
# [COMMAND] [2024-11-30T23:56:26]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:26]
export SAS_RAND_SEED=0018140901
# # [INFO] [2024-11-30T23:56:26] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0018140901
# [COMMAND] [2024-11-30T23:56:26]
omsrclistcomb catfile=product/P0018140901OBX000REFCAT0000.FIT outset=product/P0018140901OMX000OBSMLI0000.FIT \
sourcelistsets=product/P0018140901OMS006SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:56:27]
# # [INFO] [2024-11-30T23:56:27] Task Run Time omsrclistcomb 0.765168905258179s
#
# # [INFO] [2024-11-30T23:56:27] No MOSAIC lists to combine
