Comments (9)
Yes, you can use current version of geowombat with:
pip install xarray==2022.3.0
from geowombat.
@jgrss is it possible to downgrade geowombat
and/or xarray
to solve the issue?
from geowombat.
The following workaround solved the problem for me, but maybe this is not a really good solution.
Only tested on calculating Band Math & Vegetation Indices following this guide.
Searching the repo: https://github.com/jgrss/geowombat/search?q=xarray.ufuncs&type=code Reveals at least one file needs updating:
geowombat/src/geowombat/backends/xarray_.py
Lines 26 to 27 in 342bb2b
In the given file I commented the lines 26 & 27 out (see above) and changed the xarray min/max function to numpy.minimum()
and numpy.maximum()
as follows:
if overlap == 'min':
ds = np.minimum(ds, dsb)
elif overlap == 'max':
ds = np.maximum(ds, dsb)
elif overlap == 'mean':
ds = (ds + dsb) / 2.0
from geowombat.
Yes, you can use current version of geowombat with:
pip install xarray==2022.3.0
Finally, after a bit of back and forth, I was able to freshly install geowombat
and than downgrade xarray
to the suggested version with conda
. This works fine for me.
Thank you @mattijn
from geowombat.
@jgrss just opened a pull request to resolve this.
from geowombat.
@mmann1123 What is the status of PR #186? Was it closed because we had discussed using the fixes in jgrss/store?
from geowombat.
Yes, you can use current version of geowombat with:
pip install xarray==2022.3.0
Thanks for comfirming this, @mattijn -- a branch in the waiting that should push geowombat to v2.0.0
has xarray>=2022.6.0
.
from geowombat.
@jgrss I intended PR #186 to resolve the ufunc issues but then some tests were failing in ML and another elsewhere, I was worried I had inadvertently pushed some old ML code, so closed it. But I think we need to push the jgrss/store. I will try to test it today, but its first day of classes so things are busy. Might be a few days. But I figure jgrss/store can't make things worse - since people can't write out files - and would likely fix things. But I defer to you on that.
from geowombat.
Should be addressed with #189.
from geowombat.
Related Issues (20)
- conda-forge issues HOT 13
- angles tests HOT 2
- conda optional extras HOT 13
- Ml no data HOT 2
- gw.open bug?? HOT 5
- Apply example
- Apply on bands error HOT 1
- Apply HOT 2
- Expand pinned python version HOT 1
- Feedstock Issues HOT 1
- Failed to Install Geowombat on pip and conda HOT 12
- Requirement differences between package & conda-forge HOT 6
- Coordinating efforts on potential new geospatial Xarray accessor HOT 2
- Regression capability in geowombat HOT 3
- ARM Installation Issues HOT 9
- Apply interpolation HOT 4
- Stac import HOT 2
- series.apply big tiff / bad block
- EVI equation is wrong HOT 2
- Support for pyproj 3.4.1? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geowombat.