Skip to content

geoarray initialization #9

@lotruheawea

Description

@lotruheawea

When I init a new instance of a geoarray, e.g. by its wrapper calls full_like, a new geoarray is created. BUT some attributes are copied over from the like-array, which makes sense but not for _fobj. This is done in geoarray/core.py, line 281, fobj is passed on. But in the write section of geoarray/gdalio.py line 160, _fobj is taken by default for creating the output GDAL bands from the new geoarray.

This means that all the previous data manipulation is pointless as the original array's _fobj is taken.

This should be changed, likely by removing _fobj from the argument list in geoarray/core.py.

(It took my like 2 hours to figure that out. I also assume that the current behavior leads to bugs.)

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