subtract_data

pySurf.data2D.subtract_data(d1, d2, xysecond=False, resample=True)

d1 and d2 are triplets (data,x,y), second array is automatically resampled on first, unless resample is set to False (in that case, data arrays are assumed having same size and subtracted. If xySecond is set to True results are calculated on xy of 2nd array, equivalent to -(subtract_data(d2-d1)).