agilescientific / seisplot

Plots seismic, sorta
Apache License 2.0
110 stars 42 forks source link

Affine transformation #39

Open kwinkunks opened 6 years ago

kwinkunks commented 6 years ago

Rotate timeslices to correct orientation.

https://matplotlib.org/2.0.0/examples/api/demo_affine_image.html

mycarta commented 6 years ago

Question since you are looking at affine transformations: are you just looking at an option for on-the-fly plotting of a rotated time-slice or actually transforming and storing the slice? For the former the Matplotlib example will do well. For the latter, I'd again use warping in scikit-image. For completeness: there is the generic Scipy function scipy.ndimage.interpolation.affine_transform but last time I checked it had issues see here. I figured out my own workaround, can discuss, but it is a bit of a headache.

kwinkunks commented 6 years ago

Since we would presumably have the seismic traces already (i.e., we have the correct data, just in inline-xline coords), I think this is just for plotting.