
#!/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:38:54] Module name: VerifyODF
# # [INFO] [2024-11-30T23:38:54] Instrument: all
# # [INFO] [2024-11-30T23:38:54] Stream no.: 0001
# # [INFO] [2024-11-30T23:38:54] Module version number: 1.18
# # [INFO] [2024-11-30T23:38:54] Version of odfingest used was 3.33.1
# # [INFO] [2024-11-30T23:38:54] Module name: MakeCIF
# # [INFO] [2024-11-30T23:38:54] Instrument: all
# # [INFO] [2024-11-30T23:38:54] Stream no.: 0001
# # [INFO] [2024-11-30T23:38:54] Module version number: 1.23
# # [INFO] [2024-11-30T23:38:54] Observation start defined as >2002-04-04T12:03:35.000<
# # [INFO] [2024-11-30T23:38:54] Processing date defined as >2024-12-01T00:38:54<
# [COMMAND] [2024-11-30T23:38:54]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:38:54]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:38:54] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:38:54]
cifbuild analysisdate=2024-12-01T00:38:54 calindexset=product/P0103262001OBX000CALIND0000.FIT fullpath=no \
observationdate=2002-04-04T12:03:35.000 withccfpath=no -w 10
# # [OUTPUT] [2024-11-30T23:39:22]
# # [INFO] [2024-11-30T23:39:22] Task Run Time cifbuild 28.1133000850677s
#
# [COMMAND] [2024-11-30T23:39:22]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:22]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:22] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:22]
addattribute attributecomment="\"Telescope (mission) name\" \"Name of PI\" \"Observation mode (pointing or slew)\" \"DEC of \
instrument pointing\" \"Observation identifier\" \"Name of observed object\" \"Date observations were made\" \"RA of instrument \
pointing (degrees)\" \"Date observations ended\"" attributename="TELESCOP OBSERVER OBS_MODE DEC_PNT OBS_ID OBJECT DATE-OBS RA_PNT \
DATE-END" attributetype="string string string real string string string real string" realvalue="\"23.4850389\" \"85.7902095\"" \
set=product/P0103262001OBX000CALIND0000.FIT stringvalue="\"XMM\" \"Mr Fred Jansen\" \"POINTED\" \"0103262001\" \"PSR B0540+23\" \
\"2002-04-04T12:03:35.000\" \"2002-04-04T12:49:09.000\"" -w 10
# # [OUTPUT] [2024-11-30T23:39:22]
# # [INFO] [2024-11-30T23:39:22] Task Run Time addattribute 0.0520250797271729s
#
# [COMMAND] [2024-11-30T23:39:22]
cp /scratch/225584.1.all.q/xmm/ppsprod/228729/product/P0103262001OBX000CALIND0000.FIT \
/scratch/225584.1.all.q/xmm/ppsprod/228729/intermediate/ccf.cif
# # [INFO] [2024-11-30T23:39:22] System RV 0
# # [INFO] [2024-11-30T23:39:22] Module name: GlobalHK
# # [INFO] [2024-11-30T23:39:22] Instrument: all
# # [INFO] [2024-11-30T23:39:22] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:22] Module version number: 1.81
# [COMMAND] [2024-11-30T23:39:22]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:22]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:22] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:22]
preqgti preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:39:23] ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 134311845.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 134311845.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 134311846.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 134311846.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 134311847.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 134311847.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 134311848.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 134311848.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 134311849.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 134311849.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 16566 times 
# # [INFO] [2024-11-30T23:39:23] Task Run Time preqgti 0.467950105667114s
#
# [COMMAND] [2024-11-30T23:39:23]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:23]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:23] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:23]
atthkgen atthkset=product/P0103262001OBX000ATTTSR0000.FIT preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
timestep=1 withpreqgti=no -w 10
# # [OUTPUT] [2024-11-30T23:39:23]
# # [INFO] [2024-11-30T23:39:23] Task Run Time atthkgen 0.14276909828186s
#
# [COMMAND] [2024-11-30T23:39:23]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:23]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:23] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:23]
orbit outfile=product/P0103262001OBX000ORBTSR0000.FIT timestep=1 useobsid=yes -w 10
# # [OUTPUT] [2024-11-30T23:39:23] orbit:- Output FITS Orbit timeseries: product/P0103262001OBX000ORBTSR0000.FIT
# orbit:- Binsize (timestep) of output): 1
# orbit:- Use OBSID data or whole orbit? T 
# # [INFO] [2024-11-30T23:39:23] Task Run Time orbit 0.160542011260986s
#
# [COMMAND] [2024-11-30T23:39:23]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:23]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:23] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:23]
radmonfix output=product/P0103262001OBX000RADMON0000.FIT radmonlist=odf/0425_0103262001_RMX00100ECX.FIT withoutputfile=yes -w 10
# # [OUTPUT] [2024-11-30T23:39:23] ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=55545945.95 which\
#     is outside the time correlation data abscissa range [55546748.07, 55550606.63] - result of extrapolation might be afflicted\
#     with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=55545949.95 which is outside the time correlation\
#     data abscissa range [55546748.07, 55550606.63] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=55545953.95 which is outside the time correlation\
#     data abscissa range [55546748.07, 55550606.63] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=55545957.95 which is outside the time correlation\
#     data abscissa range [55546748.07, 55550606.63] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=55545961.95 which is outside the time correlation\
#     data abscissa range [55546748.07, 55550606.63] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=55545965.95 which is outside the time correlation\
#     data abscissa range [55546748.07, 55550606.63] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=55545969.95 which is outside the time correlation\
#     data abscissa range [55546748.07, 55550606.63] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=55545973.95 which is outside the time correlation\
#     data abscissa range [55546748.07, 55550606.63] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=55545977.95 which is outside the time correlation\
#     data abscissa range [55546748.07, 55550606.63] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=55545981.95 which is outside the time correlation\
#     data abscissa range [55546748.07, 55550606.63] - result of extrapolation might be afflicted with large numerical uncertainty.
# radmonfix:- Setting DATE-END...
# ** radmonfix: warning (SummaryOfWarnings), 
# warning Extrapolation silently occurred 383 times 
# # [INFO] [2024-11-30T23:39:23] Task Run Time radmonfix 0.0773181915283203s
#
# [COMMAND] [2024-11-30T23:39:23]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/EPICModes.fits \
/scratch/225584.1.all.q/xmm/ppsprod/228729/intermediate/GlobalHK-all-1-Observing_modes_Pileup_and_OoT_data-X00000000000000.fits
# # [INFO] [2024-11-30T23:39:23] System RV 0
# # [INFO] [2024-11-30T23:39:23] Copied EPIC Observing modes table, Pileup data and OoT data table in place
# [COMMAND] [2024-11-30T23:39:23]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfs.fits \
/scratch/225584.1.all.q/xmm/ppsprod/228729/intermediate/GlobalHK-all-1-Energy_Conversion_Factors-X00000000000000.fits
# # [INFO] [2024-11-30T23:39:23] System RV 0
# [COMMAND] [2024-11-30T23:39:23]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfgrid.fits.gz \
/scratch/225584.1.all.q/xmm/ppsprod/228729/intermediate/GlobalHK-all-1-Energy_Conversion_Factors_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:39:23] System RV 0
# [COMMAND] [2024-11-30T23:39:23]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/fluxgrid.fits.gz \
/scratch/225584.1.all.q/xmm/ppsprod/228729/intermediate/GlobalHK-all-1-Flux_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:39:23] System RV 0
# # [INFO] [2024-11-30T23:39:23] Module name: ExpChooser
# # [INFO] [2024-11-30T23:39:23] Instrument: emos1
# # [INFO] [2024-11-30T23:39:23] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:23] Module version number: 1.38
# # [INFO] [2024-11-30T23:39:23] Checking exposure S003 for processability
# # [INFO] [2024-11-30T23:39:23] Filter: Closed
# # [INFO] [2024-11-30T23:39:23] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:39:23] Exposure duration: 2475
# # [INFO] [2024-11-30T23:39:23] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:39:23] Module name: ExpChooser
# # [INFO] [2024-11-30T23:39:23] Instrument: emos2
# # [INFO] [2024-11-30T23:39:23] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:23] Module version number: 1.38
# # [INFO] [2024-11-30T23:39:23] Checking exposure S004 for processability
# # [INFO] [2024-11-30T23:39:23] Filter: Closed
# # [INFO] [2024-11-30T23:39:23] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:39:23] Exposure duration: 2481
# # [INFO] [2024-11-30T23:39:23] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:39:23] Module name: ExpChooser
# # [INFO] [2024-11-30T23:39:23] Instrument: epn
# # [INFO] [2024-11-30T23:39:23] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:23] Module version number: 1.38
# # [INFO] [2024-11-30T23:39:23] Checking exposure S005 for processability
# # [INFO] [2024-11-30T23:39:23] Filter: CalClosed
# # [INFO] [2024-11-30T23:39:23] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:39:23] Exposure duration: 580
# # [INFO] [2024-11-30T23:39:23] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:39:23] Module name: ExpChooser
# # [INFO] [2024-11-30T23:39:23] Instrument: om
# # [INFO] [2024-11-30T23:39:23] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:23] Module version number: 1.38
# # [INFO] [2024-11-30T23:39:23] Checking exposure S006 for processability
# # [INFO] [2024-11-30T23:39:23] Filter: UVW2
# # [INFO] [2024-11-30T23:39:23] Instrument mode: Image
# # [INFO] [2024-11-30T23:39:23] Exposure duration: 2201
# # [INFO] [2024-11-30T23:39:23] Module name: ExpChooser
# # [INFO] [2024-11-30T23:39:23] Instrument: om
# # [INFO] [2024-11-30T23:39:23] Stream no.: 0002
# # [INFO] [2024-11-30T23:39:23] Module version number: 1.38
# # [INFO] [2024-11-30T23:39:23] Checking exposure S400 for processability
# # [INFO] [2024-11-30T23:39:23] Filter: UVW2
# # [INFO] [2024-11-30T23:39:23] Instrument mode: UNDEFINED
# # [INFO] [2024-11-30T23:39:23] Exposure duration: 2201
# # [INFO] [2024-11-30T23:39:23] OM datamode=
# # [INFO] [2024-11-30T23:39:23] Exposure ignored due to invalid or unsupported instrument mode
# # [INFO] [2024-11-30T23:39:23] Module name: InstrumentHK
# # [INFO] [2024-11-30T23:39:23] Instrument: om
# # [INFO] [2024-11-30T23:39:23] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:23] Module version number: 2.01
# # [INFO] [2024-11-30T23:39:23] Module name: USNOExtract
# # [INFO] [2024-11-30T23:39:23] Instrument: all
# # [INFO] [2024-11-30T23:39:23] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:23] Module version number: 0.07
# [COMMAND] [2024-11-30T23:39:23]
export \
PFILES=/scratch/225584.1.all.q/xmm/ppsprod/228729/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:39:23]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:23]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:23] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:23]
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:39:23] Written the output image ......... 
# # [INFO] [2024-11-30T23:39:23] Task Run Time fimgcreate 0.0220539569854736s
#
# [COMMAND] [2024-11-30T23:39:23]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:23]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:23] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:23]
catprep catextract=intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
srclistset=product/P0103262001OBX000CALIND0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:39:24]
# # [INFO] [2024-11-30T23:39:24] Task Run Time catprep 0.0762169361114502s
#
# [COMMAND] [2024-11-30T23:39:24]
cp /scratch/225584.1.all.q/xmm/ppsprod/228729/intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
/scratch/225584.1.all.q/xmm/ppsprod/228729/product/P0103262001OBX000REFCAT0000.FIT
# # [INFO] [2024-11-30T23:39:24] System RV 0
# # [INFO] [2024-11-30T23:39:24] Reading keyword OBS_MODE value POINTING comment Observation mode (pointing or slew)
# # [INFO] [2024-11-30T23:39:24] Reading keyword DATE-END value 2002-04-04T12:49:09.000 comment Date observations ended
# # [INFO] [2024-11-30T23:39:24] Reading keyword OBS_ID value 0103262001 comment Observation identifier
# # [INFO] [2024-11-30T23:39:24] Reading keyword DATE-OBS value 2002-04-04T12:03:35.000 comment Date observations were made
# # [INFO] [2024-11-30T23:39:24] Reading keyword RA_OBJ value 8.57902095000000E+01 comment [deg] Ra of the observed object
# # [INFO] [2024-11-30T23:39:24] Reading keyword DEC_OBJ value 2.34850389000000E+01 comment [deg] Dec of the observed object
# # [INFO] [2024-11-30T23:39:24] Reading keyword TELESCOP value XMM comment Telescope (mission) name
# [COMMAND] [2024-11-30T23:39:24]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:24]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:24] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:24]
addattribute attributecomment="\"Observation mode (pointing or slew)\" \"Date observations ended\" \"Observation identifier\" \"Date \
observations were made\" \"[deg] Ra of the observed object\" \"[deg] Dec of the observed object\" \"Telescope (mission) name\"" \
attributename="OBS_MODE DATE-END OBS_ID DATE-OBS RA_OBJ DEC_OBJ TELESCOP" attributetype="\"string\" \"string\" \"string\" \"string\" \
\"real\" \"real\" \"string\"" realvalue="8.57902095000000E+01 2.34850389000000E+01" set=product/P0103262001OBX000REFCAT0000.FIT \
stringvalue="POINTING 2002-04-04T12:49:09.000 0103262001 2002-04-04T12:03:35.000 XMM" -w 10
# # [OUTPUT] [2024-11-30T23:39:24] ** addattribute: warning (creatorKeywordNotFound), The CREATOR keyword could not be found in\
#     dataset with name 'product/P0103262001OBX000REFCAT0000.FIT'
# ** addattribute: warning (dateKeywordNotFound), The DATE keyword could not be found in dataset with name\
#     'product/P0103262001OBX000REFCAT0000.FIT' 
# # [INFO] [2024-11-30T23:39:24] Task Run Time addattribute 0.0304181575775146s
#
# # [INFO] [2024-11-30T23:39:24] Module name: OMgetFlat
# # [INFO] [2024-11-30T23:39:24] Instrument: om
# # [INFO] [2024-11-30T23:39:24] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:24] Module version number: 1.07
# [COMMAND] [2024-11-30T23:39:24]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:24]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:24] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:24]
omflatgen outset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:39:24] ** omflatgen: warning (ArgumentIgnored), Warning: countRateFrameRatio argument in small-scale\
#     flatfield retrieval currently ignored 
# # [INFO] [2024-11-30T23:39:24] Task Run Time omflatgen 0.207587957382202s
#
# # [INFO] [2024-11-30T23:39:24] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:39:24] Instrument: om
# # [INFO] [2024-11-30T23:39:24] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:24] Module version number: 1.06
# [COMMAND] [2024-11-30T23:39:24]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:24]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:24] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:24]
omprep modeset=3 nphset=odf/0425_0103262001_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00600000000000.fits pehset=odf/0425_0103262001_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0425_0103262001_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:39:24] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:39:24] Task Run Time omprep 0.182843923568726s
#
# # [INFO] [2024-11-30T23:39:24] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:39:24] Instrument: om
# # [INFO] [2024-11-30T23:39:24] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:24] Module version number: 1.36
# # [INFO] [2024-11-30T23:39:24] DEBUG --- exp_id: S006, filter: UVW2
# # [INFO] [2024-11-30T23:39:24] No Fast Mode Windows to process
# # [INFO] [2024-11-30T23:39:24] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:39:24] Instrument: om
# # [INFO] [2024-11-30T23:39:24] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:24] Module version number: 3.28
# # [INFO] [2024-11-30T23:39:24] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:39:24] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:39:24] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:39:24] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:39:24] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:39:24] Found 1 Image mode images.
# # [INFO] [2024-11-30T23:39:24] Analysing odf/0425_0103262001_OMS00600IMI.FIT for image identification
# # [INFO] [2024-11-30T23:39:24] Identified mode: USER
# # [INFO] [2024-11-30T23:39:24] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:39:24] Processing USER Images.
# # [INFO] [2024-11-30T23:39:24] 1 images to process.
# # [INFO] [2024-11-30T23:39:24] Processing S006:0:odf/0425_0103262001_OMS00600IMI.FIT
# [COMMAND] [2024-11-30T23:39:24]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:24]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:24] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:24]
omprep modeset=0 nphset=odf/0425_0103262001_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-1-Raw_Image-S00600000000000.fits \
pehset=odf/0425_0103262001_OMX00000PEH.FIT set=odf/0425_0103262001_OMS00600IMI.FIT wdxset=odf/0425_0103262001_OMS00600WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:39:24] ** omprep: warning (NoSuchIPPV), There is no IPPV `DATA_MODE_1' in the actual exposure 
# # [INFO] [2024-11-30T23:39:24] Task Run Time omprep 0.148985862731934s
#
# # [INFO] [2024-11-30T23:39:24] Retrieving FILTER value
# # [INFO] [2024-11-30T23:39:24] FILTER = S
# # [INFO] [2024-11-30T23:39:24] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:39:24] EXPOSURE = 2.20000000000000E+03
# [COMMAND] [2024-11-30T23:39:24]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:24]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:24] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:24]
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:39:24]
# # [INFO] [2024-11-30T23:39:24] Task Run Time omcosflag 0.24181604385376s
#
# [COMMAND] [2024-11-30T23:39:24]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:24]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:24] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:24]
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:39:25]
# # [INFO] [2024-11-30T23:39:25] Task Run Time omflatfield 0.145920991897583s
#
# [COMMAND] [2024-11-30T23:39:25]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:25]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:25] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:25]
ommodmap mod8product=Y mod8set=intermediate/OMImageAnalyse-om-1-OSW_MODULO_8_IMAGE-S00600000000000.fits nbox=16 nsig=6 \
outset=product/P0103262001OMS006IMAGE_0000.FIT set=intermediate/OMImageAnalyse-om-1-OSW_Flat_Fielded_Image-S00600000000000.fits -w \
10
# # [OUTPUT] [2024-11-30T23:39:30] ** ommodmap: warning (LowMod8Noise), Too few counts in image to remove mod8 noise. 
# # [INFO] [2024-11-30T23:39:30] Task Run Time ommodmap 5.32697987556458s
#
# [COMMAND] [2024-11-30T23:39:30]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:30]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:30] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:30]
omqualitymap mode=setqualityimage outset=product/P0103262001OMS006IMAGE_0000.FIT set=product/P0103262001OMS006IMAGE_0000.FIT \
srclistset= -w 10
# # [OUTPUT] [2024-11-30T23:39:30] ** omqualitymap: warning (parameter), srclistset = NONE; 
# ** omqualitymap: warning (overwrite), The file product/P0103262001OMS006IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = NONE; 
# # [INFO] [2024-11-30T23:39:30] Task Run Time omqualitymap 0.0803301334381104s
#
# [COMMAND] [2024-11-30T23:39:30]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:30]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:30] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:30]
omdetect detectextended=Y minsignificance=3 nsigma=2 outset=product/P0103262001OMS006SWSRLI0000.FIT \
regionfile=product/P0103262001OMS006SWSREG0000.ASC set=product/P0103262001OMS006IMAGE_0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:39:45]
# # [INFO] [2024-11-30T23:39:45] Task Run Time omdetect 14.7554669380188s
#
# [COMMAND] [2024-11-30T23:39:45]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:45]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:45] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:45]
omqualitymap mode=setqualityimage outset=product/P0103262001OMS006IMAGE_0000.FIT set=product/P0103262001OMS006IMAGE_0000.FIT \
srclistset=product/P0103262001OMS006SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:39:45] ** omqualitymap: warning (parameter), srclistset = product/P0103262001OMS006SWSRLI0000.FIT; 
# ** omqualitymap: warning (overwrite), The file product/P0103262001OMS006IMAGE_0000.FIT will be overwritten
# ** omqualitymap: warning (parameter), srclistset = product/P0103262001OMS006SWSRLI0000.FIT; 
# # [INFO] [2024-11-30T23:39:45] Task Run Time omqualitymap 0.174165010452271s
#
# [COMMAND] [2024-11-30T23:39:45]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:45]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:45] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:45]
ommag set=product/P0103262001OMS006SWSRLI0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:39:45]
# TDP corr factor is: 1.07074845 
# L265 tdpCorrFactor= 1.07074845 
# L348 getting the column data
# In: 195.534424 197.564331 1 770
# X,Y,pdepcorr: 965.534424 863.564331 1.00000000 
# In: 183.241989 15.1539507 1 770
# X,Y,pdepcorr: 953.242004 681.153931 1.00000000 
# In: 270.169281 235.116333 1 770
# X,Y,pdepcorr: 1040.16931 901.116333 1.00000000 
# # [INFO] [2024-11-30T23:39:45] Task Run Time ommag 0.0660181045532227s
#
# [COMMAND] [2024-11-30T23:39:45]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:45]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:45] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:45]
omatt catfile=product/P0103262001OBX000REFCAT0000.FIT ppsoswset=product/P0103262001OMS006SIMAGE0000.FIT \
set=product/P0103262001OMS006IMAGE_0000.FIT sourcelistset=product/P0103262001OMS006SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:39:48] ** omatt: warning (Too few sources for astrometry (3)), Need at least 5 
# # [INFO] [2024-11-30T23:39:48] Task Run Time omatt 3.50188684463501s
#
# [COMMAND] [2024-11-30T23:39:49]
export \
PFILES=/scratch/225584.1.all.q/xmm/ppsprod/228729/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:39:49]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:49]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:49] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:49]
fimgstat clobber=Y infile=product/P0103262001OMS006SIMAGE0000.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:39:49]
# ****** successfully exited ******
# # [INFO] [2024-11-30T23:39:49] Task Run Time fimgstat 0.0254290103912354s
#
# # [INFO] [2024-11-30T23:39:49] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0103262001OMS006SIMAGE0000.FIT\
#     --outfile=product/P0103262001OMS006SIMAGE0000.PNG
# [COMMAND] [2024-11-30T23:39:49]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:49]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:49] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:49]
implot.py --fitsImage=product/P0103262001OMS006SIMAGE0000.FIT --outfile=product/P0103262001OMS006SIMAGE0000.PNG
# # [OUTPUT] [2024-11-30T23:39:51] Image shape. y,x: (655, 634) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (654, 633) x/y ratio: 0.97 
# # [INFO] [2024-11-30T23:39:51] Task Run Time implot.py 2.67808389663696s
#
# # [INFO] [2024-11-30T23:39:51] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:39:51] 0 images to process.
# # [INFO] [2024-11-30T23:39:51] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:39:51] 0 images to process.
# # [INFO] [2024-11-30T23:39:51] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:39:51] 0 images to process.
# # [INFO] [2024-11-30T23:39:51] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:39:51] 0 images to process.
# # [INFO] [2024-11-30T23:39:51] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:39:51] 0 images to process.
# # [INFO] [2024-11-30T23:39:51] All images processed
# # [INFO] [2024-11-30T23:39:51] Writing accounting information
# # [INFO] [2024-11-30T23:39:51] DEBUG: sourcedetails array: $VAR1 = [
# 'product/P0103262001OMS006SWSRLI0000.FIT|USER|S '
# ]; 
# # [INFO] [2024-11-30T23:39:51] DEBUG: skyimagedetails array: $VAR1 = [
# 'product/P0103262001OMS006SIMAGE0000.FIT|USER|S|2.20000000000000E+03|S006 '
# ]; 
# # [INFO] [2024-11-30T23:39:51] Module name: OMMosaic
# # [INFO] [2024-11-30T23:39:51] Instrument: om
# # [INFO] [2024-11-30T23:39:51] Stream no.: 0001
# # [INFO] [2024-11-30T23:39:51] Module version number: 2.39
# # [INFO] [2024-11-30T23:39:51] Looking For Images to Mosaic...
# # [INFO] [2024-11-30T23:39:51] Running addtomosaic.py on\
#     intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# # [INFO] [2024-11-30T23:39:51] DEBUG - doCommand fullcmd : addtomosaic.py\
#     --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# [COMMAND] [2024-11-30T23:39:51]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:51]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:51] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:51]
addtomosaic.py --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# # [OUTPUT] [2024-11-30T23:39:52] intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00600000000000.ascii
# ['product/P0103262001OMS006SIMAGE0000.FIT|USER|S|2.20000000000000E+03|S006|1\n'] 
# # [INFO] [2024-11-30T23:39:52] Task Run Time addtomosaic.py 1.09723114967346s
#
# # [INFO] [2024-11-30T23:39:52] Found 1 Images
# # [INFO] [2024-11-30T23:39:52] Grouping Images by Mode then Filter
# # [INFO] [2024-11-30T23:39:52] Mode: ALL
# # [INFO] [2024-11-30T23:39:52] Filter: S
# # [INFO] [2024-11-30T23:39:52] Image File : product/P0103262001OMS006SIMAGE0000.FIT
# # [INFO] [2024-11-30T23:39:52] Creating Images...
# # [INFO] [2024-11-30T23:39:52] MODE: ALL
# # [INFO] [2024-11-30T23:39:52] FILTER: S
# # [INFO] [2024-11-30T23:39:52] CREATING: product/P0103262001OMX000XSIMAGS000.FIT, Duration: 2200
# [COMMAND] [2024-11-30T23:39:52]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:52]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:52] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:52]
ommosaic imagesets=product/P0103262001OMS006SIMAGE0000.FIT mincorr=0 mosaicedset=product/P0103262001OMX000XSIMAGS000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:39:59] ** ommosaic: warning (noAstrometryCorrection), No sky images have had a successful astrometry\
#     correction
# L1109 c3 xLeft=85.836250 xRight=85.744722 
# 268.307 85.7981 23.4909 
# # [INFO] [2024-11-30T23:39:59] Task Run Time ommosaic 6.61058592796326s
#
# # [INFO] [2024-11-30T23:39:59] Only one exposure in mosaic. No omdetect,ommag and omqualitymap 
# # [INFO] [2024-11-30T23:39:59] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0103262001OMX000XSIMAGS000.FIT\
#     --outfile=product/P0103262001OMX000XSIMAGS000.PNG
# [COMMAND] [2024-11-30T23:39:59]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:39:59]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:39:59] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:39:59]
implot.py --fitsImage=product/P0103262001OMX000XSIMAGS000.FIT --outfile=product/P0103262001OMX000XSIMAGS000.PNG
# # [OUTPUT] [2024-11-30T23:40:02] Image shape. y,x: (655, 635) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (654, 634) x/y ratio: 0.97 
# # [INFO] [2024-11-30T23:40:02] Task Run Time implot.py 2.60834693908691s
#
# # [INFO] [2024-11-30T23:40:02] Done: ALL
# # [INFO] [2024-11-30T23:40:02] Module name: OMSourceCombine
# # [INFO] [2024-11-30T23:40:02] Instrument: om
# # [INFO] [2024-11-30T23:40:02] Stream no.: 0001
# # [INFO] [2024-11-30T23:40:02] Module version number: 3.9
# # [INFO] [2024-11-30T23:40:02] Looking For Source Lists to Combine...
# # [INFO] [2024-11-30T23:40:02] DEBUG: file: intermediate/OMImageAnalyse-om-1-OM_SRC_IMAGE_DETAILS-S00600000000000.ascii
# # [INFO] [2024-11-30T23:40:02] DEBUG: line product/P0103262001OMS006SWSRLI0000.FIT|USER|S
# # [INFO] [2024-11-30T23:40:02] DEBUG: split to tmp: $VAR1 = [
# 'product/P0103262001OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]; 
# # [INFO] [2024-11-30T23:40:02] DEBUG: SrcLstDetails: $VAR1 = [
# [
# 'product/P0103262001OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]
# ]; 
# # [INFO] [2024-11-30T23:40:02] Found 1 Lists
# # [INFO] [2024-11-30T23:40:02] Grouping Lists by Mode then Filter
# # [INFO] [2024-11-30T23:40:02] DEBUG: SortedSrcLstDetails: $VAR1 = [
# [
# 'product/P0103262001OMS006SWSRLI0000.FIT',
# 'USER',
# 'S'
# ]
# ]; 
# # [INFO] [2024-11-30T23:40:02] Mode: USER
# # [INFO] [2024-11-30T23:40:02] DEBUG: Src: ARRAY(0x56acdd8)
# # [INFO] [2024-11-30T23:40:02] DEBUG: mode_p: 1
# # [INFO] [2024-11-30T23:40:02] DEBUG: SSrc[modep]: USER
# # [INFO] [2024-11-30T23:40:02] DEBUG: SSrc[filterp]: S
# # [INFO] [2024-11-30T23:40:02] Filter: S
# # [INFO] [2024-11-30T23:40:02] Image File : product/P0103262001OMS006SWSRLI0000.FIT
# # [INFO] [2024-11-30T23:40:02] Creating Combined Lists...
# # [INFO] [2024-11-30T23:40:02] MODE: USER
# # [INFO] [2024-11-30T23:40:02] FILTER: S
# # [INFO] [2024-11-30T23:40:02] Done: USER
# # [INFO] [2024-11-30T23:40:02] CREATING: product/P0103262001OMX000OBSMLI0000.FIT
# [COMMAND] [2024-11-30T23:40:02]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:40:02]
export SAS_RAND_SEED=0103262001
# # [INFO] [2024-11-30T23:40:02] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0103262001
# [COMMAND] [2024-11-30T23:40:02]
omsrclistcomb catfile=product/P0103262001OBX000REFCAT0000.FIT outset=product/P0103262001OMX000OBSMLI0000.FIT \
sourcelistsets=product/P0103262001OMS006SWSRLI0000.FIT usecat=Y -w 10
# # [OUTPUT] [2024-11-30T23:40:02] ** omsrclistcomb: warning (Too few sources for astrometry (3)), Need at least 5 
# # [INFO] [2024-11-30T23:40:02] Task Run Time omsrclistcomb 0.680279970169067s
#
# # [INFO] [2024-11-30T23:40:02] No MOSAIC lists to combine
