Skip to content

Commit 5ce1f39

Browse files
committed
remove deprecation
1 parent e7da47d commit 5ce1f39

2 files changed

Lines changed: 1 addition & 23 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
## Changes in 0.3.4
22

33
- Added `utils.transform_resolution` to convert spatial resolution between coordinate
4-
reference systems (CRS) and introduced deprecation warnings for
5-
`utils.resolution_degrees_to_meters` and `utils.resolution_meters_to_degrees`, which
6-
are superseded by `utils.transform_resolution`.
4+
reference systems (CRS).
75

86
## Changes in 0.3.3
97

xcube_resampling/utils.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,6 @@ def resolution_meters_to_degrees(
359359
"""Convert spatial resolution from meters to degrees in longitude and latitude
360360
at a given geographic latitude.
361361
362-
This function is deprecated and will be removed in a future release.
363-
Use `transform_resolution` instead for CRS-aware and more accurate conversions.
364-
365362
Args:
366363
resolution: Spatial resolution in meters. Can be a single number
367364
(applied equally to both axes) or a tuple ``(x_res, y_res)``.
@@ -376,13 +373,6 @@ def resolution_meters_to_degrees(
376373
- 1 degree of longitude ≈ 111,320 * cos(latitude) meters.
377374
378375
"""
379-
warnings.warn(
380-
"resolution_meters_to_degrees is deprecated and will be removed in a future release. "
381-
"Use `transform_resolution` instead for accurate CRS-based resolution handling.",
382-
DeprecationWarning,
383-
stacklevel=2,
384-
)
385-
386376
if not isinstance(resolution, tuple):
387377
resolution = (resolution, resolution)
388378
return (
@@ -396,9 +386,6 @@ def resolution_degrees_to_meters(
396386
) -> tuple[FloatInt, FloatInt]:
397387
"""Convert spatial resolution from degrees to meters at a given geographic latitude.
398388
399-
This function is deprecated and will be removed in a future release.
400-
Use `transform_resolution` instead for CRS-aware and more accurate conversions.
401-
402389
Args:
403390
resolution: Spatial resolution in degrees. Can be a single number
404391
(applied equally to both axes) or a tuple ``(lon_res, lat_res)``.
@@ -413,13 +400,6 @@ def resolution_degrees_to_meters(
413400
- 1 degree of longitude ≈ 111,320 * cos(latitude) meters.
414401
415402
"""
416-
warnings.warn(
417-
"resolution_degrees_to_meters is deprecated and will be removed in a future release. "
418-
"Use `transform_resolution` instead for accurate CRS-based resolution handling.",
419-
DeprecationWarning,
420-
stacklevel=2,
421-
)
422-
423403
if not isinstance(resolution, tuple):
424404
resolution = (resolution, resolution)
425405
return (

0 commit comments

Comments
 (0)