Skip to content

Commit

Permalink
Additional homogenization and fixes of argument names (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Jan 26, 2024
1 parent c9c9a84 commit 5c34af7
Show file tree
Hide file tree
Showing 6 changed files with 186 additions and 157 deletions.
2 changes: 1 addition & 1 deletion bin/geoviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def main(test_args: Sequence[str] = None) -> None:
dfact = 1

# Read image
img = Raster(args.filename, downsample=dfact, indexes=args.band)
img = Raster(args.filename, downsample=dfact, bands=args.band)

# Set no data value
if args.nodata == "default":
Expand Down
2 changes: 1 addition & 1 deletion examples/handling/georeferencing/reproj_raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@
# Ensure the right nodata value is set
rast2.set_nodata(0)
# Pass the desired georeferencing parameters
rast2_warped = rast2.reproject(size=(100, 100), crs=32645)
rast2_warped = rast2.reproject(grid_size=(100, 100), crs=32645)
print(rast2_warped.info())
2 changes: 1 addition & 1 deletion examples/io/open_save/read_raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# %%
# 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
# raster to its second band, and using 1 pixel out of 4.
rast = gu.Raster(gu.examples.get_path("everest_landsat_rgb"), indexes=2, downsample=4)
rast = gu.Raster(gu.examples.get_path("everest_landsat_rgb"), bands=2, downsample=4)
rast

# %%
Expand Down

0 comments on commit 5c34af7

Please sign in to comment.