
#!/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:50:02] Module name: VerifyODF
# # [INFO] [2024-11-30T23:50:02] Instrument: all
# # [INFO] [2024-11-30T23:50:02] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:02] Module version number: 1.18
# # [INFO] [2024-11-30T23:50:02] Version of odfingest used was 3.33.1
# # [INFO] [2024-11-30T23:50:02] Module name: MakeCIF
# # [INFO] [2024-11-30T23:50:02] Instrument: all
# # [INFO] [2024-11-30T23:50:02] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:02] Module version number: 1.23
# # [INFO] [2024-11-30T23:50:02] Observation start defined as >2002-05-22T09:32:45.000<
# # [INFO] [2024-11-30T23:50:02] Processing date defined as >2024-12-01T00:50:02<
# [COMMAND] [2024-11-30T23:50:02]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:02]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:02] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:02]
cifbuild analysisdate=2024-12-01T00:50:02 calindexset=product/P0082140401OBX000CALIND0000.FIT fullpath=no \
observationdate=2002-05-22T09:32:45.000 withccfpath=no -w 10
# # [OUTPUT] [2024-11-30T23:50:31]
# # [INFO] [2024-11-30T23:50:31] Task Run Time cifbuild 29.122466802597s
#
# [COMMAND] [2024-11-30T23:50:31]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:31]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:31] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:31]
addattribute attributecomment="\"Telescope (mission) name\" \"Name of observed object\" \"Date observations were made\" \"Date \
observations ended\" \"Name of PI\" \"RA of instrument pointing (degrees)\" \"Observation mode (pointing or slew)\" \"DEC of \
instrument pointing\" \"Observation identifier\"" attributename="TELESCOP OBJECT DATE-OBS DATE-END OBSERVER RA_PNT OBS_MODE DEC_PNT \
OBS_ID" attributetype="string string string string string real string real string" realvalue="\"169.7299995\" \"13.0927777\"" \
set=product/P0082140401OBX000CALIND0000.FIT stringvalue="\"XMM\" \"NGC3623\" \"2002-05-22T09:32:45.000\" \"2002-05-22T10:17:33.000\" \
\"Dr Jimmy Irwin\" \"POINTED\" \"0082140401\"" -w 10
# # [OUTPUT] [2024-11-30T23:50:31]
# # [INFO] [2024-11-30T23:50:31] Task Run Time addattribute 0.0780210494995117s
#
# [COMMAND] [2024-11-30T23:50:31]
cp /scratch/226331.1.all.q/xmm/ppsprod/229476/product/P0082140401OBX000CALIND0000.FIT \
/scratch/226331.1.all.q/xmm/ppsprod/229476/intermediate/ccf.cif
# # [INFO] [2024-11-30T23:50:31] System RV 0
# # [INFO] [2024-11-30T23:50:31] Module name: GlobalHK
# # [INFO] [2024-11-30T23:50:31] Instrument: all
# # [INFO] [2024-11-30T23:50:31] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:31] Module version number: 1.81
# [COMMAND] [2024-11-30T23:50:31]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:31]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:31] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:31]
preqgti preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:50:32] ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 138446434.184\
#     which is more than 20 s outside the period for which the attitude is known (closest time is -31 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 138446434.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -31 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 138446435.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -30 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 138446435.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -30 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 138446436.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -29 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 138446436.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -29 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 138446437.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -28 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 138446437.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -28 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 138446438.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -27 s away).
# ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 138446438.184 which is more than 20 s outside the\
#     period for which the attitude is known (closest time is -27 s away).
# ** preqgti: warning (SummaryOfWarnings), 
# warning NoAttitude silently occurred 67260 times 
# # [INFO] [2024-11-30T23:50:32] Task Run Time preqgti 1.46234488487244s
#
# [COMMAND] [2024-11-30T23:50:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:32]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:32]
atthkgen atthkset=product/P0082140401OBX000ATTTSR0000.FIT preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
timestep=1 withpreqgti=no -w 10
# # [OUTPUT] [2024-11-30T23:50:33]
# # [INFO] [2024-11-30T23:50:33] Task Run Time atthkgen 0.18647289276123s
#
# [COMMAND] [2024-11-30T23:50:33]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:33]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:33] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:33]
orbit outfile=product/P0082140401OBX000ORBTSR0000.FIT timestep=1 useobsid=yes -w 10
# # [OUTPUT] [2024-11-30T23:50:33] orbit:- Output FITS Orbit timeseries: product/P0082140401OBX000ORBTSR0000.FIT
# orbit:- Binsize (timestep) of output): 1
# orbit:- Use OBSID data or whole orbit? T 
# # [INFO] [2024-11-30T23:50:33] Task Run Time orbit 0.158473014831543s
#
# [COMMAND] [2024-11-30T23:50:33]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:33]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:33] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:33]
radmonfix output=product/P0082140401OBX000RADMON0000.FIT radmonlist=odf/0449_0082140401_RMX00100ECX.FIT withoutputfile=yes -w 10
# # [OUTPUT] [2024-11-30T23:50:33] ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=59684461.95 which\
#     is outside the time correlation data abscissa range [59684859.93, 59688931.57] - result of extrapolation might be afflicted\
#     with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=59684465.95 which is outside the time correlation\
#     data abscissa range [59684859.93, 59688931.57] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=59684469.95 which is outside the time correlation\
#     data abscissa range [59684859.93, 59688931.57] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=59684473.95 which is outside the time correlation\
#     data abscissa range [59684859.93, 59688931.57] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=59684477.95 which is outside the time correlation\
#     data abscissa range [59684859.93, 59688931.57] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=59684481.95 which is outside the time correlation\
#     data abscissa range [59684859.93, 59688931.57] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=59684485.95 which is outside the time correlation\
#     data abscissa range [59684859.93, 59688931.57] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=59684489.95 which is outside the time correlation\
#     data abscissa range [59684859.93, 59688931.57] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=59684493.95 which is outside the time correlation\
#     data abscissa range [59684859.93, 59688931.57] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=59684497.95 which is outside the time correlation\
#     data abscissa range [59684859.93, 59688931.57] - result of extrapolation might be afflicted with large numerical uncertainty.
# radmonfix:- Setting DATE-END...
# ** radmonfix: warning (SummaryOfWarnings), 
# warning Extrapolation silently occurred 130 times 
# # [INFO] [2024-11-30T23:50:33] Task Run Time radmonfix 0.0796060562133789s
#
# [COMMAND] [2024-11-30T23:50:33]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/EPICModes.fits \
/scratch/226331.1.all.q/xmm/ppsprod/229476/intermediate/GlobalHK-all-1-Observing_modes_Pileup_and_OoT_data-X00000000000000.fits
# # [INFO] [2024-11-30T23:50:33] System RV 0
# # [INFO] [2024-11-30T23:50:33] Copied EPIC Observing modes table, Pileup data and OoT data table in place
# [COMMAND] [2024-11-30T23:50:33]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfs.fits \
/scratch/226331.1.all.q/xmm/ppsprod/229476/intermediate/GlobalHK-all-1-Energy_Conversion_Factors-X00000000000000.fits
# # [INFO] [2024-11-30T23:50:33] System RV 0
# [COMMAND] [2024-11-30T23:50:33]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfgrid.fits.gz \
/scratch/226331.1.all.q/xmm/ppsprod/229476/intermediate/GlobalHK-all-1-Energy_Conversion_Factors_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:50:33] System RV 0
# [COMMAND] [2024-11-30T23:50:33]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/fluxgrid.fits.gz \
/scratch/226331.1.all.q/xmm/ppsprod/229476/intermediate/GlobalHK-all-1-Flux_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:50:33] System RV 0
# # [INFO] [2024-11-30T23:50:33] Module name: ExpChooser
# # [INFO] [2024-11-30T23:50:33] Instrument: emos1
# # [INFO] [2024-11-30T23:50:33] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:33] Module version number: 1.38
# # [INFO] [2024-11-30T23:50:33] Checking exposure S003 for processability
# # [INFO] [2024-11-30T23:50:33] Filter: CalClosed
# # [INFO] [2024-11-30T23:50:33] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:50:33] Exposure duration: 2534
# # [INFO] [2024-11-30T23:50:33] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:50:33] Module name: ExpChooser
# # [INFO] [2024-11-30T23:50:33] Instrument: emos2
# # [INFO] [2024-11-30T23:50:33] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:33] Module version number: 1.38
# # [INFO] [2024-11-30T23:50:33] Checking exposure S004 for processability
# # [INFO] [2024-11-30T23:50:33] Filter: CalClosed
# # [INFO] [2024-11-30T23:50:33] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:50:33] Exposure duration: 2534
# # [INFO] [2024-11-30T23:50:33] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:50:33] Module name: ExpChooser
# # [INFO] [2024-11-30T23:50:33] Instrument: om
# # [INFO] [2024-11-30T23:50:33] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:33] Module version number: 1.38
# # [INFO] [2024-11-30T23:50:33] Checking exposure S006 for processability
# # [INFO] [2024-11-30T23:50:33] Filter: UVW2
# # [INFO] [2024-11-30T23:50:33] Instrument mode: Image
# # [INFO] [2024-11-30T23:50:33] Exposure duration: 2500
# # [INFO] [2024-11-30T23:50:33] Module name: ExpChooser
# # [INFO] [2024-11-30T23:50:33] Instrument: om
# # [INFO] [2024-11-30T23:50:33] Stream no.: 0002
# # [INFO] [2024-11-30T23:50:33] Module version number: 1.38
# # [INFO] [2024-11-30T23:50:33] Checking exposure S400 for processability
# # [INFO] [2024-11-30T23:50:33] Filter: UVW2
# # [INFO] [2024-11-30T23:50:33] Instrument mode: UNDEFINED
# # [INFO] [2024-11-30T23:50:33] Exposure duration: 2500
# # [INFO] [2024-11-30T23:50:33] OM datamode=
# # [INFO] [2024-11-30T23:50:33] Exposure ignored due to invalid or unsupported instrument mode
# # [INFO] [2024-11-30T23:50:33] Module name: InstrumentHK
# # [INFO] [2024-11-30T23:50:33] Instrument: om
# # [INFO] [2024-11-30T23:50:33] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:33] Module version number: 2.01
# # [INFO] [2024-11-30T23:50:33] Module name: USNOExtract
# # [INFO] [2024-11-30T23:50:33] Instrument: all
# # [INFO] [2024-11-30T23:50:33] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:33] Module version number: 0.07
# [COMMAND] [2024-11-30T23:50:33]
export \
PFILES=/scratch/226331.1.all.q/xmm/ppsprod/229476/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:50:33]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:33]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:33] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:33]
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:50:33] Written the output image ......... 
# # [INFO] [2024-11-30T23:50:33] Task Run Time fimgcreate 0.134743213653564s
#
# [COMMAND] [2024-11-30T23:50:33]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:33]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:33] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:33]
catprep catextract=intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
srclistset=product/P0082140401OBX000CALIND0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:50:34]
# # [INFO] [2024-11-30T23:50:34] Task Run Time catprep 1.3489100933075s
#
# [COMMAND] [2024-11-30T23:50:34]
cp /scratch/226331.1.all.q/xmm/ppsprod/229476/intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
/scratch/226331.1.all.q/xmm/ppsprod/229476/product/P0082140401OBX000REFCAT0000.FIT
# # [INFO] [2024-11-30T23:50:34] System RV 0
# # [INFO] [2024-11-30T23:50:34] Reading keyword DATE-OBS value 2002-05-22T09:32:45.000 comment Date observations were made
# # [INFO] [2024-11-30T23:50:34] Reading keyword TELESCOP value XMM comment Telescope (mission) name
# # [INFO] [2024-11-30T23:50:34] Reading keyword OBS_MODE value POINTING comment Observation mode (pointing or slew)
# # [INFO] [2024-11-30T23:50:34] Reading keyword DEC_OBJ value 1.30927777000000E+01 comment [deg] Dec of the observed object
# # [INFO] [2024-11-30T23:50:34] Reading keyword DATE-END value 2002-05-22T10:17:33.000 comment Date observations ended
# # [INFO] [2024-11-30T23:50:34] Reading keyword RA_OBJ value 1.69729999500000E+02 comment [deg] Ra of the observed object
# # [INFO] [2024-11-30T23:50:34] Reading keyword OBS_ID value 0082140401 comment Observation identifier
# [COMMAND] [2024-11-30T23:50:34]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:34]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:34] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:34]
addattribute attributecomment="\"Date observations were made\" \"Telescope (mission) name\" \"Observation mode (pointing or slew)\" \
\"[deg] Dec of the observed object\" \"Date observations ended\" \"[deg] Ra of the observed object\" \"Observation identifier\"" \
attributename="DATE-OBS TELESCOP OBS_MODE DEC_OBJ DATE-END RA_OBJ OBS_ID" attributetype="\"string\" \"string\" \"string\" \"real\" \
\"string\" \"real\" \"string\"" realvalue="1.30927777000000E+01 1.69729999500000E+02" set=product/P0082140401OBX000REFCAT0000.FIT \
stringvalue="2002-05-22T09:32:45.000 XMM POINTING 2002-05-22T10:17:33.000 0082140401" -w 10
# # [OUTPUT] [2024-11-30T23:50:35] ** addattribute: warning (creatorKeywordNotFound), The CREATOR keyword could not be found in\
#     dataset with name 'product/P0082140401OBX000REFCAT0000.FIT'
# ** addattribute: warning (dateKeywordNotFound), The DATE keyword could not be found in dataset with name\
#     'product/P0082140401OBX000REFCAT0000.FIT' 
# # [INFO] [2024-11-30T23:50:35] Task Run Time addattribute 0.0976560115814209s
#
# # [INFO] [2024-11-30T23:50:35] Module name: OMgetFlat
# # [INFO] [2024-11-30T23:50:35] Instrument: om
# # [INFO] [2024-11-30T23:50:35] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:35] Module version number: 1.07
# [COMMAND] [2024-11-30T23:50:35]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:35]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:35] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:35]
omflatgen outset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:50:35] ** omflatgen: warning (ArgumentIgnored), Warning: countRateFrameRatio argument in small-scale\
#     flatfield retrieval currently ignored 
# # [INFO] [2024-11-30T23:50:35] Task Run Time omflatgen 0.241183996200562s
#
# # [INFO] [2024-11-30T23:50:35] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:50:35] Instrument: om
# # [INFO] [2024-11-30T23:50:35] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:35] Module version number: 1.06
# [COMMAND] [2024-11-30T23:50:35]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:35]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:35] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:35]
omprep modeset=3 nphset=odf/0449_0082140401_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00600000000000.fits pehset=odf/0449_0082140401_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0449_0082140401_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:50:35] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:50:35] Task Run Time omprep 0.0984351634979248s
#
# # [INFO] [2024-11-30T23:50:35] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:50:35] Instrument: om
# # [INFO] [2024-11-30T23:50:35] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:35] Module version number: 1.36
# # [INFO] [2024-11-30T23:50:35] DEBUG --- exp_id: S006, filter: UVW2
# # [INFO] [2024-11-30T23:50:35] No Fast Mode Windows to process
# # [INFO] [2024-11-30T23:50:35] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:50:35] Instrument: om
# # [INFO] [2024-11-30T23:50:35] Stream no.: 0001
# # [INFO] [2024-11-30T23:50:35] Module version number: 3.28
# # [INFO] [2024-11-30T23:50:35] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:50:35] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:50:35] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:50:35] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:50:35] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:50:35] Found 1 Image mode images.
# # [INFO] [2024-11-30T23:50:35] Analysing odf/0449_0082140401_OMS00600IMI.FIT for image identification
# # [INFO] [2024-11-30T23:50:35] Identified mode: USER
# # [INFO] [2024-11-30T23:50:35] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:50:35] Processing USER Images.
# # [INFO] [2024-11-30T23:50:35] 1 images to process.
# # [INFO] [2024-11-30T23:50:35] Processing S006:0:odf/0449_0082140401_OMS00600IMI.FIT
# [COMMAND] [2024-11-30T23:50:35]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:35]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:35] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:35]
omprep modeset=0 nphset=odf/0449_0082140401_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-1-Raw_Image-S00600000000000.fits \
pehset=odf/0449_0082140401_OMX00000PEH.FIT set=odf/0449_0082140401_OMS00600IMI.FIT wdxset=odf/0449_0082140401_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:50:35] ** omprep: warning ( 1792 Negative Pixel values encountered), PIXEL VALUES RESET TO ZERO
# ** omprep: warning (NoSuchIPPV), There is no IPPV `DATA_MODE_1' in the actual exposure 
# # [INFO] [2024-11-30T23:50:35] Task Run Time omprep 0.129288911819458s
#
# # [INFO] [2024-11-30T23:50:35] Retrieving FILTER value
# # [INFO] [2024-11-30T23:50:35] FILTER = S
# # [INFO] [2024-11-30T23:50:35] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:50:35] EXPOSURE = 2.50000000000000E+03
# [COMMAND] [2024-11-30T23:50:35]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:35]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:35] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:35]
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:50:35]
# # [INFO] [2024-11-30T23:50:35] Task Run Time omcosflag 0.247237205505371s
#
# [COMMAND] [2024-11-30T23:50:35]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:35]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:35] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:35]
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:50:36]
# # [INFO] [2024-11-30T23:50:36] Task Run Time omflatfield 0.108342170715332s
#
# [COMMAND] [2024-11-30T23:50:36]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:36]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:36] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:36]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-1-OSW_MODULO_8_IMAGE-S00600000000000.fits nbox=16 nsig=6 \
outset=product/P0082140401OMS006IMAGE_0000.FIT set=intermediate/OMImageAnalyse-om-1-OSW_Flat_Fielded_Image-S00600000000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:50:41] ** ommodmap: warning (InputOSW), The pixel i= 1362 j= 1090 is unrealistically bright
# ** ommodmap: warning (InputOSW), The pixel i= 1362 j= 1091 is unrealistically bright
# ** ommodmap: warning (InputOSW), The pixel i= 1369 j= 819 is unrealistically bright
# ** ommodmap: warning (InputOSW), The pixel i= 1377 j= 694 is unrealistically bright
# ** ommodmap: warning (InputOSW), The pixel i= 1377 j= 695 is unrealistically bright
# ** ommodmap: warning (InputOSW), The pixel i= 1377 j= 696 is unrealistically bright
# ** ommodmap: warning (InputOSW), The pixel i= 1377 j= 697 is unrealistically bright
# ** ommodmap: warning (InputOSW), The pixel i= 1377 j= 698 is unrealistically bright
# ** ommodmap: warning (InputOSW), The pixel i= 1377 j= 699 is unrealistically bright
# ** ommodmap: warning (InputOSW), The pixel i= 1377 j= 700 is unrealistically bright
# ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise.
# ** ommodmap: warning (SummaryOfWarnings), 
# warning InputOSW silently occurred 4 times 
# # [INFO] [2024-11-30T23:50:41] Task Run Time ommodmap 5.33839416503906s
#
# [COMMAND] [2024-11-30T23:50:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:41]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:41]
omqualitymap mode=setqualityimage outset=product/P0082140401OMS006IMAGE_0000.FIT set=product/P0082140401OMS006IMAGE_0000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:50:41] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0082140401OMS006IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:50:41] Task Run Time omqualitymap 0.184812068939209s
#
# [COMMAND] [2024-11-30T23:50:41]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:41]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:41] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:41]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0082140401OMS006SWSRLI0000.FIT \
regionfile=product/P0082140401OMS006SWSREG0000.ASC set=product/P0082140401OMS006IMAGE_0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:50:57]
# # [INFO] [2024-11-30T23:50:57] Task Run Time omdetect 15.789078950882s
#
# [COMMAND] [2024-11-30T23:50:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:57]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:57]
omqualitymap mode=setqualityimage outset=product/P0082140401OMS006IMAGE_0000.FIT set=product/P0082140401OMS006IMAGE_0000.FIT \
srclistset=product/P0082140401OMS006SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:50:57] ** omqualitymap: warning (parameter), srclistset = product/P0082140401OMS006SWSRLI0000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0082140401OMS006IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0082140401OMS006SWSRLI0000.FIT; 
# # [INFO] [2024-11-30T23:50:57] Task Run Time omqualitymap 0.150254011154175s
#
# [COMMAND] [2024-11-30T23:50:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:57]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:57]
ommag set=product/P0082140401OMS006SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:50:57]
# TDP corr factor is: 1.07441008 
# L265 tdpCorrFactor= 1.07441008 
# L348 getting the column data
# In: 285.814514 59.7166405 1 767
# X,Y,pdepcorr: 1052.81445 732.716614 1.00000000 
# In: 177.592453 532.688843 1 767
# X,Y,pdepcorr: 944.592468 1205.68884 1.00000000 
# In: 611.000000 29.0357151 1 767
# X,Y,pdepcorr: 1378.00000 702.035706 1.00000000 
# In: 596.000000 418.500000 1 767
# X,Y,pdepcorr: 1363.00000 1091.50000 1.00000000 
# In: 216.132233 158.906357 1 767
# X,Y,pdepcorr: 983.132202 831.906372 1.00000000 
# # [INFO] [2024-11-30T23:50:57] Task Run Time ommag 0.1127769947052s
#
# [COMMAND] [2024-11-30T23:50:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:50:57]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:50:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:50:57]
omatt catfile=product/P0082140401OBX000REFCAT0000.FIT ppsoswset=product/P0082140401OMS006SIMAGE0000.FIT \
set=product/P0082140401OMS006IMAGE_0000.FIT sourcelistset=product/P0082140401OMS006SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:51:03] ** omatt: warning (Too few guide stars for astrometry correction), Catalogue has not been used to\
#     correct positions 
# # [INFO] [2024-11-30T23:51:03] Task Run Time omatt 5.59100389480591s
#
# [COMMAND] [2024-11-30T23:51:03]
export \
PFILES=/scratch/226331.1.all.q/xmm/ppsprod/229476/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:51:03]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:51:03]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:51:03] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:51:03]
fimgstat clobber=Y infile=product/P0082140401OMS006SIMAGE0000.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:51:03]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:51:03] Task Run Time fimgstat 0.0606420040130615s
#
# # [INFO] [2024-11-30T23:51:03] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0082140401OMS006SIMAGE0000.FIT\
#     --outfile=product/P0082140401OMS006SIMAGE0000.PNG
# [COMMAND] [2024-11-30T23:51:03]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:51:03]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:51:03] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:51:03]
implot.py --fitsImage=product/P0082140401OMS006SIMAGE0000.FIT --outfile=product/P0082140401OMS006SIMAGE0000.PNG
# # [OUTPUT] [2024-11-30T23:51:07] Image shape. y,x: (839, 814) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (838, 813) x/y ratio: 0.97 
# # [INFO] [2024-11-30T23:51:07] Task Run Time implot.py 4.21590614318848s
#
# # [INFO] [2024-11-30T23:51:07] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:51:07] 0 images to process.
# # [INFO] [2024-11-30T23:51:07] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:51:07] 0 images to process.
# # [INFO] [2024-11-30T23:51:07] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:51:07] 0 images to process.
# # [INFO] [2024-11-30T23:51:07] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:51:07] 0 images to process.
# # [INFO] [2024-11-30T23:51:07] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:51:07] 0 images to process.
# # [INFO] [2024-11-30T23:51:07] All images processed
# # [INFO] [2024-11-30T23:51:07] Writing accounting information
# # [INFO] [2024-11-30T23:51:07] DEBUG: sourcedetails array: $VAR1 = [
# 'product/P0082140401OMS006SWSRLI0000.FIT|USER|S '
# ]; 
# # [INFO] [2024-11-30T23:51:07] DEBUG: skyimagedetails array: $VAR1 = [
# 'product/P0082140401OMS006SIMAGE0000.FIT|USER|S|2.50000000000000E+03|S006 '
# ]; 
# # [INFO] [2024-11-30T23:51:07] Module name: OMMosaic
# # [INFO] [2024-11-30T23:51:07] Instrument: om
# # [INFO] [2024-11-30T23:51:07] Stream no.: 0001
# # [INFO] [2024-11-30T23:51:07] Module version number: 2.39
# # [INFO] [2024-11-30T23:51:07] Looking For Images to Mosaic...
# # [INFO] [2024-11-30T23:51:07] Running addtomosaic.py on\
#     intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# # [INFO] [2024-11-30T23:51:07] DEBUG - doCommand fullcmd : addtomosaic.py\
#     --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# [COMMAND] [2024-11-30T23:51:07]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:51:07]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:51:07] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:51:07]
addtomosaic.py --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# # [OUTPUT] [2024-11-30T23:51:09] intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# ['product/P0082140401OMS006SIMAGE0000.FIT|USER|S|2.50000000000000E+03|S006|1\n'] 
# # [INFO] [2024-11-30T23:51:09] Task Run Time addtomosaic.py 1.81302499771118s
#
# # [INFO] [2024-11-30T23:51:09] Found 1 Images
# # [INFO] [2024-11-30T23:51:09] Grouping Images by Mode then Filter
# # [INFO] [2024-11-30T23:51:09] Mode: ALL
# # [INFO] [2024-11-30T23:51:09] Filter: S
# # [INFO] [2024-11-30T23:51:09] Image File : product/P0082140401OMS006SIMAGE0000.FIT
# # [INFO] [2024-11-30T23:51:09] Creating Images...
# # [INFO] [2024-11-30T23:51:09] MODE: ALL
# # [INFO] [2024-11-30T23:51:09] FILTER: S
# # [INFO] [2024-11-30T23:51:09] CREATING: product/P0082140401OMX000XSIMAGS000.FIT, Duration: 2500
# [COMMAND] [2024-11-30T23:51:09]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:51:09]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:51:09] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:51:09]
ommosaic imagesets=product/P0082140401OMS006SIMAGE0000.FIT mincorr=0 mosaicedset=product/P0082140401OMX000XSIMAGS000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:51:22] ** ommosaic: warning (noAstrometryCorrection), No sky images have had a successful astrometry\
#     correction
# L1109 c3 xLeft=169.785120 xRight=169.674475 
# 295.211 169.739 13.0937 
# # [INFO] [2024-11-30T23:51:22] Task Run Time ommosaic 12.8301999568939s
#
# # [INFO] [2024-11-30T23:51:22] Only one exposure in mosaic. No omdetect,ommag and omqualitymap 
# # [INFO] [2024-11-30T23:51:22] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0082140401OMX000XSIMAGS000.FIT\
#     --outfile=product/P0082140401OMX000XSIMAGS000.PNG
# [COMMAND] [2024-11-30T23:51:22]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:51:22]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:51:22] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:51:22]
implot.py --fitsImage=product/P0082140401OMX000XSIMAGS000.FIT --outfile=product/P0082140401OMX000XSIMAGS000.PNG
# # [OUTPUT] [2024-11-30T23:51:26] Image shape. y,x: (839, 815) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (838, 814) x/y ratio: 0.97 
# # [INFO] [2024-11-30T23:51:26] Task Run Time implot.py 4.69758486747742s
#
# # [INFO] [2024-11-30T23:51:26] Done: ALL
# # [INFO] [2024-11-30T23:51:26] Module name: OMSourceCombine
# # [INFO] [2024-11-30T23:51:26] Instrument: om
# # [INFO] [2024-11-30T23:51:26] Stream no.: 0001
# # [INFO] [2024-11-30T23:51:26] Module version number: 3.9
# # [INFO] [2024-11-30T23:51:26] Looking For Source Lists to Combine...
# # [INFO] [2024-11-30T23:51:26] DEBUG: file: intermediate/OMImageAnalyse-om-1-OM_SRC_IMAGE_DETAILS-S00600000000000.ascii
# # [INFO] [2024-11-30T23:51:26] DEBUG: line product/P0082140401OMS006SWSRLI0000.FIT|USER|S
# # [INFO] [2024-11-30T23:51:26] DEBUG: split to tmp: $VAR1 = [
# 'product/P0082140401OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:51:26] DEBUG: SrcLstDetails: $VAR1 = [
# [
# 'product/P0082140401OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]
# ]; 
# # [INFO] [2024-11-30T23:51:26] Found 1 Lists
# # [INFO] [2024-11-30T23:51:26] Grouping Lists by Mode then Filter
# # [INFO] [2024-11-30T23:51:27] DEBUG: SortedSrcLstDetails: $VAR1 = [
# [
# 'product/P0082140401OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]
# ]; 
# # [INFO] [2024-11-30T23:51:27] Mode: USER
# # [INFO] [2024-11-30T23:51:27] DEBUG: Src: ARRAY(0x5c3ee70)
# # [INFO] [2024-11-30T23:51:27] DEBUG: mode_p: 1
# # [INFO] [2024-11-30T23:51:27] DEBUG: SSrc[modep]: USER
# # [INFO] [2024-11-30T23:51:27] DEBUG: SSrc[filterp]: S
# # [INFO] [2024-11-30T23:51:27] Filter: S
# # [INFO] [2024-11-30T23:51:27] Image File : product/P0082140401OMS006SWSRLI0000.FIT
# # [INFO] [2024-11-30T23:51:27] Creating Combined Lists...
# # [INFO] [2024-11-30T23:51:27] MODE: USER
# # [INFO] [2024-11-30T23:51:27] FILTER: S
# # [INFO] [2024-11-30T23:51:27] Done: USER
# # [INFO] [2024-11-30T23:51:27] CREATING: product/P0082140401OMX000OBSMLI0000.FIT
# [COMMAND] [2024-11-30T23:51:27]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:51:27]
export SAS_RAND_SEED=0082140401
# # [INFO] [2024-11-30T23:51:27] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0082140401
# [COMMAND] [2024-11-30T23:51:27]
omsrclistcomb catfile=product/P0082140401OBX000REFCAT0000.FIT outset=product/P0082140401OMX000OBSMLI0000.FIT \
sourcelistsets=product/P0082140401OMS006SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:51:27] ** omsrclistcomb: warning (Too few guide stars for astrometry correction), Catalogue has not been\
#     used to correct positions 
# # [INFO] [2024-11-30T23:51:27] Task Run Time omsrclistcomb 0.739480018615723s
#
# # [INFO] [2024-11-30T23:51:27] No MOSAIC lists to combine
