
#!/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:26] Module name: VerifyODF
# # [INFO] [2024-11-30T23:55:26] Instrument: all
# # [INFO] [2024-11-30T23:55:26] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:26] Module version number: 1.18
# # [INFO] [2024-11-30T23:55:26] Version of odfingest used was 3.33.1
# # [INFO] [2024-11-30T23:55:26] Module name: MakeCIF
# # [INFO] [2024-11-30T23:55:26] Instrument: all
# # [INFO] [2024-11-30T23:55:26] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:26] Module version number: 1.23
# # [INFO] [2024-11-30T23:55:26] Observation start defined as >2002-06-03T08:14:01.000<
# # [INFO] [2024-11-30T23:55:26] Processing date defined as >2024-12-01T00:55:26<
# [COMMAND] [2024-11-30T23:55:26]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:26]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:26] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:26]
cifbuild analysisdate=2024-12-01T00:55:26 calindexset=product/P0111360301OBX000CALIND0000.FIT fullpath=no \
observationdate=2002-06-03T08:14:01.000 withccfpath=no -w 10
# # [OUTPUT] [2024-11-30T23:55:55]
# # [INFO] [2024-11-30T23:55:55] Task Run Time cifbuild 28.9875769615173s
#
# [COMMAND] [2024-11-30T23:55:55]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:55]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:55] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:55]
addattribute attributecomment="\"Telescope (mission) name\" \"Observation identifier\" \"Name of PI\" \"Name of observed object\" \
\"Date observations were made\" \"RA of instrument pointing (degrees)\" \"DEC of instrument pointing\" \"Observation mode (pointing \
or slew)\" \"Date observations ended\"" attributename="TELESCOP OBS_ID OBSERVER OBJECT DATE-OBS RA_PNT DEC_PNT OBS_MODE DATE-END" \
attributetype="string string string string string real real string string" realvalue="\"326.166666\" \"38.3205556\"" \
set=product/P0111360301OBX000CALIND0000.FIT stringvalue="\"XMM\" \"0111360301\" \"Dr Bernd Aschenbach\" \"Cyg X-2\" \
\"2002-06-03T08:14:01.000\" \"POINTED\" \"2002-06-03T09:37:56.000\"" -w 10
# # [OUTPUT] [2024-11-30T23:55:55]
# # [INFO] [2024-11-30T23:55:55] Task Run Time addattribute 0.0300509929656982s
#
# [COMMAND] [2024-11-30T23:55:55]
cp /scratch/226821.1.all.q/xmm/ppsprod/229966/product/P0111360301OBX000CALIND0000.FIT \
/scratch/226821.1.all.q/xmm/ppsprod/229966/intermediate/ccf.cif
# # [INFO] [2024-11-30T23:55:55] System RV 0
# # [INFO] [2024-11-30T23:55:55] Module name: GlobalHK
# # [INFO] [2024-11-30T23:55:55] Instrument: all
# # [INFO] [2024-11-30T23:55:55] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:55] Module version number: 1.81
# [COMMAND] [2024-11-30T23:55:55]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:55]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:55] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:55]
preqgti preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:55:56] ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 139484378.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 139484378.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 139484379.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 139484379.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 139484380.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 139484380.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 139484381.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 139484381.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 139484382.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 139484382.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 47604 times 
# # [INFO] [2024-11-30T23:55:56] Task Run Time preqgti 1.06910014152527s
#
# [COMMAND] [2024-11-30T23:55:56]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:56]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:56] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:56]
atthkgen atthkset=product/P0111360301OBX000ATTTSR0000.FIT preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
timestep=1 withpreqgti=no -w 10
# # [OUTPUT] [2024-11-30T23:55:56]
# # [INFO] [2024-11-30T23:55:56] Task Run Time atthkgen 0.164591073989868s
#
# [COMMAND] [2024-11-30T23:55:56]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:56]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:56] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:56]
orbit outfile=product/P0111360301OBX000ORBTSR0000.FIT timestep=1 useobsid=yes -w 10
# # [OUTPUT] [2024-11-30T23:55:57] orbit:- Output FITS Orbit timeseries: product/P0111360301OBX000ORBTSR0000.FIT
# orbit:- Binsize (timestep) of output): 1
# orbit:- Use OBSID data or whole orbit? T 
# # [INFO] [2024-11-30T23:55:57] Task Run Time orbit 0.269506931304932s
#
# [COMMAND] [2024-11-30T23:55:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:57]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:57]
radmonfix output=product/P0111360301OBX000RADMON0000.FIT radmonlist="odf/0455_0111360301_RMX00100ECX.FIT \
odf/0455_0111360301_RMX00200ECX.FIT" withoutputfile=yes -w 10
# # [OUTPUT] [2024-11-30T23:55:57] ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=60715429.86 which\
#     is outside the time correlation data abscissa range [60716937.85, 60723162.62] - result of extrapolation might be afflicted\
#     with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=60715433.86 which is outside the time correlation\
#     data abscissa range [60716937.85, 60723162.62] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=60715437.86 which is outside the time correlation\
#     data abscissa range [60716937.85, 60723162.62] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=60715441.86 which is outside the time correlation\
#     data abscissa range [60716937.85, 60723162.62] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=60715445.86 which is outside the time correlation\
#     data abscissa range [60716937.85, 60723162.62] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=60715449.86 which is outside the time correlation\
#     data abscissa range [60716937.85, 60723162.62] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=60715453.86 which is outside the time correlation\
#     data abscissa range [60716937.85, 60723162.62] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=60715457.86 which is outside the time correlation\
#     data abscissa range [60716937.85, 60723162.62] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=60715461.86 which is outside the time correlation\
#     data abscissa range [60716937.85, 60723162.62] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=60715465.86 which is outside the time correlation\
#     data abscissa range [60716937.85, 60723162.62] - result of extrapolation might be afflicted with large numerical uncertainty.
# radmonfix:- Adding 1720 counts rows from row 525
# radmonfix:- Setting DATE-END...
# ** radmonfix: warning (SummaryOfWarnings), 
# warning Extrapolation silently occurred 628 times 
# # [INFO] [2024-11-30T23:55:57] Task Run Time radmonfix 0.0897490978240967s
#
# [COMMAND] [2024-11-30T23:55:57]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/EPICModes.fits \
/scratch/226821.1.all.q/xmm/ppsprod/229966/intermediate/GlobalHK-all-1-Observing_modes_Pileup_and_OoT_data-X00000000000000.fits
# # [INFO] [2024-11-30T23:55:57] System RV 0
# # [INFO] [2024-11-30T23:55:57] Copied EPIC Observing modes table, Pileup data and OoT data table in place
# [COMMAND] [2024-11-30T23:55:57]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfs.fits \
/scratch/226821.1.all.q/xmm/ppsprod/229966/intermediate/GlobalHK-all-1-Energy_Conversion_Factors-X00000000000000.fits
# # [INFO] [2024-11-30T23:55:57] System RV 0
# [COMMAND] [2024-11-30T23:55:57]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfgrid.fits.gz \
/scratch/226821.1.all.q/xmm/ppsprod/229966/intermediate/GlobalHK-all-1-Energy_Conversion_Factors_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:55:57] System RV 0
# [COMMAND] [2024-11-30T23:55:57]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/fluxgrid.fits.gz \
/scratch/226821.1.all.q/xmm/ppsprod/229966/intermediate/GlobalHK-all-1-Flux_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:55:57] System RV 0
# # [INFO] [2024-11-30T23:55:57] Module name: ExpChooser
# # [INFO] [2024-11-30T23:55:57] Instrument: emos1
# # [INFO] [2024-11-30T23:55:57] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:57] Module version number: 1.38
# # [INFO] [2024-11-30T23:55:57] Checking exposure S003 for processability
# # [INFO] [2024-11-30T23:55:57] Filter: CalClosed
# # [INFO] [2024-11-30T23:55:57] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:55:57] Exposure duration: 4627
# # [INFO] [2024-11-30T23:55:57] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:55:57] Module name: ExpChooser
# # [INFO] [2024-11-30T23:55:57] Instrument: emos2
# # [INFO] [2024-11-30T23:55:57] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:57] Module version number: 1.38
# # [INFO] [2024-11-30T23:55:57] Checking exposure S004 for processability
# # [INFO] [2024-11-30T23:55:57] Filter: CalClosed
# # [INFO] [2024-11-30T23:55:57] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:55:57] Exposure duration: 4628
# # [INFO] [2024-11-30T23:55:57] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:55:57] Module name: ExpChooser
# # [INFO] [2024-11-30T23:55:57] Instrument: epn
# # [INFO] [2024-11-30T23:55:57] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:57] Module version number: 1.38
# # [INFO] [2024-11-30T23:55:57] Checking exposure S005 for processability
# # [INFO] [2024-11-30T23:55:57] Filter: CalClosed
# # [INFO] [2024-11-30T23:55:57] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:55:57] Exposure duration: 2884
# # [INFO] [2024-11-30T23:55:57] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:55:57] Module name: ExpChooser
# # [INFO] [2024-11-30T23:55:57] Instrument: om
# # [INFO] [2024-11-30T23:55:57] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:57] Module version number: 1.38
# # [INFO] [2024-11-30T23:55:57] Checking exposure S006 for processability
# # [INFO] [2024-11-30T23:55:57] Filter: UVW2
# # [INFO] [2024-11-30T23:55:57] Instrument mode: Image
# # [INFO] [2024-11-30T23:55:57] Exposure duration: 4160
# # [INFO] [2024-11-30T23:55:57] Module name: InstrumentHK
# # [INFO] [2024-11-30T23:55:57] Instrument: om
# # [INFO] [2024-11-30T23:55:57] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:57] Module version number: 2.01
# # [INFO] [2024-11-30T23:55:57] Module name: USNOExtract
# # [INFO] [2024-11-30T23:55:57] Instrument: all
# # [INFO] [2024-11-30T23:55:57] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:57] Module version number: 0.07
# [COMMAND] [2024-11-30T23:55:57]
export \
PFILES=/scratch/226821.1.all.q/xmm/ppsprod/229966/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:55:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:57]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:57]
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:57] Written the output image ......... 
# # [INFO] [2024-11-30T23:55:57] Task Run Time fimgcreate 0.0270810127258301s
#
# [COMMAND] [2024-11-30T23:55:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:57]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:57]
catprep catextract=intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
srclistset=product/P0111360301OBX000CALIND0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:55:57]
# # [INFO] [2024-11-30T23:55:57] Task Run Time catprep 0.122698068618774s
#
# [COMMAND] [2024-11-30T23:55:57]
cp /scratch/226821.1.all.q/xmm/ppsprod/229966/intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
/scratch/226821.1.all.q/xmm/ppsprod/229966/product/P0111360301OBX000REFCAT0000.FIT
# # [INFO] [2024-11-30T23:55:57] System RV 0
# # [INFO] [2024-11-30T23:55:57] Reading keyword DATE-END value 2002-06-03T09:37:56.000 comment Date observations ended
# # [INFO] [2024-11-30T23:55:57] Reading keyword OBS_ID value 0111360301 comment Observation identifier
# # [INFO] [2024-11-30T23:55:57] Reading keyword DATE-OBS value 2002-06-03T08:14:01.000 comment Date observations were made
# # [INFO] [2024-11-30T23:55:57] Reading keyword RA_OBJ value 3.26166666000000E+02 comment [deg] Ra of the observed object
# # [INFO] [2024-11-30T23:55:57] Reading keyword DEC_OBJ value 3.83205556000000E+01 comment [deg] Dec of the observed object
# # [INFO] [2024-11-30T23:55:57] Reading keyword OBS_MODE value POINTING comment Observation mode (pointing or slew)
# # [INFO] [2024-11-30T23:55:57] Reading keyword TELESCOP value XMM comment Telescope (mission) name
# [COMMAND] [2024-11-30T23:55:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:57]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:57]
addattribute attributecomment="\"Date observations ended\" \"Observation identifier\" \"Date observations were made\" \"[deg] Ra of \
the observed object\" \"[deg] Dec of the observed object\" \"Observation mode (pointing or slew)\" \"Telescope (mission) name\"" \
attributename="DATE-END OBS_ID DATE-OBS RA_OBJ DEC_OBJ OBS_MODE TELESCOP" attributetype="\"string\" \"string\" \"string\" \"real\" \
\"real\" \"string\" \"string\"" realvalue="3.26166666000000E+02 3.83205556000000E+01" set=product/P0111360301OBX000REFCAT0000.FIT \
stringvalue="2002-06-03T09:37:56.000 0111360301 2002-06-03T08:14:01.000 POINTING XMM" -w 10
# # [OUTPUT] [2024-11-30T23:55:57] ** addattribute: warning (creatorKeywordNotFound), The CREATOR keyword could not be found in\
#     dataset with name 'product/P0111360301OBX000REFCAT0000.FIT'
# ** addattribute: warning (dateKeywordNotFound), The DATE keyword could not be found in dataset with name\
#     'product/P0111360301OBX000REFCAT0000.FIT' 
# # [INFO] [2024-11-30T23:55:57] Task Run Time addattribute 0.0808610916137695s
#
# # [INFO] [2024-11-30T23:55:57] Module name: OMgetFlat
# # [INFO] [2024-11-30T23:55:57] Instrument: om
# # [INFO] [2024-11-30T23:55:57] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:57] Module version number: 1.07
# [COMMAND] [2024-11-30T23:55:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:57]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:57]
omflatgen outset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:55:57] ** omflatgen: warning (ArgumentIgnored), Warning: countRateFrameRatio argument in small-scale\
#     flatfield retrieval currently ignored 
# # [INFO] [2024-11-30T23:55:57] Task Run Time omflatgen 0.159131050109863s
#
# # [INFO] [2024-11-30T23:55:57] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:55:57] Instrument: om
# # [INFO] [2024-11-30T23:55:57] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:57] Module version number: 1.06
# [COMMAND] [2024-11-30T23:55:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:57]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:57]
omprep modeset=3 nphset=odf/0455_0111360301_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00600000000000.fits pehset=odf/0455_0111360301_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0455_0111360301_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:55:57] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:55:57] Task Run Time omprep 0.0929811000823975s
#
# # [INFO] [2024-11-30T23:55:57] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:55:57] Instrument: om
# # [INFO] [2024-11-30T23:55:57] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:57] Module version number: 1.36
# # [INFO] [2024-11-30T23:55:57] DEBUG --- exp_id: S006, filter: UVW2
# # [INFO] [2024-11-30T23:55:57] No Fast Mode Windows to process
# # [INFO] [2024-11-30T23:55:57] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:55:57] Instrument: om
# # [INFO] [2024-11-30T23:55:57] Stream no.: 0001
# # [INFO] [2024-11-30T23:55:57] Module version number: 3.28
# # [INFO] [2024-11-30T23:55:57] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:55:57] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:55:57] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:55:57] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:55:57] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:55:57] Found 1 Image mode images.
# # [INFO] [2024-11-30T23:55:57] Analysing odf/0455_0111360301_OMS00600IMI.FIT for image identification
# # [INFO] [2024-11-30T23:55:57] Identified mode: USER
# # [INFO] [2024-11-30T23:55:57] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:55:57] Processing USER Images.
# # [INFO] [2024-11-30T23:55:57] 1 images to process.
# # [INFO] [2024-11-30T23:55:57] Processing S006:0:odf/0455_0111360301_OMS00600IMI.FIT
# [COMMAND] [2024-11-30T23:55:57]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:57]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:57] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:57]
omprep modeset=0 nphset=odf/0455_0111360301_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-1-Raw_Image-S00600000000000.fits \
pehset=odf/0455_0111360301_OMX00000PEH.FIT set=odf/0455_0111360301_OMS00600IMI.FIT wdxset=odf/0455_0111360301_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:55:58] ** omprep: warning (NoSuchIPPV), There is no IPPV `DATA_MODE_1' in the actual exposure 
# # [INFO] [2024-11-30T23:55:58] Task Run Time omprep 0.114873886108398s
#
# # [INFO] [2024-11-30T23:55:58] Retrieving FILTER value
# # [INFO] [2024-11-30T23:55:58] FILTER = S
# # [INFO] [2024-11-30T23:55:58] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:55:58] EXPOSURE = 4.16000000000000E+03
# [COMMAND] [2024-11-30T23:55:58]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:58]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:58] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:58]
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:58]
# # [INFO] [2024-11-30T23:55:58] Task Run Time omcosflag 0.202786922454834s
#
# [COMMAND] [2024-11-30T23:55:58]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:58]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:58] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:58]
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:58]
# # [INFO] [2024-11-30T23:55:58] Task Run Time omflatfield 0.104353904724121s
#
# [COMMAND] [2024-11-30T23:55:58]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:55:58]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:55:58] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:55:58]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-1-OSW_MODULO_8_IMAGE-S00600000000000.fits nbox=16 nsig=6 \
outset=product/P0111360301OMS006IMAGE_0000.FIT set=intermediate/OMImageAnalyse-om-1-OSW_Flat_Fielded_Image-S00600000000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:56:03] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:56:03] Task Run Time ommodmap 5.46281003952026s
#
# [COMMAND] [2024-11-30T23:56:03]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:03]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:03] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:03]
omqualitymap mode=setqualityimage outset=product/P0111360301OMS006IMAGE_0000.FIT set=product/P0111360301OMS006IMAGE_0000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:56:03] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0111360301OMS006IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:56:03] Task Run Time omqualitymap 0.139348983764648s
#
# [COMMAND] [2024-11-30T23:56:03]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:03]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:03] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:03]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0111360301OMS006SWSRLI0000.FIT \
regionfile=product/P0111360301OMS006SWSREG0000.ASC set=product/P0111360301OMS006IMAGE_0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:56:22]
# # [INFO] [2024-11-30T23:56:22] Task Run Time omdetect 18.0156559944153s
#
# [COMMAND] [2024-11-30T23:56:22]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:22]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:22] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:22]
omqualitymap mode=setqualityimage outset=product/P0111360301OMS006IMAGE_0000.FIT set=product/P0111360301OMS006IMAGE_0000.FIT \
srclistset=product/P0111360301OMS006SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:56:22] ** omqualitymap: warning (parameter), srclistset = product/P0111360301OMS006SWSRLI0000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0111360301OMS006IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0111360301OMS006SWSRLI0000.FIT; 
# # [INFO] [2024-11-30T23:56:22] Task Run Time omqualitymap 0.117101907730103s
#
# [COMMAND] [2024-11-30T23:56:22]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:22]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:22] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:22]
ommag set=product/P0111360301OMS006SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:56:22]
# TDP corr factor is: 1.07531583 
# L265 tdpCorrFactor= 1.07531583 
# L348 getting the column data
# In: 337.053223 327.422546 1 768
# X,Y,pdepcorr: 1105.05322 999.422546 1.00000000 
# In: 604.358154 13.5605364 1 768
# X,Y,pdepcorr: 1372.35815 685.560547 1.00000000 
# In: 507.481903 568.617249 1 768
# X,Y,pdepcorr: 1275.48193 1240.61719 1.00000000 
# In: 141.553131 3.19568419 1 768
# X,Y,pdepcorr: 909.553101 675.195679 1.00000000 
# # [INFO] [2024-11-30T23:56:22] Task Run Time ommag 0.142273902893066s
#
# [COMMAND] [2024-11-30T23:56:22]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:22]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:22] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:22]
omatt catfile=product/P0111360301OBX000REFCAT0000.FIT ppsoswset=product/P0111360301OMS006SIMAGE0000.FIT \
set=product/P0111360301OMS006IMAGE_0000.FIT sourcelistset=product/P0111360301OMS006SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:56:28] ** omatt: warning (Too few sources for astrometry (4)), Need at least 5 
# # [INFO] [2024-11-30T23:56:28] Task Run Time omatt 6.23577904701233s
#
# [COMMAND] [2024-11-30T23:56:28]
export \
PFILES=/scratch/226821.1.all.q/xmm/ppsprod/229966/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:56:28]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:28]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:28] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:28]
fimgstat clobber=Y infile=product/P0111360301OMS006SIMAGE0000.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:28]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:56:28] Task Run Time fimgstat 0.0268120765686035s
#
# # [INFO] [2024-11-30T23:56:28] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0111360301OMS006SIMAGE0000.FIT\
#     --outfile=product/P0111360301OMS006SIMAGE0000.PNG
# [COMMAND] [2024-11-30T23:56:28]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:28]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:28] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:28]
implot.py --fitsImage=product/P0111360301OMS006SIMAGE0000.FIT --outfile=product/P0111360301OMS006SIMAGE0000.PNG
# # [OUTPUT] [2024-11-30T23:56:31] Image shape. y,x: (841, 836) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (840, 835) x/y ratio: 0.99 
# # [INFO] [2024-11-30T23:56:31] Task Run Time implot.py 2.60821390151978s
#
# # [INFO] [2024-11-30T23:56:31] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:56:31] 0 images to process.
# # [INFO] [2024-11-30T23:56:31] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:56:31] 0 images to process.
# # [INFO] [2024-11-30T23:56:31] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:56:31] 0 images to process.
# # [INFO] [2024-11-30T23:56:31] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:56:31] 0 images to process.
# # [INFO] [2024-11-30T23:56:31] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:56:31] 0 images to process.
# # [INFO] [2024-11-30T23:56:31] All images processed
# # [INFO] [2024-11-30T23:56:31] Writing accounting information
# # [INFO] [2024-11-30T23:56:31] DEBUG: sourcedetails array: $VAR1 = [
# 'product/P0111360301OMS006SWSRLI0000.FIT|USER|S '
# ]; 
# # [INFO] [2024-11-30T23:56:31] DEBUG: skyimagedetails array: $VAR1 = [
# 'product/P0111360301OMS006SIMAGE0000.FIT|USER|S|4.16000000000000E+03|S006 '
# ]; 
# # [INFO] [2024-11-30T23:56:31] Module name: OMMosaic
# # [INFO] [2024-11-30T23:56:31] Instrument: om
# # [INFO] [2024-11-30T23:56:31] Stream no.: 0001
# # [INFO] [2024-11-30T23:56:31] Module version number: 2.39
# # [INFO] [2024-11-30T23:56:31] Looking For Images to Mosaic...
# # [INFO] [2024-11-30T23:56:31] Running addtomosaic.py on\
#     intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# # [INFO] [2024-11-30T23:56:31] DEBUG - doCommand fullcmd : addtomosaic.py\
#     --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# [COMMAND] [2024-11-30T23:56:31]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:31]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:31] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:31]
addtomosaic.py --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# # [OUTPUT] [2024-11-30T23:56:32] intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# ['product/P0111360301OMS006SIMAGE0000.FIT|USER|S|4.16000000000000E+03|S006|1\n'] 
# # [INFO] [2024-11-30T23:56:32] Task Run Time addtomosaic.py 0.959005832672119s
#
# # [INFO] [2024-11-30T23:56:32] Found 1 Images
# # [INFO] [2024-11-30T23:56:32] Grouping Images by Mode then Filter
# # [INFO] [2024-11-30T23:56:32] Mode: ALL
# # [INFO] [2024-11-30T23:56:32] Filter: S
# # [INFO] [2024-11-30T23:56:32] Image File : product/P0111360301OMS006SIMAGE0000.FIT
# # [INFO] [2024-11-30T23:56:32] Creating Images...
# # [INFO] [2024-11-30T23:56:32] MODE: ALL
# # [INFO] [2024-11-30T23:56:32] FILTER: S
# # [INFO] [2024-11-30T23:56:32] CREATING: product/P0111360301OMX000XSIMAGS000.FIT, Duration: 4160
# [COMMAND] [2024-11-30T23:56:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:32]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:32]
ommosaic imagesets=product/P0111360301OMS006SIMAGE0000.FIT mincorr=0 mosaicedset=product/P0111360301OMX000XSIMAGS000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:56:44] ** ommosaic: warning (noAstrometryCorrection), No sky images have had a successful astrometry\
#     correction
# L1109 c3 xLeft=326.237810 xRight=326.096655 
# 62.9306 326.162 38.3138 
# # [INFO] [2024-11-30T23:56:44] Task Run Time ommosaic 12.604640007019s
#
# # [INFO] [2024-11-30T23:56:44] Only one exposure in mosaic. No omdetect,ommag and omqualitymap 
# # [INFO] [2024-11-30T23:56:44] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0111360301OMX000XSIMAGS000.FIT\
#     --outfile=product/P0111360301OMX000XSIMAGS000.PNG
# [COMMAND] [2024-11-30T23:56:44]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:44]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:44] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:44]
implot.py --fitsImage=product/P0111360301OMX000XSIMAGS000.FIT --outfile=product/P0111360301OMX000XSIMAGS000.PNG
# # [OUTPUT] [2024-11-30T23:56:47] Image shape. y,x: (841, 838) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (840, 837) x/y ratio: 1.00 
# # [INFO] [2024-11-30T23:56:47] Task Run Time implot.py 2.72071218490601s
#
# # [INFO] [2024-11-30T23:56:47] Done: ALL
# # [INFO] [2024-11-30T23:56:47] Module name: OMSourceCombine
# # [INFO] [2024-11-30T23:56:47] Instrument: om
# # [INFO] [2024-11-30T23:56:47] Stream no.: 0001
# # [INFO] [2024-11-30T23:56:47] Module version number: 3.9
# # [INFO] [2024-11-30T23:56:47] Looking For Source Lists to Combine...
# # [INFO] [2024-11-30T23:56:47] DEBUG: file: intermediate/OMImageAnalyse-om-1-OM_SRC_IMAGE_DETAILS-S00600000000000.ascii
# # [INFO] [2024-11-30T23:56:47] DEBUG: line product/P0111360301OMS006SWSRLI0000.FIT|USER|S
# # [INFO] [2024-11-30T23:56:47] DEBUG: split to tmp: $VAR1 = [
# 'product/P0111360301OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:56:47] DEBUG: SrcLstDetails: $VAR1 = [
# [
# 'product/P0111360301OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]
# ]; 
# # [INFO] [2024-11-30T23:56:47] Found 1 Lists
# # [INFO] [2024-11-30T23:56:47] Grouping Lists by Mode then Filter
# # [INFO] [2024-11-30T23:56:47] DEBUG: SortedSrcLstDetails: $VAR1 = [
# [
# 'product/P0111360301OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]
# ]; 
# # [INFO] [2024-11-30T23:56:47] Mode: USER
# # [INFO] [2024-11-30T23:56:47] DEBUG: Src: ARRAY(0x64427f0)
# # [INFO] [2024-11-30T23:56:47] DEBUG: mode_p: 1
# # [INFO] [2024-11-30T23:56:47] DEBUG: SSrc[modep]: USER
# # [INFO] [2024-11-30T23:56:47] DEBUG: SSrc[filterp]: S
# # [INFO] [2024-11-30T23:56:47] Filter: S
# # [INFO] [2024-11-30T23:56:47] Image File : product/P0111360301OMS006SWSRLI0000.FIT
# # [INFO] [2024-11-30T23:56:47] Creating Combined Lists...
# # [INFO] [2024-11-30T23:56:47] MODE: USER
# # [INFO] [2024-11-30T23:56:47] FILTER: S
# # [INFO] [2024-11-30T23:56:47] Done: USER
# # [INFO] [2024-11-30T23:56:47] CREATING: product/P0111360301OMX000OBSMLI0000.FIT
# [COMMAND] [2024-11-30T23:56:47]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:56:47]
export SAS_RAND_SEED=0111360301
# # [INFO] [2024-11-30T23:56:47] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0111360301
# [COMMAND] [2024-11-30T23:56:47]
omsrclistcomb catfile=product/P0111360301OBX000REFCAT0000.FIT outset=product/P0111360301OMX000OBSMLI0000.FIT \
sourcelistsets=product/P0111360301OMS006SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:56:48] ** omsrclistcomb: warning (Too few sources for astrometry (4)), Need at least 5 
# # [INFO] [2024-11-30T23:56:48] Task Run Time omsrclistcomb 0.697201013565063s
#
# # [INFO] [2024-11-30T23:56:48] No MOSAIC lists to combine
