OPTIMAS/trefide_pipeline.py
def remove_spline_trend(data,
                        trend):
    """
    Removes the fitted spline trend from the raw data

    Parameters:
        data:
        trend:
    Returns:

    """
    data.shape
    data = data.reshape(128*128,-1)
    detrended = data - trend
    print(detrended)
    return detrended

    Removes the fitted spline trend from the raw data

    Parameters:
        data:
        trend:
    Returns:

    
Removes the fitted spline trend from the raw data
Removes the fitted spline trend from the raw data
def remove_spline_trend(data,
                        trend):
    data.shape
    data = data.reshape(128*128,-1)
    detrended = data - trend
    print(detrended)
    return detrended
def remove_spline_trend ( data , trend ) : data . shape data = data . reshape ( 128 * 128 , - 1 ) detrended = data - trend print ( detrended ) return detrended
Removes the fitted spline trend from the raw data
Removes the fitted spline trend from the raw data
"""
    Removes the fitted spline trend from the raw data

    Parameters:
        data:
        trend:
    Returns:

    """
None
data
None
trend
None