fisspy/io/read.py
def frame2raster(frame, header, wv, absScale = False):
    """
    Make a raster image by using the frame data.
    
    Parameters
    ----------
    frame : ~numpy.ndarray
        Data which is read from the fisspy.io.read.frame
    header : astropy.io.fits.Header
        FISS data header
    wv : float or ~numpy.ndarray
        Referenced wavelengths to draw raster image. It must be the one single float,
        or 1D array
    absScale : (optional) bool
        If True, the wavelength should be given in absolute scale.
        If Flase, the wavelength should be given in relative scale. 
    Returns
    -------
    Raster : ~numpy.ndarray
        Raster image at gieven wavelength.
    """
    hw = 0.05
    wl = simple_wvcalib(header, absScale= absScale)
    s = np.abs(wl - wv) <= hw
    img = frame[:, :, s].sum(2) / s.sum()
    return img

    Make a raster image by using the frame data.
    
    Parameters
    ----------
    frame : ~numpy.ndarray
        Data which is read from the fisspy.io.read.frame
    header : astropy.io.fits.Header
        FISS data header
    wv : float or ~numpy.ndarray
        Referenced wavelengths to draw raster image. It must be the one single float,
        or 1D array
    absScale : (optional) bool
        If True, the wavelength should be given in absolute scale.
        If Flase, the wavelength should be given in relative scale. 
    Returns
    -------
    Raster : ~numpy.ndarray
        Raster image at gieven wavelength.
    
Make a raster image by using the frame data.
Parameters

frame : ~numpy.ndarray
Data which is read from the fisspy.io.read.frame
header : astropy.io.fits.Header
FISS data header
wv : float or ~numpy.ndarray
Referenced wavelengths to draw raster image. It must be the one single float,
or 1D array
absScale : (optional) bool
If True, the wavelength should be given in absolute scale.
If Flase, the wavelength should be given in relative scale.
Returns

Raster : ~numpy.ndarray
Raster image at gieven wavelength.
Make a raster image by using the frame data . Parameters frame : ~numpy . ndarray Data which is read from the fisspy . io . read . frame header : astropy . io . fits . Header FISS data header wv : float or ~numpy . ndarray Referenced wavelengths to draw raster image . It must be the one single float or 1D array absScale : ( optional ) bool If True the wavelength should be given in absolute scale . If Flase the wavelength should be given in relative scale . Returns Raster : ~numpy . ndarray Raster image at gieven wavelength .
def frame2raster(frame, header, wv, absScale = False):
    hw = 0.05
    wl = simple_wvcalib(header, absScale= absScale)
    s = np.abs(wl - wv) <= hw
    img = frame[:, :, s].sum(2) / s.sum()
    return img
def frame2raster ( frame , header , wv , absScale = False ) : hw = 0.05 wl = simple_wvcalib ( header , absScale = absScale ) s = np . abs ( wl - wv ) <= hw img = frame [ : , : , s ] . sum ( 2 ) / s . sum ( ) return img
Make a raster image by using the frame data.
Make a raster image by using the frame data .
"""
    Make a raster image by using the frame data.
    
    Parameters
    ----------
    frame : ~numpy.ndarray
        Data which is read from the fisspy.io.read.frame
    header : astropy.io.fits.Header
        FISS data header
    wv : float or ~numpy.ndarray
        Referenced wavelengths to draw raster image. It must be the one single float,
        or 1D array
    absScale : (optional) bool
        If True, the wavelength should be given in absolute scale.
        If Flase, the wavelength should be given in relative scale. 
    Returns
    -------
    Raster : ~numpy.ndarray
        Raster image at gieven wavelength.
    """
frame
header
wv
absScale