data-exp-lab / yt-napari

A napari plugin for reading data from yt
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Handling non-cartesian datasets #34

Open chrishavlin opened 2 years ago

chrishavlin commented 2 years ago

Would be good to add some handling of non-cartesian datasets. I'll investigate the napari side, but I suspect the solution would have to be on the yt-napari side and would involve either resampling a field on a cartesian grid. There may be some utilities in yt to help here. And there are some potential pitfalls and caveats with resampling in cartesian, but I think we could come up with a reasonable solution.

chrishavlin commented 1 year ago

was playing with this briefly today: can actually extract a regularized region with ds.r for non-cartesian geometries and load this in linear coordinates. Would need to add an extra interpolation/transformation to view in true cartesian coordinates though.