Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geoarray initialization #9

Open
lotruheawea opened this issue Sep 27, 2022 · 0 comments
Open

geoarray initialization #9

lotruheawea opened this issue Sep 27, 2022 · 0 comments

Comments

@lotruheawea
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant