Skip to content

GeoImage.open doesn't seem to follow docs #171

@ra-tolson

Description

@ra-tolson

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions