def set(data,c):
    """
    Set Data to a Constant

    Parameters:
        
    * data  Array of spectral data.
    * c     Constant to set data to (may be complex)

    """
    data[...,:]=c
    return data