Perform basic processing on ccd data.
- The following steps can be included:
- overscan correction
- trimming of the image
- create edeviation frame
- gain correction
- add a mask to the data
- subtraction of master bias
The task returns a processed ccdproc.CCDData object.
Parameters: | ccd: `ccdproc.CCDData`
oscan: None, str, or, `~ccdproc.ccddata.CCDData`
trim: None or str
error: boolean
masterbias: None, `~numpy.ndarray`, or `~ccdproc.CCDData`
bad_pixel_mask: None or `~numpy.ndarray`
gain: None or `~astropy.Quantity`
rdnoise: None or `~astropy.Quantity`
oscan_median : bool, optional
oscan_model : Model, optional
|
---|---|
Returns: | ccd: ccdproc.CCDData
|
Examples
>>> import numpy as np
>>> from astropy import units as u
>>> from hrsprocess import ccd_process
>>> ccd = CCDData(np.ones([100, 100]), unit=u.adu)
>>> nccd = ccd_process(ccd, oscan='[1:10,1:100]', trim='[10:100, 1,100]',
error=False, gain=2.0*u.electron/u.adu)