I am using the app DC-2d-inversion to load and invert UBC formatted data. I am finding that the plotPseudoSection method is not robust when the topography is constant. The code fails on some datasets when trying to perform and interpolation in the plot_2D_data function. On others there is no problem.
Easiest solution would be to look if the topography is flat. If it is, just use a 1D interpolation instead of LinearNDInterpolator.
I have uploaded some UBC formatted data and the associated topography files. Hopefully we can find a solution fast. Try PARKWS724MAUTODEVELECREMUBC.dat. I think this one fails

I am using the app DC-2d-inversion to load and invert UBC formatted data. I am finding that the plotPseudoSection method is not robust when the topography is constant. The code fails on some datasets when trying to perform and interpolation in the plot_2D_data function. On others there is no problem.
Easiest solution would be to look if the topography is flat. If it is, just use a 1D interpolation instead of LinearNDInterpolator.
I have uploaded some UBC formatted data and the associated topography files. Hopefully we can find a solution fast. Try PARKWS724MAUTODEVELECREMUBC.dat. I think this one fails