Git Product home page Git Product logo

Comments (9)

mattijn avatar mattijn commented on May 23, 2024 1

Yes, you can use current version of geowombat with:

pip install xarray==2022.3.0

from geowombat.

37310N avatar 37310N commented on May 23, 2024

@jgrss is it possible to downgrade geowombat and/or xarray to solve the issue?

from geowombat.

37310N avatar 37310N commented on May 23, 2024

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:

from xarray.ufuncs import maximum as xr_maximum
from xarray.ufuncs import minimum as xr_mininum

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.

37310N avatar 37310N commented on May 23, 2024

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.

mmann1123 avatar mmann1123 commented on May 23, 2024

@jgrss just opened a pull request to resolve this.

from geowombat.

jgrss avatar jgrss commented on May 23, 2024

@mmann1123 What is the status of PR #186? Was it closed because we had discussed using the fixes in jgrss/store?

from geowombat.

jgrss avatar jgrss commented on May 23, 2024

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.

mmann1123 avatar mmann1123 commented on May 23, 2024

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

jgrss avatar jgrss commented on May 23, 2024

Should be addressed with #189.

from geowombat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.