Skip to content

Commit

Permalink
Merge pull request #1087 from xcube-dev/konstntokas-1086-change_doc_s…
Browse files Browse the repository at this point in the history
…tring_griddmapping_scale

Error in documentation of `GridMapping.scale` method corrected
  • Loading branch information
forman authored Nov 13, 2024
2 parents 0262021 + a94b389 commit 4ed9c72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

* The function `xcube.core.resample.resample_in_space()` now always operates
lazily and therefore supports chunk-wise, parallel processing. (#1

* The explaination of the parameter `xy_scale` in the method
`xcube.core.gridmapping.GridMapping.scale` has been corrected. (#1086)

## Changes in 1.7.1

Expand Down
6 changes: 3 additions & 3 deletions xcube/core/gridmapping/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ def scale(
) -> "GridMapping":
"""Derive a scaled version of this regular grid mapping.
Scaling factors lower than one correspond to up-scaling
Scaling factors larger than one correspond to up-scaling
(pixels sizes decrease, image size increases).
Scaling factors larger than one correspond to down-scaling.
Scaling factors lower than one correspond to down-scaling.
(pixels sizes increase, image size decreases).
Args:
Expand Down Expand Up @@ -729,7 +729,7 @@ def transform(
Args:
crs: The new spatial coordinate reference system.
xy_res: Optional resolution in x- and y-directions.
If given, speeds up the method by avoiding time-consuming
If given, speeds up the method by avoiding time-consuming
spatial resolution estimation.
tile_size: Optional new tile size.
xy_var_names: Optional new coordinate names.
Expand Down

0 comments on commit 4ed9c72

Please sign in to comment.