コード例 #1
0
def vis_two_steps_nested(exposures, master_dark, master_flat, control_params):
    quadrants = vis_split_quadrants(exposures=exposures)
    quadrants_correction_output = correct(
        quadrant=quadrants, master_dark=master_dark, master_flat=master_flat, control_params=control_params
    )
    corrected_exposures, hot_pixels_map, dead_pixels_map = vis_combine_quadrants(inputlist=quadrants_correction_output)
    return corrected_exposures, hot_pixels_map, dead_pixels_map
コード例 #2
0
def vis_pipeline(exposures, master_bias, nonlin_model, cti_model, master_dark,
                 master_flat, master_illum, illum_model, scattered_light_model,
                 control_params):

    quadrants = vis_split_quadrants(exposures=exposures)

    quadrants_correction_output = vis_correct_quadrant(
        quadrant=quadrants,
        master_bias=master_bias,
        nonlin_model=nonlin_model,
        cti_model=cti_model,
        master_dark=master_dark,
        master_flat=master_flat,
        master_illum=master_illum,
        illum_model=illum_model,
        control_params=control_params)

    corrected_exposures, hot_pixels_map, dead_pixels_map = vis_combine_quadrants(
        inputlist=quadrants_correction_output)

    detector_frames = vis_split_detectors(exposures=corrected_exposures)

    vis_correct_detectors_output = vis_correct_detectors(
        frame=detector_frames,
        scattered_light_model=scattered_light_model,
        control_params=control_params)

    frame, bkgr_map, noise_map, cosmic_rays_map, weights_map = vis_combine_detectors(
        inputlist=vis_correct_detectors_output)
    return frame, bkgr_map, noise_map, cosmic_rays_map, weights_map, hot_pixels_map, dead_pixels_map
コード例 #3
0
def vis_two_steps_nested(exposures, master_dark, master_flat, control_params):
    quadrants = vis_split_quadrants(exposures=exposures)
    quadrants_correction_output = correct(quadrant=quadrants,
                                          master_dark=master_dark,
                                          master_flat=master_flat,
                                          control_params=control_params)
    corrected_exposures, hot_pixels_map, dead_pixels_map = vis_combine_quadrants(
        inputlist=quadrants_correction_output)
    return corrected_exposures, hot_pixels_map, dead_pixels_map
コード例 #4
0
def vis_pipeline(exposures, master_bias, control_params):
        
    quadrants = vis_split_quadrants(exposures=exposures)
    
    quadrants_correction_output = vis_correct_quadrant(quadrant=quadrants, 
                                                        master_bias=master_bias, 
                                                        control_params=control_params)
    
    corrected_exposures, hot_pixels_map, dead_pixels_map = vis_combine_quadrants(inputlist=quadrants_correction_output)
    
    return corrected_exposures, hot_pixels_map, dead_pixels_map
コード例 #5
0
def vis_pipeline(exposures, master_bias, nonlin_model, control_params):

    quadrants = vis_split_quadrants(exposures=exposures)

    quadrants_correction_output = vis_correct_quadrants(
        quadrant=quadrants,
        master_bias=master_bias,
        nonlin_model=nonlin_model,
        control_params=control_params)

    corrected_exposures, hot_pixels_map, dead_pixels_map = vis_combine_quadrants(
        inputlist=quadrants_correction_output)

    corrected_exposures = vis_correct_quadrant(quadrant=corrected_exposures,
                                               master_bias=master_bias,
                                               nonlin_model=nonlin_model,
                                               control_params=control_params)

    return corrected_exposures, hot_pixels_map, dead_pixels_map
コード例 #6
0
def vis_pipeline(exposures, master_bias, nonlin_model, cti_model, master_dark, master_flat, 
                            master_illum, illum_model, scattered_light_model,control_params):
        
    quadrants = vis_split_quadrants(exposures=exposures)
    
    quadrants_correction_output = vis_correct_quadrant(quadrant=quadrants, master_bias=master_bias, 
                                                        nonlin_model=nonlin_model, cti_model=cti_model, 
                                                        master_dark=master_dark, master_flat=master_flat, 
                                                        master_illum=master_illum, illum_model=illum_model, 
                                                        control_params=control_params)
    
    corrected_exposures, hot_pixels_map, dead_pixels_map = vis_combine_quadrants(inputlist=quadrants_correction_output)
    
    detector_frames = vis_split_detectors(exposures=corrected_exposures)
    
    vis_correct_detectors_output = vis_correct_detectors(frame=detector_frames, 
                                                          scattered_light_model=scattered_light_model, 
                                                          control_params=control_params)
    
    frame, bkgr_map, noise_map, cosmic_rays_map, weights_map = vis_combine_detectors(inputlist=vis_correct_detectors_output)
    return frame, bkgr_map, noise_map, cosmic_rays_map, weights_map, hot_pixels_map, dead_pixels_map