How to use the drizzlepac.astrodrizzle.adrizzle.log function in drizzlepac

To help you get started, we’ve selected a few drizzlepac examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gbrammer / grizli / grizli / multifit.py View on Github external
fcontam: float
        Factor by which to scale the contamination arrays and add to the 
        pixel variances.
        
    ds9 : `pyds9.DS9`, optional
        Display each step of the drizzling to an open DS9 window
    
    Returns
    -------
    hdu : `~astropy.io.fits.HDUList`
        FITS HDUList with the drizzled thumbnail, line and continuum 
        cutouts.
    """
    from drizzlepac.astrodrizzle import adrizzle
    adrizzle.log.setLevel('ERROR')
    
    # Nothing to do
    if len(beams) == 0:
        return False
        
    ### Get output header and WCS
    if wcs is None:
        header, output_wcs = utils.make_wcsheader(ra=ra, dec=dec, size=size, pixscale=pixscale, get_hdu=False)
    else:
        output_wcs = wcs.copy()
        if not hasattr(output_wcs, 'pscale'):
            output_wcs.pscale = utils.get_wcs_pscale(output_wcs)
            
        header = utils.to_header(output_wcs, relax=True)
        
    ### Initialize data

drizzlepac

HST image combination using the drizzle algorithm to combine astronomical images, to model image distortion, to remove cosmic rays, and generally to improve the fidelity of data in the final image.

BSD-3-Clause
Latest version published 2 months ago

Package Health Score

84 / 100
Full package analysis