Skip to content

Commit fbaec5e

Browse files
committed
update notebooks, docstrings
1 parent 28dffb3 commit fbaec5e

6 files changed

Lines changed: 221 additions & 412 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,6 @@ ENV/
107107

108108
# temp files
109109
*.swp
110+
111+
# other configs
112+
imgui.ini

docs/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Example Notebooks
1212
examples/example_006_yt_method_access
1313
examples/example_007_interpolation
1414
examples/example_008_interpolation_with_refinement
15-
examples/example_010_custom_transformations
15+
examples/example_009_custom_transformations
1616

1717
These notebooks demonstrate `yt_xarray` usage:
1818

@@ -24,4 +24,4 @@ These notebooks demonstrate `yt_xarray` usage:
2424
- Example 006: :doc:`examples/example_006_yt_method_access`
2525
- Example 007: :doc:`examples/example_007_interpolation`
2626
- Example 008: :doc:`examples/example_008_interpolation_with_refinement`
27-
- Example 010: :doc:`examples/example_010_custom_transformations`
27+
- Example 010: :doc:`examples/example_009_custom_transformations`

docs/examples/example_008_interpolation_with_refinement.ipynb

Lines changed: 211 additions & 353 deletions
Large diffs are not rendered by default.

docs/examples/example_010_custom_transformations.ipynb renamed to docs/examples/example_009_custom_transformations.ipynb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -214,23 +214,6 @@
214214
"source": [
215215
"Additionally, as long as your custom transformer transforms to and from 3D cartesian coordinates and if the \"native\" coordinates match an xarray dataset field's dimensions, **you can hand off your custom transformer to `build_interpolated_cartesian_ds`** and build a yt cartesian dataset that reads and interpolates from an arbitrary coordinate system! "
216216
]
217-
},
218-
{
219-
"cell_type": "markdown",
220-
"id": "fb1249fa-fcca-4fff-b0e5-5757cd6a3c81",
221-
"metadata": {},
222-
"source": [
223-
"### Custom interpolations\n",
224-
"\n"
225-
]
226-
},
227-
{
228-
"cell_type": "code",
229-
"execution_count": null,
230-
"id": "45203947-4152-4e68-a12f-274f8ee1a978",
231-
"metadata": {},
232-
"outputs": [],
233-
"source": []
234217
}
235218
],
236219
"metadata": {

docs/examples/example_009_interpolated_in_yt_idv.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

yt_xarray/transformations.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,11 @@ def build_interpolated_cartesian_ds(
492492
if refine_grid is True, max iterations for grid refinement (default 200)
493493
refine_min_grid_size:
494494
if refine_grid is True, minimum number of elements in refined grid (default 10)
495+
refinement_method:
496+
One of 'division' (the default) or 'signature_filter'. If 'division', refinement
497+
will proceed by iterative bisection in each dimension. If 'signature_filter',
498+
will use the image mask signature decomposition of Berger and Rigoutsos 1991
499+
(https://doi.org/10.1109/21.120081).
495500
interp_method: str
496501
interpolation method: 'nearest' or 'interpolate'. Defaults to 'nearest'.
497502
If 'interpolate', will use linear nd interpolation.

0 commit comments

Comments
 (0)