
#!/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:33:08] Module name: VerifyODF
# # [INFO] [2024-11-30T23:33:08] Instrument: all
# # [INFO] [2024-11-30T23:33:08] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:08] Module version number: 1.18
# # [INFO] [2024-11-30T23:33:08] Version of odfingest used was 3.33.1
# # [INFO] [2024-11-30T23:33:08] Module name: MakeCIF
# # [INFO] [2024-11-30T23:33:08] Instrument: all
# # [INFO] [2024-11-30T23:33:08] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:08] Module version number: 1.23
# # [INFO] [2024-11-30T23:33:08] Observation start defined as >2000-09-10T11:06:04.000<
# # [INFO] [2024-11-30T23:33:08] Processing date defined as >2024-12-01T00:33:08<
# [COMMAND] [2024-11-30T23:33:08]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:08]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:08] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:08]
cifbuild analysisdate=2024-12-01T00:33:08 calindexset=product/P0109060501OBX000CALIND0000.FIT fullpath=no \
observationdate=2000-09-10T11:06:04.000 withccfpath=no -w 10
# # [OUTPUT] [2024-11-30T23:33:35]
# # [INFO] [2024-11-30T23:33:35] Task Run Time cifbuild 26.4950449466705s
#
# [COMMAND] [2024-11-30T23:33:35]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:35]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:35] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:35]
addattribute attributecomment="\"Telescope (mission) name\" \"Observation identifier\" \"Date observations ended\" \"DEC of \
instrument pointing\" \"Name of observed object\" \"Name of PI\" \"Observation mode (pointing or slew)\" \"Date observations were \
made\" \"RA of instrument pointing (degrees)\"" attributename="TELESCOP OBS_ID DATE-END DEC_PNT OBJECT OBSERVER OBS_MODE DATE-OBS \
RA_PNT" attributetype="string string string real string string string string real" realvalue="\"18.1666667\" \"67.9125\"" \
set=product/P0109060501OBX000CALIND0000.FIT stringvalue="\"XMM\" \"0109060501\" \"2000-09-10T12:57:59.000\" \"L1551 cloud\" \"Dr \
Favata Fabio\" \"POINTED\" \"2000-09-10T11:06:04.000\"" -w 10
# # [OUTPUT] [2024-11-30T23:33:35]
# # [INFO] [2024-11-30T23:33:35] Task Run Time addattribute 0.0325808525085449s
#
# [COMMAND] [2024-11-30T23:33:35]
cp /scratch/225419.1.all.q/xmm/ppsprod/228565/product/P0109060501OBX000CALIND0000.FIT \
/scratch/225419.1.all.q/xmm/ppsprod/228565/intermediate/ccf.cif
# # [INFO] [2024-11-30T23:33:35] System RV 0
# # [INFO] [2024-11-30T23:33:35] Module name: GlobalHK
# # [INFO] [2024-11-30T23:33:35] Instrument: all
# # [INFO] [2024-11-30T23:33:35] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:35] Module version number: 1.81
# [COMMAND] [2024-11-30T23:33:35]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:35]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:35] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:35]
preqgti preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:33:36] ** preqgti::atthkgen: warning (NoAttitude), The attitude was requested for time 84977973.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 84977973.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 84977974.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 84977974.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 84977975.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 84977975.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 84977976.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 84977976.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 84977977.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 84977977.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 330 times 
# # [INFO] [2024-11-30T23:33:36] Task Run Time preqgti 0.497303009033203s
#
# [COMMAND] [2024-11-30T23:33:36]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:36]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:36] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:36]
atthkgen atthkset=product/P0109060501OBX000ATTTSR0000.FIT preqgtifile=intermediate/GlobalHK-all-1-Attitude_GTI-X00000000000000.fits \
timestep=1 withpreqgti=no -w 10
# # [OUTPUT] [2024-11-30T23:33:36]
# # [INFO] [2024-11-30T23:33:36] Task Run Time atthkgen 0.323171854019165s
#
# [COMMAND] [2024-11-30T23:33:36]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:36]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:36] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:36]
orbit outfile=product/P0109060501OBX000ORBTSR0000.FIT timestep=1 useobsid=yes -w 10
# # [OUTPUT] [2024-11-30T23:33:36] orbit:- Output FITS Orbit timeseries: product/P0109060501OBX000ORBTSR0000.FIT
# orbit:- Binsize (timestep) of output): 1
# orbit:- Use OBSID data or whole orbit? T 
# # [INFO] [2024-11-30T23:33:36] Task Run Time orbit 0.409945964813232s
#
# [COMMAND] [2024-11-30T23:33:36]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:36]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:36] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:36]
radmonfix output=product/P0109060501OBX000RADMON0000.FIT radmonlist=odf/0138_0109060501_RMX00100ECX.FIT withoutputfile=yes -w 10
# # [OUTPUT] [2024-11-30T23:33:36] ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=6208705.945 which\
#     is outside the time correlation data abscissa range [6209232.673, 6217193.751] - result of extrapolation might be afflicted\
#     with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=6208709.945 which is outside the time correlation\
#     data abscissa range [6209232.673, 6217193.751] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=6208713.945 which is outside the time correlation\
#     data abscissa range [6209232.673, 6217193.751] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=6208717.945 which is outside the time correlation\
#     data abscissa range [6209232.673, 6217193.751] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=6208721.945 which is outside the time correlation\
#     data abscissa range [6209232.673, 6217193.751] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=6208725.945 which is outside the time correlation\
#     data abscissa range [6209232.673, 6217193.751] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=6208729.945 which is outside the time correlation\
#     data abscissa range [6209232.673, 6217193.751] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=6208733.945 which is outside the time correlation\
#     data abscissa range [6209232.673, 6217193.751] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=6208737.945 which is outside the time correlation\
#     data abscissa range [6209232.673, 6217193.751] - result of extrapolation might be afflicted with large numerical uncertainty.
# ** radmonfix: warning (Extrapolation), Evaluating OBT-MET fit polynomial at x=6208741.945 which is outside the time correlation\
#     data abscissa range [6209232.673, 6217193.751] - result of extrapolation might be afflicted with large numerical uncertainty.
# radmonfix:- Setting DATE-END...
# ** radmonfix: warning (SummaryOfWarnings), 
# warning Extrapolation silently occurred 1021 times 
# # [INFO] [2024-11-30T23:33:36] Task Run Time radmonfix 0.132057905197144s
#
# [COMMAND] [2024-11-30T23:33:36]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/EPICModes.fits \
/scratch/225419.1.all.q/xmm/ppsprod/228565/intermediate/GlobalHK-all-1-Observing_modes_Pileup_and_OoT_data-X00000000000000.fits
# # [INFO] [2024-11-30T23:33:36] System RV 0
# # [INFO] [2024-11-30T23:33:36] Copied EPIC Observing modes table, Pileup data and OoT data table in place
# [COMMAND] [2024-11-30T23:33:36]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfs.fits \
/scratch/225419.1.all.q/xmm/ppsprod/228565/intermediate/GlobalHK-all-1-Energy_Conversion_Factors-X00000000000000.fits
# # [INFO] [2024-11-30T23:33:36] System RV 0
# [COMMAND] [2024-11-30T23:33:36]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/ecfgrid.fits.gz \
/scratch/225419.1.all.q/xmm/ppsprod/228565/intermediate/GlobalHK-all-1-Energy_Conversion_Factors_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:33:36] System RV 0
# [COMMAND] [2024-11-30T23:33:36]
cp /lhome/jperea/ppsdev/pcms3/src/pipeline/etc/fluxgrid.fits.gz \
/scratch/225419.1.all.q/xmm/ppsprod/228565/intermediate/GlobalHK-all-1-Flux_Grid-X00000000000000.fits
# # [INFO] [2024-11-30T23:33:36] System RV 0
# # [INFO] [2024-11-30T23:33:36] Module name: ExpChooser
# # [INFO] [2024-11-30T23:33:36] Instrument: emos1
# # [INFO] [2024-11-30T23:33:36] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:36] Module version number: 1.38
# # [INFO] [2024-11-30T23:33:36] Checking exposure S002 for processability
# # [INFO] [2024-11-30T23:33:36] Filter: CalClosed
# # [INFO] [2024-11-30T23:33:36] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:33:36] Exposure duration: 2601
# # [INFO] [2024-11-30T23:33:36] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:33:36] Module name: ExpChooser
# # [INFO] [2024-11-30T23:33:36] Instrument: emos2
# # [INFO] [2024-11-30T23:33:36] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:36] Module version number: 1.38
# # [INFO] [2024-11-30T23:33:36] Checking exposure S003 for processability
# # [INFO] [2024-11-30T23:33:36] Filter: CalClosed
# # [INFO] [2024-11-30T23:33:36] Instrument mode: PrimeFullWindow
# # [INFO] [2024-11-30T23:33:36] Exposure duration: 2720
# # [INFO] [2024-11-30T23:33:36] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:33:36] Module name: ExpChooser
# # [INFO] [2024-11-30T23:33:36] Instrument: epn
# # [INFO] [2024-11-30T23:33:36] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:36] Module version number: 1.38
# # [INFO] [2024-11-30T23:33:36] Checking exposure S004 for processability
# # [INFO] [2024-11-30T23:33:36] Filter: CalClosed
# # [INFO] [2024-11-30T23:33:36] Instrument mode: PrimeSmallWindow
# # [INFO] [2024-11-30T23:33:36] Exposure duration: 5602
# # [INFO] [2024-11-30T23:33:36] Exposure ignored due to invalid or unsupported filter
# # [INFO] [2024-11-30T23:33:36] Module name: ExpChooser
# # [INFO] [2024-11-30T23:33:36] Instrument: om
# # [INFO] [2024-11-30T23:33:36] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:36] Module version number: 1.38
# # [INFO] [2024-11-30T23:33:36] Checking exposure S008 for processability
# # [INFO] [2024-11-30T23:33:36] Filter: Grism1
# # [INFO] [2024-11-30T23:33:36] Instrument mode: Image
# # [INFO] [2024-11-30T23:33:36] Exposure duration: 6501
# # [INFO] [2024-11-30T23:33:36] Module name: ExpChooser
# # [INFO] [2024-11-30T23:33:36] Instrument: om
# # [INFO] [2024-11-30T23:33:36] Stream no.: 0002
# # [INFO] [2024-11-30T23:33:36] Module version number: 1.38
# # [INFO] [2024-11-30T23:33:36] Checking exposure S400 for processability
# # [INFO] [2024-11-30T23:33:36] Filter: Grism1
# # [INFO] [2024-11-30T23:33:36] Instrument mode: UNDEFINED
# # [INFO] [2024-11-30T23:33:36] Exposure duration: 6501
# # [INFO] [2024-11-30T23:33:36] OM datamode=
# # [INFO] [2024-11-30T23:33:36] Exposure ignored due to invalid or unsupported instrument mode
# # [INFO] [2024-11-30T23:33:37] Module name: InstrumentHK
# # [INFO] [2024-11-30T23:33:37] Instrument: om
# # [INFO] [2024-11-30T23:33:37] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:37] Module version number: 2.01
# # [INFO] [2024-11-30T23:33:37] Module name: USNOExtract
# # [INFO] [2024-11-30T23:33:37] Instrument: all
# # [INFO] [2024-11-30T23:33:37] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:37] Module version number: 0.07
# [COMMAND] [2024-11-30T23:33:37]
export \
PFILES=/scratch/225419.1.all.q/xmm/ppsprod/228565/pfiles;/lhome/pcms/local/rhel8.6/GNU_CC_CXX_11.3.0/headas/architecture/syspfiles
# [COMMAND] [2024-11-30T23:33:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:37]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:37]
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:33:37] Written the output image ......... 
# # [INFO] [2024-11-30T23:33:37] Task Run Time fimgcreate 0.0327401161193848s
#
# [COMMAND] [2024-11-30T23:33:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:37]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:37]
catprep catextract=intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
srclistset=product/P0109060501OBX000CALIND0000.FIT -w 10
# # [OUTPUT] [2024-11-30T23:33:37]
# # [INFO] [2024-11-30T23:33:37] Task Run Time catprep 0.32933497428894s
#
# [COMMAND] [2024-11-30T23:33:37]
cp /scratch/225419.1.all.q/xmm/ppsprod/228565/intermediate/USNOExtract-all-1-Reference_catalogue-X00000000000000.fits \
/scratch/225419.1.all.q/xmm/ppsprod/228565/product/P0109060501OBX000REFCAT0000.FIT
# # [INFO] [2024-11-30T23:33:37] System RV 0
# # [INFO] [2024-11-30T23:33:37] Reading keyword OBS_MODE value POINTING comment Observation mode (pointing or slew)
# # [INFO] [2024-11-30T23:33:37] Reading keyword DATE-OBS value 2000-09-10T11:06:04.000 comment Date observations were made
# # [INFO] [2024-11-30T23:33:37] Reading keyword TELESCOP value XMM comment Telescope (mission) name
# # [INFO] [2024-11-30T23:33:37] Reading keyword OBS_ID value 0109060501 comment Observation identifier
# # [INFO] [2024-11-30T23:33:37] Reading keyword DATE-END value 2000-09-10T12:57:59.000 comment Date observations ended
# # [INFO] [2024-11-30T23:33:37] Reading keyword DEC_OBJ value 1.81666667000000E+01 comment [deg] Dec of the observed object
# # [INFO] [2024-11-30T23:33:37] Reading keyword RA_OBJ value 6.79125000000000E+01 comment [deg] Ra of the observed object
# [COMMAND] [2024-11-30T23:33:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:37]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:37]
addattribute attributecomment="\"Observation mode (pointing or slew)\" \"Date observations were made\" \"Telescope (mission) name\" \
\"Observation identifier\" \"Date observations ended\" \"[deg] Dec of the observed object\" \"[deg] Ra of the observed object\"" \
attributename="OBS_MODE DATE-OBS TELESCOP OBS_ID DATE-END DEC_OBJ RA_OBJ" attributetype="\"string\" \"string\" \"string\" \"string\" \
\"string\" \"real\" \"real\"" realvalue="1.81666667000000E+01 6.79125000000000E+01" set=product/P0109060501OBX000REFCAT0000.FIT \
stringvalue="POINTING 2000-09-10T11:06:04.000 XMM 0109060501 2000-09-10T12:57:59.000" -w 10
# # [OUTPUT] [2024-11-30T23:33:37] ** addattribute: warning (creatorKeywordNotFound), The CREATOR keyword could not be found in\
#     dataset with name 'product/P0109060501OBX000REFCAT0000.FIT'
# ** addattribute: warning (dateKeywordNotFound), The DATE keyword could not be found in dataset with name\
#     'product/P0109060501OBX000REFCAT0000.FIT' 
# # [INFO] [2024-11-30T23:33:37] Task Run Time addattribute 0.0414140224456787s
#
# # [INFO] [2024-11-30T23:33:37] Module name: OMgetFlat
# # [INFO] [2024-11-30T23:33:37] Instrument: om
# # [INFO] [2024-11-30T23:33:37] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:37] Module version number: 1.07
# [COMMAND] [2024-11-30T23:33:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:37]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:37]
omflatgen outset=intermediate/OMgetFlat-om-1-OM_Flatfield-X00000000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:33:37] ** omflatgen: warning (ArgumentIgnored), Warning: countRateFrameRatio argument in small-scale\
#     flatfield retrieval currently ignored 
# # [INFO] [2024-11-30T23:33:37] Task Run Time omflatgen 0.136250019073486s
#
# # [INFO] [2024-11-30T23:33:37] Module name: OMExpAnalyse
# # [INFO] [2024-11-30T23:33:37] Instrument: om
# # [INFO] [2024-11-30T23:33:37] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:37] Module version number: 1.06
# [COMMAND] [2024-11-30T23:33:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:37]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:37]
omprep modeset=3 nphset=odf/0138_0109060501_OMX00000NPH.FIT \
outset=intermediate/OMExpAnalyse-om-1-omprep_tracking_history-S00800000000000.fits pehset=odf/0138_0109060501_OMX00000PEH.FIT \
set=DUMMYTHX.FIT wdxset=odf/0138_0109060501_OMS00800WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:33:37] ** omprep: warning ( Missing OM Tracking History Data Auxiliary File. Using ZERODRIFT option),\
#     ZERODRIFT 
# # [INFO] [2024-11-30T23:33:37] Task Run Time omprep 0.176964044570923s
#
# # [INFO] [2024-11-30T23:33:37] Module name: OMFastAnalyse
# # [INFO] [2024-11-30T23:33:37] Instrument: om
# # [INFO] [2024-11-30T23:33:37] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:37] Module version number: 1.36
# # [INFO] [2024-11-30T23:33:37] DEBUG --- exp_id: S008, filter: Grism1
# # [INFO] [2024-11-30T23:33:37] No Fast Mode Windows to process
# # [INFO] [2024-11-30T23:33:37] Module name: OMImageAnalyse
# # [INFO] [2024-11-30T23:33:37] Instrument: om
# # [INFO] [2024-11-30T23:33:37] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:37] Module version number: 3.28
# # [INFO] [2024-11-30T23:33:37] Looking for Engineering Mode Files...
# # [INFO] [2024-11-30T23:33:37] Found None Engineering mode Windows.
# # [INFO] [2024-11-30T23:33:37] Found No Full Frame Engineering 4 Windows.
# # [INFO] [2024-11-30T23:33:37] Found no Full Frame Engineering 2 Windows.
# # [INFO] [2024-11-30T23:33:37] Looking for Image Mode Files...
# # [INFO] [2024-11-30T23:33:37] Found 1 Image mode images.
# # [INFO] [2024-11-30T23:33:37] Analysing odf/0138_0109060501_OMS00800IMI.FIT for image identification
# # [INFO] [2024-11-30T23:33:37] Identified mode: USER
# # [INFO] [2024-11-30T23:33:37] Failed to make a suitable combined image. Will process components as USER mode.
# # [INFO] [2024-11-30T23:33:37] Processing USER Images.
# # [INFO] [2024-11-30T23:33:37] 1 images to process.
# # [INFO] [2024-11-30T23:33:37] Processing S008:0:odf/0138_0109060501_OMS00800IMI.FIT
# [COMMAND] [2024-11-30T23:33:37]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:37]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:37] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:37]
omprep modeset=4 nphset=odf/0138_0109060501_OMX00000NPH.FIT outset=intermediate/OMImageAnalyse-om-1-Raw_Image-S00800000000000.fits \
pehset=odf/0138_0109060501_OMX00000PEH.FIT set=odf/0138_0109060501_OMS00800IMI.FIT wdxset=odf/0138_0109060501_OMS00800WDX.FIT -w 10
# # [OUTPUT] [2024-11-30T23:33:38] ** omprep: warning (NoSuchIPPV), There is no IPPV `DATA_MODE_1' in the actual exposure 
# # [INFO] [2024-11-30T23:33:38] Task Run Time omprep 0.182711124420166s
#
# # [INFO] [2024-11-30T23:33:38] Retrieving FILTER value
# # [INFO] [2024-11-30T23:33:38] FILTER = H
# # [INFO] [2024-11-30T23:33:38] FILTER = H
# # [INFO] [2024-11-30T23:33:38] Retrieving EXPOSURE value
# # [INFO] [2024-11-30T23:33:38] EXPOSURE = 6.50000000000000E+03
# [COMMAND] [2024-11-30T23:33:38]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:38]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:38] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:38]
ommodmap mod8product=yes mod8set=intermediate/OMImageAnalyse-om-1-OSW_Modulo_8_Image-S00800000000000.fits nbox=16 nsig=3 \
outset=intermediate/OMImageAnalyse-om-1-OSW_Mod-8-corrected_Image-S00800000000000.fits \
set=intermediate/OMImageAnalyse-om-1-Raw_Image-S00800000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:33:38]
# # [INFO] [2024-11-30T23:33:38] Task Run Time ommodmap 0.632314920425415s
#
# [COMMAND] [2024-11-30T23:33:38]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:38]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:38] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:38]
omgprep outset=product/P0109060501OMS008GIMAGE0000.FIT \
set=intermediate/OMImageAnalyse-om-1-OSW_Mod-8-corrected_Image-S00800000000000.fits -w 10
# # [OUTPUT] [2024-11-30T23:33:39] ** omgprep: warning (SummaryFile), Primary instrument string not found in the summary file
# ** omgprep: warning (Window size), The image is too small: the spectrum cannot be extracted 
# # [INFO] [2024-11-30T23:33:39] Task Run Time omgprep 0.836817026138306s
#
# # [INFO] [2024-11-30T23:33:39] Processing RUDI5_LR Images.
# # [INFO] [2024-11-30T23:33:39] 0 images to process.
# # [INFO] [2024-11-30T23:33:39] Processing RUDI5_HR Images.
# # [INFO] [2024-11-30T23:33:39] 0 images to process.
# # [INFO] [2024-11-30T23:33:39] Processing PFENG2 Images.
# # [INFO] [2024-11-30T23:33:39] 0 images to process.
# # [INFO] [2024-11-30T23:33:39] Processing FFENG2 Images.
# # [INFO] [2024-11-30T23:33:39] 0 images to process.
# # [INFO] [2024-11-30T23:33:39] Processing ENG4 Images.
# # [INFO] [2024-11-30T23:33:39] 0 images to process.
# # [INFO] [2024-11-30T23:33:39] All images processed
# # [INFO] [2024-11-30T23:33:39] Writing accounting information
# # [INFO] [2024-11-30T23:33:39] DEBUG: sourcedetails array: $VAR1 = [
# undef
# ]; 
# # [INFO] [2024-11-30T23:33:39] DEBUG: skyimagedetails array: $VAR1 = [
# undef
# ]; 
# # [INFO] [2024-11-30T23:33:39] Module name: OMMosaic
# # [INFO] [2024-11-30T23:33:39] Instrument: om
# # [INFO] [2024-11-30T23:33:39] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:39] Module version number: 2.39
# # [INFO] [2024-11-30T23:33:39] Looking For Images to Mosaic...
# # [INFO] [2024-11-30T23:33:39] Running addtomosaic.py on\
#     intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00800000000000.ascii
# # [INFO] [2024-11-30T23:33:39] DEBUG - doCommand fullcmd : addtomosaic.py\
#     --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00800000000000.ascii
# [COMMAND] [2024-11-30T23:33:39]
export SAS_MEMORY_MODEL=high
# [COMMAND] [2024-11-30T23:33:39]
export SAS_RAND_SEED=0109060501
# # [INFO] [2024-11-30T23:33:39] ## DEBUG ModuleResources: SAS_RAND_SEED set: 0109060501
# [COMMAND] [2024-11-30T23:33:39]
addtomosaic.py --file=intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00800000000000.ascii
# # [OUTPUT] [2024-11-30T23:33:40] intermediate/OMImageAnalyse-om-1-OM_SKY_IMAGE_DETAILS-S00800000000000.ascii
# [] 
# # [INFO] [2024-11-30T23:33:40] Task Run Time addtomosaic.py 0.7707359790802s
#
# # [INFO] [2024-11-30T23:33:40] No Sky Images to mosaic.
# # [INFO] [2024-11-30T23:33:40] Module name: OMSourceCombine
# # [INFO] [2024-11-30T23:33:40] Instrument: om
# # [INFO] [2024-11-30T23:33:40] Stream no.: 0001
# # [INFO] [2024-11-30T23:33:40] Module version number: 3.9
# # [INFO] [2024-11-30T23:33:40] Looking For Source Lists to Combine...
# # [INFO] [2024-11-30T23:33:40] DEBUG: file: intermediate/OMImageAnalyse-om-1-OM_SRC_IMAGE_DETAILS-S00800000000000.ascii
# # [INFO] [2024-11-30T23:33:40] DEBUG: SrcLstDetails: $VAR1 = []; 
# # [INFO] [2024-11-30T23:33:40] No source lists to combine.
