-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let load_earth_relief() support all resolutions and optional subregion
Redesign the load_earth_relief function to support all resolutions and also allow subregion for high-resolution grids. Changes in this PR: - For grid>05m, calls the `which` function. - For grids<=05m, calls the `grdcut` function. - For grids<=05m, users have to pass the region argument to select a subregion. - Remove the unused function `_shape_from_resolution` - Use two lists `tiled_resolutions` and `non_tiled_resolutions`, instead of the old `_is_valid_resolution` function Known issues: - grid>05m don't allow a subregion - grid<=05m don't allow slice operation Co-authored-by: Wei Ji <[email protected]>
- Loading branch information
Showing
3 changed files
with
96 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters