
#!/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:51:59] Module name: VerifyODF
# # [INFO] [2024-11-30T23:51:59] Instrument: all
# # [INFO] [2024-11-30T23:51:59] Stream no.: 0001
# # [INFO] [2024-11-30T23:51:59] Module version number: 1.18
# # [INFO] [2024-11-30T23:51:59] Version of odfingest used was 3.33.1
# # [INFO] [2024-11-30T23:51:59] Module name: MakeCIF
# # [INFO] [2024-11-30T23:51:59] Instrument: all
# # [INFO] [2024-11-30T23:51:59] Stream no.: 0001
# # [INFO] [2024-11-30T23:51:59] Module version number: 1.23
# # [INFO] [2024-11-30T23:51:59] Observation start defined as >2002-03-25T12:30:42.000<
# # [INFO] [2024-11-30T23:51:59] Processing date defined as >2024-12-01T00:51:59<
# [COMMAND] [2024-11-30T23:51:59]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:51:59]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:51:59] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:51:59]
cifbuild analysisdate=2024-12-01T00:51:59 calindexset=product/P0094382901OBX000CALIND0000.FIT fullpath=no \
observationdate=2002-03-25T12:30:42.000 withccfpath=no -w 10
# # [OUTPUT] [2024-11-30T23:52:29]
# # [INFO] [2024-11-30T23:52:29] Task Run Time cifbuild 30.5636689662933s
#
# [COMMAND] [2024-11-30T23:52:29]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:29]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:29] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:29]
addattribute attributecomment="\"Telescope (mission) name\" \"DEC of instrument pointing\" \"Name of observed object\" \"RA of \
instrument pointing (degrees)\" \"Observation mode (pointing or slew)\" \"Date observations were made\" \"Date observations ended\" \
\"Observation identifier\" \"Name of PI\"" attributename="TELESCOP DEC_PNT OBJECT RA_PNT OBS_MODE DATE-OBS DATE-END OBS_ID OBSERVER" \
attributetype="string real string real string string string string string" realvalue="\"25.0500000\" \"102.69375\"" \
set=product/P0094382901OBX000CALIND0000.FIT stringvalue="\"XMM\" \"1ES0647+250\" \"POINTED\" \"2002-03-25T12:30:42.000\" \
\"2002-03-25T13:38:09.000\" \"0094382901\" \"Dr Eric Perlman\"" -w 10
# # [OUTPUT] [2024-11-30T23:52:29]
# # [INFO] [2024-11-30T23:52:29] Task Run Time addattribute 0.0469269752502441s
#
# [COMMAND] [2024-11-30T23:52:29]
cp /scratch/226484.1.all.q/xmm/ppsprod/229629/product/P0094382901OBX000CALIND0000.FIT \
/scratch/226484.1.all.q/xmm/ppsprod/229629/intermediate/ccf.cif
# # [INFO] [2024-11-30T23:52:29] System RV 0
# # [INFO] [2024-11-30T23:52:29] Module name: GlobalHK
# # [INFO] [2024-11-30T23:52:29] Instrument: all
# # [INFO] [2024-11-30T23:52:29] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:29] Module version number: 1.81
# [COMMAND] [2024-11-30T23:52:29]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:29]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:29] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:29]
preqgti preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:52:30] ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 133450786.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 133450786.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 133450787.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 133450787.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 133450788.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 133450788.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 133450789.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 133450789.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 133450790.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 133450790.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 15564 times 
# # [INFO] [2024-11-30T23:52:30] Task Run Time preqgti 0.52607798576355s
#
# [COMMAND] [2024-11-30T23:52:30]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:30]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:30] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:30]
atthkgen atthkset=product/P0094382901OBX000ATTTSR0000.FIT preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
timestep=1 withpreqgti=no -w 10
# # [OUTPUT] [2024-11-30T23:52:30]
# # [INFO] [2024-11-30T23:52:30] Task Run Time atthkgen 0.173851013183594s
#
# [COMMAND] [2024-11-30T23:52:30]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:30]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:30] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:30]
orbit outfile=product/P0094382901OBX000ORBTSR0000.FIT timestep=1 useobsid=yes -w 10
# # [OUTPUT] [2024-11-30T23:52:30] orbit:- Output FITS Orbit timeseries: product/P0094382901OBX000ORBTSR0000.FIT
# orbit:- Binsize (timestep) of output): 1
# orbit:- Use OBSID data or whole orbit? T 
# # [INFO] [2024-11-30T23:52:30] Task Run Time orbit 0.253149032592773s
#
# [COMMAND] [2024-11-30T23:52:30]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:30]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:30] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:30]
radmonfix output=product/P0094382901OBX000RADMON0000.FIT radmonlist=odf/0420_0094382901_RMX00100ECX.FIT withoutputfile=yes -w 10
# # [OUTPUT] [2024-11-30T23:52:31] ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=54683997.95 which\
#     is outside the time correlation data abscissa range [54684380.07, 54689552.55] - result of extrapolation might be afflicted\
#     with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=54684001.95 which is outside the time correlation\
#     data abscissa range [54684380.07, 54689552.55] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=54684005.95 which is outside the time correlation\
#     data abscissa range [54684380.07, 54689552.55] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=54684009.95 which is outside the time correlation\
#     data abscissa range [54684380.07, 54689552.55] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=54684013.95 which is outside the time correlation\
#     data abscissa range [54684380.07, 54689552.55] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=54684017.95 which is outside the time correlation\
#     data abscissa range [54684380.07, 54689552.55] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=54684021.95 which is outside the time correlation\
#     data abscissa range [54684380.07, 54689552.55] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=54684025.95 which is outside the time correlation\
#     data abscissa range [54684380.07, 54689552.55] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=54684029.95 which is outside the time correlation\
#     data abscissa range [54684380.07, 54689552.55] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=54684033.95 which is outside the time correlation\
#     data abscissa range [54684380.07, 54689552.55] - result of extrapolation might be afflicted with large numerical uncertainty.
# radmonfix:- Setting DATE-END...
# ** radmonfix: warning (SummaryOfWarnings), 
# warning Extrapolation silently occurred 439 times 
# # [INFO] [2024-11-30T23:52:31] Task Run Time radmonfix 0.13213586807251s
#
# [COMMAND] [2024-11-30T23:52:31]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/EPICModes.fits \
/scratch/226484.1.all.q/xmm/ppsprod/229629/intermediate/GlobalHK-all-1-Observing_modes_Pileup_and_OoT_data-X00000000000000.fits
# # [INFO] [2024-11-30T23:52:31] System RV 0
# # [INFO] [2024-11-30T23:52:31] Copied EPIC Observing modes table, Pileup data and OoT data table in place
# [COMMAND] [2024-11-30T23:52:31]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfs.fits \
/scratch/226484.1.all.q/xmm/ppsprod/229629/intermediate/GlobalHK-all-1-Energy_Conversion_Factors-X00000000000000.fits
# # [INFO] [2024-11-30T23:52:31] System RV 0
# [COMMAND] [2024-11-30T23:52:31]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfgrid.fits.gz \
/scratch/226484.1.all.q/xmm/ppsprod/229629/intermediate/GlobalHK-all-1-Energy_Conversion_Factors_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:52:31] System RV 0
# [COMMAND] [2024-11-30T23:52:31]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/fluxgrid.fits.gz \
/scratch/226484.1.all.q/xmm/ppsprod/229629/intermediate/GlobalHK-all-1-Flux_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:52:31] System RV 0
# # [INFO] [2024-11-30T23:52:31] Module name: ExpChooser
# # [INFO] [2024-11-30T23:52:31] Instrument: emos1
# # [INFO] [2024-11-30T23:52:31] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:31] Module version number: 1.38
# # [INFO] [2024-11-30T23:52:31] Checking exposure S003 for processability
# # [INFO] [2024-11-30T23:52:31] Filter: CalClosed
# # [INFO] [2024-11-30T23:52:31] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:52:31] Exposure duration: 3889
# # [INFO] [2024-11-30T23:52:31] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:52:31] Module name: ExpChooser
# # [INFO] [2024-11-30T23:52:31] Instrument: emos2
# # [INFO] [2024-11-30T23:52:31] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:31] Module version number: 1.38
# # [INFO] [2024-11-30T23:52:31] Checking exposure S004 for processability
# # [INFO] [2024-11-30T23:52:31] Filter: CalClosed
# # [INFO] [2024-11-30T23:52:31] Instrument mode: PrimePartialW2
# # [INFO] [2024-11-30T23:52:31] Exposure duration: 3879
# # [INFO] [2024-11-30T23:52:31] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:52:31] Module name: ExpChooser
# # [INFO] [2024-11-30T23:52:31] Instrument: epn
# # [INFO] [2024-11-30T23:52:31] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:31] Module version number: 1.38
# # [INFO] [2024-11-30T23:52:31] Checking exposure S005 for processability
# # [INFO] [2024-11-30T23:52:31] Filter: CalClosed
# # [INFO] [2024-11-30T23:52:31] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:52:31] Exposure duration: 1896
# # [INFO] [2024-11-30T23:52:31] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:52:31] Module name: ExpChooser
# # [INFO] [2024-11-30T23:52:31] Instrument: om
# # [INFO] [2024-11-30T23:52:31] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:31] Module version number: 1.38
# # [INFO] [2024-11-30T23:52:31] Checking exposure S007 for processability
# # [INFO] [2024-11-30T23:52:31] Filter: UVW2
# # [INFO] [2024-11-30T23:52:31] Instrument mode: Fast
# # [INFO] [2024-11-30T23:52:31] Exposure duration: 3400
# # [INFO] [2024-11-30T23:52:31] Module name: ExpChooser
# # [INFO] [2024-11-30T23:52:31] Instrument: om
# # [INFO] [2024-11-30T23:52:31] Stream no.: 0002
# # [INFO] [2024-11-30T23:52:31] Module version number: 1.38
# # [INFO] [2024-11-30T23:52:31] Checking exposure S400 for processability
# # [INFO] [2024-11-30T23:52:31] Filter: UVW2
# # [INFO] [2024-11-30T23:52:31] Instrument mode: UNDEFINED
# # [INFO] [2024-11-30T23:52:31] Exposure duration: 3400
# # [INFO] [2024-11-30T23:52:31] OM datamode=
# # [INFO] [2024-11-30T23:52:31] Exposure ignored due to invalid or unsupported instrument mode
# # [INFO] [2024-11-30T23:52:31] Module name: InstrumentHK
# # [INFO] [2024-11-30T23:52:31] Instrument: om
# # [INFO] [2024-11-30T23:52:31] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:31] Module version number: 2.01
# # [INFO] [2024-11-30T23:52:31] Module name: USNOExtract
# # [INFO] [2024-11-30T23:52:31] Instrument: all
# # [INFO] [2024-11-30T23:52:31] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:31] Module version number: 0.07
# [COMMAND] [2024-11-30T23:52:31]
export \
PFILES=/scratch/226484.1.all.q/xmm/ppsprod/229629/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:52:31]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:31]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:31] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:31]
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:52:31] Written the output image ......... 
# # [INFO] [2024-11-30T23:52:31] Task Run Time fimgcreate 0.0837180614471436s
#
# [COMMAND] [2024-11-30T23:52:31]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:31]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:31] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:31]
catprep catextract=intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
srclistset=product/P0094382901OBX000CALIND0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:52:31]
# # [INFO] [2024-11-30T23:52:31] Task Run Time catprep 0.53253698348999s
#
# [COMMAND] [2024-11-30T23:52:31]
cp /scratch/226484.1.all.q/xmm/ppsprod/229629/intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
/scratch/226484.1.all.q/xmm/ppsprod/229629/product/P0094382901OBX000REFCAT0000.FIT
# # [INFO] [2024-11-30T23:52:31] System RV 0
# # [INFO] [2024-11-30T23:52:31] Reading keyword TELESCOP value XMM comment Telescope (mission) name
# # [INFO] [2024-11-30T23:52:31] Reading keyword DATE-OBS value 2002-03-25T12:30:42.000 comment Date observations were made
# # [INFO] [2024-11-30T23:52:31] Reading keyword RA_OBJ value 1.02693750000000E+02 comment [deg] Ra of the observed object
# # [INFO] [2024-11-30T23:52:31] Reading keyword OBS_MODE value POINTING comment Observation mode (pointing or slew)
# # [INFO] [2024-11-30T23:52:31] Reading keyword OBS_ID value 0094382901 comment Observation identifier
# # [INFO] [2024-11-30T23:52:31] Reading keyword DATE-END value 2002-03-25T13:38:09.000 comment Date observations ended
# # [INFO] [2024-11-30T23:52:31] Reading keyword DEC_OBJ value 2.50500000000000E+01 comment [deg] Dec of the observed object
# [COMMAND] [2024-11-30T23:52:31]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:31]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:31] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:31]
addattribute attributecomment="\"Telescope (mission) name\" \"Date observations were made\" \"[deg] Ra of the observed object\" \
\"Observation mode (pointing or slew)\" \"Observation identifier\" \"Date observations ended\" \"[deg] Dec of the observed object\"" \
attributename="TELESCOP DATE-OBS RA_OBJ OBS_MODE OBS_ID DATE-END DEC_OBJ" attributetype="\"string\" \"string\" \"real\" \"string\" \
\"string\" \"string\" \"real\"" realvalue="1.02693750000000E+02 2.50500000000000E+01" set=product/P0094382901OBX000REFCAT0000.FIT \
stringvalue="XMM 2002-03-25T12:30:42.000 POINTING 0094382901 2002-03-25T13:38:09.000" -w 10
# # [OUTPUT] [2024-11-30T23:52:31] ** addattribute: warning (creatorKeywordNotFound), The CREATOR keyword could not be found in\
#     dataset with name 'product/P0094382901OBX000REFCAT0000.FIT'
# ** addattribute: warning (dateKeywordNotFound), The DATE keyword could not be found in dataset with name\
#     'product/P0094382901OBX000REFCAT0000.FIT' 
# # [INFO] [2024-11-30T23:52:31] Task Run Time addattribute 0.0278360843658447s
#
# # [INFO] [2024-11-30T23:52:31] Module name: OMgetFlat
# # [INFO] [2024-11-30T23:52:31] Instrument: om
# # [INFO] [2024-11-30T23:52:31] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:31] Module version number: 1.07
# [COMMAND] [2024-11-30T23:52:31]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:31]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:31] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:31]
omflatgen outset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:52:32] ** omflatgen: warning (ArgumentIgnored), Warning: countRateFrameRatio argument in small-scale\
#     flatfield retrieval currently ignored 
# # [INFO] [2024-11-30T23:52:32] Task Run Time omflatgen 0.245810985565186s
#
# # [INFO] [2024-11-30T23:52:32] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:52:32] Instrument: om
# # [INFO] [2024-11-30T23:52:32] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:32] Module version number: 1.06
# [COMMAND] [2024-11-30T23:52:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:32]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:32]
omprep modeset=3 nphset=odf/0420_0094382901_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00700000000000.fits pehset=odf/0420_0094382901_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0420_0094382901_OMS00700WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:52:32] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:52:32] Task Run Time omprep 0.127126216888428s
#
# # [INFO] [2024-11-30T23:52:32] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:52:32] Instrument: om
# # [INFO] [2024-11-30T23:52:32] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:32] Module version number: 1.36
# # [INFO] [2024-11-30T23:52:32] DEBUG --- exp_id: S007, filter: UVW2
# # [INFO] [2024-11-30T23:52:32] 1 Fast Mode Windows to process
# # [INFO] [2024-11-30T23:52:32] Processing OSW 0
# # [INFO] [2024-11-30T23:52:32] Start omprep
# [COMMAND] [2024-11-30T23:52:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:32]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:32]
omprep modeset=1 nphset=odf/0420_0094382901_OMX00000NPH.FIT \
outset=intermediate/OMFastAnalyse-om-1-PPS_Event_List_File-S00700000000000.fits pehset=odf/0420_0094382901_OMX00000PEH.FIT \
set=odf/0420_0094382901_OMS00700FAE.FIT wdxset=odf/0420_0094382901_OMS00700WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:52:32] ** omprep: warning (NoSuchIPPV), There is no IPPV `DATA_MODE_1' in the actual exposure 
# # [INFO] [2024-11-30T23:52:32] Task Run Time omprep 0.0741009712219238s
#
# # [INFO] [2024-11-30T23:52:32] Start evselect(1)
# [COMMAND] [2024-11-30T23:52:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:32]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:32]
evselect imageset=intermediate/OMFastAnalyse-om-1-Fast_Mode_Raw_Image-S00700000000000.fits \
table=intermediate/OMFastAnalyse-om-1-PPS_Event_List_File-S00700000000000.fits withimageset=true xcolumn=RAWX ycolumn=RAWY -w 10
# # [OUTPUT] [2024-11-30T23:52:32] ** evselect: warning (NoAttrib), The Attribute SLCTEXPR does not exist in the input event list.\
#     No value was copied.
# ** evselect: warning (NoWCS), No WCS information available for image column RAWX.
# ** evselect: warning (NoWCS), No WCS information available for image column RAWY. 
# # [INFO] [2024-11-30T23:52:32] Task Run Time evselect 0.0492711067199707s
#
# # [INFO] [2024-11-30T23:52:32] Start omfastshift
# [COMMAND] [2024-11-30T23:52:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:32]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:32]
omfastshift nphset=odf/0420_0094382901_OMX00000NPH.FIT set=intermediate/OMFastAnalyse-om-1-PPS_Event_List_File-S00700000000000.fits \
thxset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00700000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:52:32] ** omfastshift: warning (NoSuchIPPV), There is no IPPV `DATA_MODE_1' in the actual exposure 
# # [INFO] [2024-11-30T23:52:32] Task Run Time omfastshift 0.0513300895690918s
#
# # [INFO] [2024-11-30T23:52:32] Start omfastflat
# [COMMAND] [2024-11-30T23:52:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:32]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:32]
omfastflat fastimgset=product/P0094382901OMS007IMAGEF0000.FIT \
oswflatset=intermediate/OMFastAnalyse-om-1-OM_OSW_Flat_Field-S00700000000000.fits \
set=intermediate/OMFastAnalyse-om-1-PPS_Event_List_File-S00700000000000.fits \
slewflatset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:52:32]
# # [INFO] [2024-11-30T23:52:32] Task Run Time omfastflat 0.323141098022461s
#
# # [INFO] [2024-11-30T23:52:32] Start omdetect
# [COMMAND] [2024-11-30T23:52:32]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:32]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:32] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:32]
omdetect nsigma=3 outset=product/P0094382901OMS007SFSRLI0000.FIT regionfile=product/P0094382901OMS007SFSREG0000.ASC \
set=product/P0094382901OMS007IMAGEF0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:52:33]
# # [INFO] [2024-11-30T23:52:33] Task Run Time omdetect 0.666777849197388s
#
# # [INFO] [2024-11-30T23:52:33] Start omatt
# [COMMAND] [2024-11-30T23:52:33]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:33]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:33] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:33]
omatt ppsoswset=product/P0094382901OMS007SIMAGF0000.FIT set=product/P0094382901OMS007IMAGEF0000.FIT \
sourcelistset=product/P0094382901OMS007SFSRLI0000.FIT usecat=F -w 10
# # [OUTPUT] [2024-11-30T23:52:34]
# # [INFO] [2024-11-30T23:52:34] Task Run Time omatt 0.590430021286011s
#
# # [INFO] [2024-11-30T23:52:34] Sky image found 
# # [INFO] [2024-11-30T23:52:34] DEBUG - doCommand fullcmd : implot.py --fitsImage=product/P0094382901OMS007SIMAGF0000.FIT\
#     --outfile=product/P0094382901OMS007SIMAGF0000.PNG --srclisttab=product/P0094382901OMS007SFSRLI0000.FIT --zscale=sqrt\
#     --zscaletype=7
# [COMMAND] [2024-11-30T23:52:34]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:34]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:34] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:34]
implot.py --fitsImage=product/P0094382901OMS007SIMAGF0000.FIT --outfile=product/P0094382901OMS007SIMAGF0000.PNG \
--srclisttab=product/P0094382901OMS007SFSRLI0000.FIT --zscale=sqrt --zscaletype=7
# # [OUTPUT] [2024-11-30T23:52:36] Image shape. y,x: (26, 23) figsize: [8.5, 6.8]
# Cropped image shape. y,x: (25, 22) x/y ratio: 0.88
# Plotting source regions from product/P0094382901OMS007SFSRLI0000.FIT 
# # [INFO] [2024-11-30T23:52:36] Task Run Time implot.py 2.78148984909058s
#
# # [INFO] [2024-11-30T23:52:36] implot has created PNG with src list
# # [INFO] [2024-11-30T23:52:36] Per-Source Processing
# # [INFO] [2024-11-30T23:52:36] Number of sources from region file product/P0094382901OMS007SFSREG0000.ASC: 1
# # [INFO] [2024-11-30T23:52:36] Sources in sourcelist product/P0094382901OMS007SFSRLI0000.FIT : 1
# # [INFO] [2024-11-30T23:52:36] Source Number : 1
# # [INFO] [2024-11-30T23:52:36] Start omregion
# [COMMAND] [2024-11-30T23:52:36]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:36]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:36] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:36]
omregion bkgfile=intermediate/OMFastAnalyse-om-1-OM_Background_Region_File-S00700000000001.fits bkginner=1.2 bkgouter=2.5 nfwhm=3 \
set=product/P0094382901OMS007SFSRLI0000.FIT srcfile=intermediate/OMFastAnalyse-om-1-OM_Source_Region_File-S00700000000001.fits \
srcnumber=1 srcradius=-6 -w 10
# # [OUTPUT] [2024-11-30T23:52:36]
# # [INFO] [2024-11-30T23:52:36] Task Run Time omregion 0.0528919696807861s
#
# # [INFO] [2024-11-30T23:52:36] Sampling timebinsize of product/P0094382901OMS007IMAGEF0000.FIT = 512/1024 sec
# # [INFO] [2024-11-30T23:52:36] Start evselect (2)
# # [INFO] [2024-11-30T23:52:36] timebinsize for evselect = 10
# [COMMAND] [2024-11-30T23:52:36]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:36]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:36] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:36]
evselect expression="((WIN_FLAG .eq. 0) .and. (region(intermediate/OMFastAnalyse-om-1-OM_Source_Region_File-S00700000000001.fits, \
CORR_X, CORR_Y)))" maketimecolumn=true rateset=intermediate/OMFastAnalyse-om-1-OM_Source_Rates_File-S00700000000001.fits \
table=intermediate/OMFastAnalyse-om-1-PPS_Event_List_File-S00700000000000.fits timebinsize=10 withrateset=T -w 10
# # [OUTPUT] [2024-11-30T23:52:37] ** evselect: warning (NoCCDcolumn), Event list does not have a CCDNR column. Cannot update\
#     exposure information. 
# ** evselect: warning (NoCCDcolumn), Event list does not have a CCDNR column. Cannot update exposure information. 
# # [INFO] [2024-11-30T23:52:37] Task Run Time evselect 0.0517489910125732s
#
# # [INFO] [2024-11-30T23:52:37] Start evselect (3)
# [COMMAND] [2024-11-30T23:52:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:37]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:37]
evselect expression="((WIN_FLAG .eq. 0) .and. \
(region(intermediate/OMFastAnalyse-om-1-OM_Background_Region_File-S00700000000001.fits, CORR_X, CORR_Y)))" maketimecolumn=true \
rateset=intermediate/OMFastAnalyse-om-1-OM_Background_Rates_File-S00700000000001.fits \
table=intermediate/OMFastAnalyse-om-1-PPS_Event_List_File-S00700000000000.fits timebinsize=10 withrateset=T -w 10
# # [OUTPUT] [2024-11-30T23:52:37] ** evselect: warning (NoCCDcolumn), Event list does not have a CCDNR column. Cannot update\
#     exposure information. 
# ** evselect: warning (NoCCDcolumn), Event list does not have a CCDNR column. Cannot update exposure information. 
# # [INFO] [2024-11-30T23:52:37] Task Run Time evselect 0.0432140827178955s
#
# # [INFO] [2024-11-30T23:52:37] Start omlcbuild
# # [INFO] [2024-11-30T23:52:37] No Imaging mode image (IMI) found for this Fast exposure: odf/0420_0094382901_OMS00700FAE.FIT
# [COMMAND] [2024-11-30T23:52:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:37]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:37]
omlcbuild bkgfromimage=no bkgrateset=intermediate/OMFastAnalyse-om-1-OM_Background_Rates_File-S00700000000001.fits \
bkgregionset=intermediate/OMFastAnalyse-om-1-OM_Background_Region_File-S00700000000001.fits imageset= \
outset=product/P0094382901OMS007TIMESR0001.FIT sourcelistset=product/P0094382901OMS007SFSRLI0000.FIT \
srcrateset=intermediate/OMFastAnalyse-om-1-OM_Source_Rates_File-S00700000000001.fits \
srcregionset=intermediate/OMFastAnalyse-om-1-OM_Source_Region_File-S00700000000001.fits wdxset=odf/0420_0094382901_OMS00700WDX.FIT \
-w 10
# # [OUTPUT] [2024-11-30T23:52:51]
# TDP corr factor is: 1.06997919 
# ** omlcbuild: warning (OMLCBUILD), Count rate is not positive
# ** omlcbuild: warning (negVals), Background subtracted rate has negative values 
# # [INFO] [2024-11-30T23:52:51] Task Run Time omlcbuild 14.5396738052368s
#
# # [INFO] [2024-11-30T23:52:51] DEBUG ++ omlcbuild complete, generated TIMESR file: product/P0094382901OMS007TIMESR0001.FIT
# # [INFO] [2024-11-30T23:52:51] DEBUG ++ TIMESR file product/P0094382901OMS007TIMESR0001.FIT exists!
# # [INFO] [2024-11-30T23:52:51] Start lcplot
# [COMMAND] [2024-11-30T23:52:51]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:52:51]
export SAS_RAND_SEED=0094382901
# # [INFO] [2024-11-30T23:52:51] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0094382901
# [COMMAND] [2024-11-30T23:52:51]
lcplot binsize=1 plotdevice=/VPS plotfile=intermediate/OMFastAnalyse-om-1-OM_OSW_SOURCE_TIMESERIES-S00700000000001.ps \
set=product/P0094382901OMS007TIMESR0001.FIT tests=chi -w 10
# # [OUTPUT] [2024-11-30T23:52:53] ** lcplot: warning (LCPLOT), HDUCLAS2 is not equal to TOTAL
# ** lcplot: warning (LCPLOT), Count rate is not positive
# lcplot_graph.py executed successfully. 
# # [INFO] [2024-11-30T23:52:53] Task Run Time lcplot 2.29045701026917s
#
# # [INFO] [2024-11-30T23:52:53] Start PStoPDF
# [COMMAND] [2024-11-30T23:52:53]
pstopdf intermediate/OMFastAnalyse-om-1-OM_OSW_SOURCE_TIMESERIES-S00700000000001.ps product/P0094382901OMS007TIMESR0001.PDF
# # [OUTPUT] [2024-11-30T23:52:54]
# # [INFO] [2024-11-30T23:52:54] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:52:54] Instrument: om
# # [INFO] [2024-11-30T23:52:54] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:54] Module version number: 3.28
# # [INFO] [2024-11-30T23:52:54] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:52:54] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:52:54] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:52:54] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:52:54] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:52:54] Found no Image mode images.
# # [INFO] [2024-11-30T23:52:54] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:52:54] Processing USER Images.
# # [INFO] [2024-11-30T23:52:54] 0 images to process.
# # [INFO] [2024-11-30T23:52:54] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:52:54] 0 images to process.
# # [INFO] [2024-11-30T23:52:54] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:52:54] 0 images to process.
# # [INFO] [2024-11-30T23:52:54] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:52:54] 0 images to process.
# # [INFO] [2024-11-30T23:52:54] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:52:54] 0 images to process.
# # [INFO] [2024-11-30T23:52:54] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:52:54] 0 images to process.
# # [INFO] [2024-11-30T23:52:54] All images processed
# # [INFO] [2024-11-30T23:52:54] Writing accounting information
# # [INFO] [2024-11-30T23:52:54] DEBUG: sourcedetails array: $VAR1 = []; 
# # [INFO] [2024-11-30T23:52:54] DEBUG: skyimagedetails array: $VAR1 = []; 
# # [INFO] [2024-11-30T23:52:54] Module name: OMMosaic
# # [INFO] [2024-11-30T23:52:54] Instrument: om
# # [INFO] [2024-11-30T23:52:54] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:54] Module version number: 2.39
# # [INFO] [2024-11-30T23:52:54] Looking For Images to Mosaic...
# # [INFO] [2024-11-30T23:52:54] No Sky Images to mosaic.
# # [INFO] [2024-11-30T23:52:54] Module name: OMSourceCombine
# # [INFO] [2024-11-30T23:52:54] Instrument: om
# # [INFO] [2024-11-30T23:52:54] Stream no.: 0001
# # [INFO] [2024-11-30T23:52:54] Module version number: 3.9
# # [INFO] [2024-11-30T23:52:54] Looking For Source Lists to Combine...
# # [INFO] [2024-11-30T23:52:54] No Source Lists Images to Combine.
