Skip to content

Commit

Permalink
Merge pull request #964 from xcube-dev/forman-v1.5.0
Browse files Browse the repository at this point in the history
Preparing v1.5.0 release
  • Loading branch information
forman committed Apr 9, 2024
2 parents 3bf91a7 + 2a5d5e8 commit 7d7a23f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
@@ -1,4 +1,4 @@
## Changes in 1.4.2 (in development)
## Changes in 1.5.0

* Enhanced spatial resampling in module `xcube.core.resampling` (#955):
- Added optional keyword argument `interpolation` to function
Expand Down
14 changes: 14 additions & 0 deletions test/core/resampling/test_rectify.py
Expand Up @@ -200,6 +200,20 @@ def test_rectify_2x2_to_7x7_subset(self):
),
)

def test_rectify_2x2_to_7x7_ij_only(self):
source_ds = self.new_2x2_dataset_with_irregular_coords()
source_ds = source_ds.drop_vars("rad")

target_gm = GridMapping.regular(
size=(7, 7), xy_min=(-0.5, 49.5), xy_res=1.0, crs=CRS_WGS84
)

target_ds = rectify_dataset(
source_ds, target_gm=target_gm, output_ij_names=("source_i", "source_j")
)

self.assertEqual({"source_i", "source_j"}, set(target_ds.data_vars.keys()))

def test_rectify_2x2_to_7x7_deprecations(self):
source_ds = self.new_2x2_dataset_with_irregular_coords()

Expand Down
2 changes: 1 addition & 1 deletion xcube/version.py
Expand Up @@ -19,4 +19,4 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

version = "1.4.2.dev0"
version = "1.5.0"

0 comments on commit 7d7a23f

Please sign in to comment.