remove_nan_frame

pySurf.data2D.remove_nan_frame(data, x, y, internal=False)

Remove all external rows and columns that contains only nans. If internal is set, return the internal crop (largest internal rectangle without nans on the frame).