Skip to content

Commit b698024

Browse files
authored
Change rasterio opening call to new recommended method (#1580)
1 parent 9260c11 commit b698024

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ci/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ dependencies:
4747
- bokeh ==3.5.1
4848
- gilknocker ==0.4.1
4949
- openssl >1.1.0g
50+
- rasterio >=1.4.0
5051
- rioxarray ==0.17.0
5152
- h5netcdf ==1.3.0
5253
- xesmf ==0.8.7

tests/geospatial/test_zonal_average.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ def test_nwm(
3737
subset = ds.zwattablrt.sel(time=time_range)
3838

3939
counties = rioxarray.open_rasterio(
40-
s3.open("s3://nwm-250m-us-counties/Counties_on_250m_grid.tif"),
40+
"s3://nwm-250m-us-counties/Counties_on_250m_grid.tif",
4141
chunks="auto",
42+
opener=s3.open,
4243
).squeeze()
4344

4445
# Remove any small floating point error in coordinate locations

0 commit comments

Comments
 (0)