Skip to content

Commit

Permalink
Change rasterio opening call to new recommended method (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl authored Nov 4, 2024
1 parent 9260c11 commit b698024
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ci/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ dependencies:
- bokeh ==3.5.1
- gilknocker ==0.4.1
- openssl >1.1.0g
- rasterio >=1.4.0
- rioxarray ==0.17.0
- h5netcdf ==1.3.0
- xesmf ==0.8.7
Expand Down
3 changes: 2 additions & 1 deletion tests/geospatial/test_zonal_average.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ def test_nwm(
subset = ds.zwattablrt.sel(time=time_range)

counties = rioxarray.open_rasterio(
s3.open("s3://nwm-250m-us-counties/Counties_on_250m_grid.tif"),
"s3://nwm-250m-us-counties/Counties_on_250m_grid.tif",
chunks="auto",
opener=s3.open,
).squeeze()

# Remove any small floating point error in coordinate locations
Expand Down

0 comments on commit b698024

Please sign in to comment.