Coder Social home page Coder Social logo

Comments (3)

bulli92 avatar bulli92 commented on August 18, 2024

@koldunovn , thanks for this.
The point is, that the diagnostic currently in ESMValTool was done with an older version of geoval.
@BenMGeo developed this diagnostic.

Since then we have c�hanged the default behavior of many geoval functions. Instead of numpy arrays, they now return by default a GeoDataobject. I think this is the problem for the fldmeanfunction. You can see current implementation here.

A fix would be easy I think. Instead of

  File "./diag_scripts/aux/LMU_ESACCI-diagnostics/diagnostic.py", line 859, in _p_stat
    _std_data=np.sqrt((D2.fldmean()-_mean_data**2))

It should be

  File "./diag_scripts/aux/LMU_ESACCI-diagnostics/diagnostic.py", line 859, in _p_stat
    _std_data=np.sqrt((D2.fldmean(return_data=False)-_mean_data**2))

Can you check? It might be that similar problems also occur at other places. Perhaps you can check if it works for this particular problem and make a PR. In general @BenMGeo would need to revise the diagnostic to make sure that everything works with the currently officially published version of geoval.

In the future we will easily capture these issues through automatic testing of all diagnostics. As we are in a transition phase at the moment it is good to have such Master users like you :-)

from esmvaltool.

koldunovn avatar koldunovn commented on August 18, 2024

Thanks for nice words, Alex. I will try to do what I can :)

I have applied the fix in several places and made a PR #49 . It worked to the level of passing thought the script and ending successfully. However the plots that are generated have only coastlines on them. I had to hack geoval itself in couple of places to make the plots work.

from esmvaltool.

BenMGeo avatar BenMGeo commented on August 18, 2024

@koldunovn can we close this? as we drop V1 and I need to recode everything for V2 either way.

from esmvaltool.

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.