Skip to content

Commit 5c34af7

Browse files
authored
Additional homogenization and fixes of argument names (#450)
1 parent c9c9a84 commit 5c34af7

File tree

6 files changed

+186
-157
lines changed

6 files changed

+186
-157
lines changed

bin/geoviewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def main(test_args: Sequence[str] = None) -> None:
135135
dfact = 1
136136

137137
# Read image
138-
img = Raster(args.filename, downsample=dfact, indexes=args.band)
138+
img = Raster(args.filename, downsample=dfact, bands=args.band)
139139

140140
# Set no data value
141141
if args.nodata == "default":

examples/handling/georeferencing/reproj_raster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@
5858
# Ensure the right nodata value is set
5959
rast2.set_nodata(0)
6060
# Pass the desired georeferencing parameters
61-
rast2_warped = rast2.reproject(size=(100, 100), crs=32645)
61+
rast2_warped = rast2.reproject(grid_size=(100, 100), crs=32645)
6262
print(rast2_warped.info())

examples/io/open_save/read_raster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# %%
3434
# Opening can be performed with several parameters, for instance choosing a single band with ``index`` and re-sampling with ``downsample``, to subset a 3-band
3535
# raster to its second band, and using 1 pixel out of 4.
36-
rast = gu.Raster(gu.examples.get_path("everest_landsat_rgb"), indexes=2, downsample=4)
36+
rast = gu.Raster(gu.examples.get_path("everest_landsat_rgb"), bands=2, downsample=4)
3737
rast
3838

3939
# %%

0 commit comments

Comments
 (0)