Looks like either the API has drifted or else the docs need updating. The docs say you can go:
geoimg = GeoImage.open(filename, bandnames=(['red', 'green', 'blue']), nodata=0)
But when I try it it looks like it's iterating over the filename's characters:
(Pdb) gippy.GeoImage.open('foo.tif')
*** RuntimeError: 4: f: No such file or directory
I can workaround with a list though:
(Pdb) gippy.GeoImage.open(['foo.tif'])
*** RuntimeError: 4: foo.tif: No such file or directory
The reason I'd like to call GeoImage.open() over GeoImage() is that with the former I can set nodata & gain as part of the call; I don't see how to do that with GeoImage().
Looks like either the API has drifted or else the docs need updating. The docs say you can go:
But when I try it it looks like it's iterating over the filename's characters:
I can workaround with a list though:
The reason I'd like to call
GeoImage.open()overGeoImage()is that with the former I can set nodata & gain as part of the call; I don't see how to do that withGeoImage().