importing rioxarray instead of xarray to open rasterio file#474
Merged
importing rioxarray instead of xarray to open rasterio file#474
Conversation
Contributor
yes, I wanted to use rioxarray as well because I already got the deprecation warning at the time I wrote the shipping raster script. But somehow with rioxarray I could not open the raster data and I think it always crashed. So I switched back to xarray. But if it works now with rioxarray I would also change it as you did @virio-andreyana |
Contributor
|
@p-glaum do you remember the reason why we you did not choose to convert the tif to a netcdf file in the first place? |
Contributor
|
No sorry. I remember I took that detour because the direct way was not working due to some error. If I remember correctly, Python was always crashing with the tif file |
6 tasks
Contributor
|
@fneum I can fix the pre-commit CI in separate PR |
Member
|
Looks good! |
fneum
approved these changes
Apr 21, 2023
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #644
closes #476
Importing rioxarray instead of xarray to open rasterio file. This is to fix the warning in rule build_ship_raster: open_rasterio is Deprecated in favor of rioxarray. For information about transitioning, see: https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html
changes had been made in the environment and environment.fixed to add rioxarray
Checklist
envs/environment.yamlandenvs/environment.docs.yaml.config.default.yaml,config.tutorial.yaml, andtest/config.test1.yaml.doc/configtables/*.csvand line references are adjusted indoc/configuration.rstanddoc/tutorial.rst.doc/release_notes.rstis amended in the format of previous release notes.