processing_library/image/operations.py
def create_image_from_array(data: numpy.array, wcs: WCS, polarisation_frame: PolarisationFrame) -> Image:
    """ Create an image from an array and optional wcs
    
    The output image preserves a reference to the input array.

    :param data: Numpy.array
    :param wcs: World coordinate system
    :param polarisation_frame: Polarisation Frame
    :return: Image
    
    """
    fim = Image()
    fim.polarisation_frame = polarisation_frame
    
    fim.data = data
    if wcs is None:
        fim.wcs = None
    else:
        fim.wcs = wcs.deepcopy()
    
    if image_sizeof(fim) >= 1.0:
        log.debug("create_image_from_array: created %s image of shape %s, size %.3f (GB)" %
                  (fim.data.dtype, str(fim.shape), image_sizeof(fim)))
    
    assert isinstance(fim, Image), "Type is %s" % type(fim)
    return fim
 Create an image from an array and optional wcs
    
    The output image preserves a reference to the input array.

    :param data: Numpy.array
    :param wcs: World coordinate system
    :param polarisation_frame: Polarisation Frame
    :return: Image
    
    
Create an image from an array and optional wcs
The output image preserves a reference to the input array.
Create an image from an array and optional wcs The output image preserves a reference to the input array .
def create_image_from_array(data: numpy.array, wcs: WCS, polarisation_frame: PolarisationFrame) -> Image:
    fim = Image()
    fim.polarisation_frame = polarisation_frame
    fim.data = data
    if wcs is None:
        fim.wcs = None
    else:
        fim.wcs = wcs.deepcopy()
    if image_sizeof(fim) >= 1.0:
        log.debug("create_image_from_array: created %s image of shape %s, size %.3f (GB)" %
                  (fim.data.dtype, str(fim.shape), image_sizeof(fim)))
    assert isinstance(fim, Image), "Type is %s" % type(fim)
    return fim
def create_image_from_array ( data : numpy . array , wcs : WCS , polarisation_frame : PolarisationFrame ) -> Image : fim = Image ( ) fim . polarisation_frame = polarisation_frame fim . data = data if wcs is None : fim . wcs = None else : fim . wcs = wcs . deepcopy ( ) if image_sizeof ( fim ) >= 1.0 : log . debug ( "create_image_from_array: created %s image of shape %s, size %.3f (GB)" % ( fim . data . dtype , str ( fim . shape ) , image_sizeof ( fim ) ) ) assert isinstance ( fim , Image ) , "Type is %s" % type ( fim ) return fim
Create an image from an array and optional wcs
The output image preserves a reference to the input array.
Create an image from an array and optional wcs The output image preserves a reference to the input array .
""" Create an image from an array and optional wcs
    
    The output image preserves a reference to the input array.

    :param data: Numpy.array
    :param wcs: World coordinate system
    :param polarisation_frame: Polarisation Frame
    :return: Image
    
    """
None
data
numpy.array
None
wcs
WCS
World coordinate system
World coordinate system
polarisation_frame
PolarisationFrame
None