lasio icon indicating copy to clipboard operation
lasio copied to clipboard

Provide interpolate() method

Open kinverarity1 opened this issue 5 years ago • 3 comments

LAS files are meant to have a constant interval in the index column.

But sometimes they don't.

We should have a method that fixes that. By using either STRT, STOP, STEP and linear interpolation, or using whatever the dominant existing interval is.

Should be pretty simple using scipy.interpolate.interp1d.

kinverarity1 avatar Jul 03 '19 12:07 kinverarity1

Could be used to fix #134

kinverarity1 avatar Jul 03 '19 12:07 kinverarity1

Closely related: #116

kinverarity1 avatar Jul 04 '19 01:07 kinverarity1

I think this function could be a good starting point:

https://github.com/kinverarity1/gio/blob/861c4c32cbeee6d81a790bcb12f0da8395c7682e/gio/geo.py#L408-L441

kinverarity1 avatar Apr 09 '21 07:04 kinverarity1