-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap xarray.open_rasterio for rioxarray.open_rasterio #62
xarray just dropped the deprecated open_rasterio method, so this swaps in rioxarray.open_rasterio when calling to_xarray. This is a potentially breaking change because the two methods stored slightly different metadata in the resulting dataset (e.g. ds.crs must now be accessed through ds.rio.crs). In the process of getting pre-commit checks to pass, we also had to update all the outdated, broken hooks and make a few changes to get mypy passing.
- Loading branch information
Showing
6 changed files
with
12 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 21.7b0 | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.910 | ||
rev: v1.2.0 | ||
hooks: | ||
- id: mypy | ||
args: [--disallow-untyped-defs, --no-implicit-optional, --warn-unused-ignores, --warn-redundant-casts, --warn-unreachable] | ||
exclude: test | ||
additional_dependencies: [types-requests, xarray] | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.8.0 | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: [--profile, black] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
requirements = [ | ||
"rasterio", | ||
"xarray", | ||
"rioxarray", | ||
"earthengine-api", | ||
"tqdm", | ||
"requests", | ||
|
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
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