Keck-DataReductionPipelines / KCWI_DRP

KCWI python DRP
BSD 3-Clause "New" or "Revised" License
10 stars 14 forks source link

Grouping -g processing crashes when dataset is incomplete. #106

Open lfuhrman opened 3 years ago

lfuhrman commented 3 years ago

When there is an incomplete dataset, the pipeline will crash using the -g (grouping) option. It also crashes if invoked on a single file in a directory with a complete dataset.

Command: start_kcwi_rti -d DIRECTORY -i KB*.fits -c kcwi_koarti.cfg -g'

ERROR:

Traceback (most recent call last): File "/home/kcwidrp/.conda/envs/kcwidrp_test/bin/start_kcwi_rti", line 8, in sys.exit(main()) File "/home/kcwidrp/.conda/envs/kcwidrp_test/lib/python3.7/site-packages/kcwidrp/scripts/kcwi_rti.py", line 302, in main focus_frames = data_set.data_table[data_set.data_table.OBJECT == File "/home/kcwidrp/.conda/envs/kcwidrp_test/lib/python3.7/site-packages/pandas/core/generic.py", line 5274, in getattr return object.getattribute(self, name) AttributeError: 'DataFrame' object has no attribute 'OBJECT'

CONFIG used:

#

Configuration file for an instrument

# [KCWI] output_directory = "redux"

bias_min_nframes = 7 flat_min_nframes = 6 dome_min_nframes = 3 twiflat_min_nframes = 1 dark_min_nframes = 3 minoscanpix = 75 oscanbuf = 20

skipscat = False # Skip subtracting scattered light?

interactive = 1

plot_pause = 1 saveintims = False inter = 1 clobber = False verbose = 1

NBARS = 120 REFBAR = 57 PIXSCALE = 0.00004048 # unbinned pixel size in degrees SLICESCALE = 0.00037718 # Large slicer slice size in degrees PIX = 0.0150 # pixel size in mm FCAM = 305.0 # FOCAL LENGTH OF THE CAMERA GAMMA = 4.0 # mean out-of-plane angle for diffraction (deg) WAVEFID = 3000. # Fiducial wavelength for wavelength bins TAPERFRAC = 0.2 LINELIST = "" # Optional line list to use instead of generated ROTOFF = 0.0 # Rotator/IFU offset angle in degrees KNOTSPP = 1.25 # Knots per Y image pixel for sky modeling plot_width=1000 plot_height=600 CRR_MINEXPTIME = 60 # Set lower to enable CCR CRR_PSSL = 0.0 CRR_GAIN = 1.0 CRR_READNOISE = 3.2 CRR_SIGCLIP = 4.5 CRR_SIGFRAC = 0.3 CRR_OBJLIM = 4.0 CRR_PSFFWHM = 2.5 CRR_FSMODE = "median" CRR_PSFMODEL = "gauss" CRR_SATLEVEL = 60000.0 CRR_VERBOSE = False CRR_SEPMED = False CRR_CLEANTYPE = "meanmask" CRR_NITER = 4

psfwid = 30 # Nominal window for pt. source (unbinned px)

which arc lamp to use

choices are ThAr and FeAr

default_arc_lamp = 'ThAr'

Wavelength Calibration Options

Options are ["heliocentric", "barycentric", "none"]

radial_velocity_correction = "heliocentric"

air_to_vacuum = True # Defaults to vacuum wavelengths

Keck II Location

latitude = 19.82656 longitude = -155.4742 altitude = 4160

BOKEH SERVER

enable_bokeh = True plot_level = 1