Skip to content

Commit

Permalink
add test function for reduction_to_pole transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
zaarcvon committed Jun 14, 2024
1 parent 9762d0b commit 8978bbf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions harmonica/tests/test_transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,14 @@ def test_upward_continuation(sample_g_z, sample_g_z_upward):
xrt.assert_allclose(continuation, g_z_upward, atol=1e-8)


def test_reduction_to_pole(sample_potential):
"""
Test reduction_to_pole function with non-typical dim names
"""
renamed_dims_grid = sample_potential.rename({"easting" : "name_one", "northing" : "name_two"})
reduction_to_pole(renamed_dims_grid, 60, 45)


class TestTotalGradientAmplitude:
"""
Test total_gradient_amplitude function
Expand Down

0 comments on commit 8978bbf

Please sign in to comment.