Giter Site home page Giter Site logo

Comments (4)

bekozi avatar bekozi commented on July 17, 2024

It sounds like you need a vector_wrap option that applies to the dataset. I think this should go on the RequestDataset with options like:

  • wrap=True Wrap to -180 to 180.
  • wrap=False Unwrap to 0 to 360.
  • wrap=None (Default) Leave as is.

Have you tested with a "wrapped" grid?

from flyingpigeon.

nilshempelmann avatar nilshempelmann commented on July 17, 2024

Nice idea.
Was first thinking in a wrong way.

cdo is handling it like that (updated the notebook):
print lon[:]
[-78.75 -76.875 -75. -73.125 -71.25 -69.375 -67.5 -65.625 -63.75
-61.875 -60. -58.125 -56.25 -54.375 -52.5 -50.625 -48.75 -46.875
-45. -43.125 -41.25 -39.375 -37.5 -35.625 -33.75 -31.875 -30.
-28.125 -26.25 -24.375 -22.5 -20.625 -18.75 -16.875 -15. -13.125
-11.25 -9.375 -7.5 -5.625 -3.75 -1.875 0. 1.875 3.75
5.625 7.5 9.375 11.25 13.125 15. 16.875 18.75 20.625
22.5 ]

would it be possible to be consistent with that?

wrap option (True/False/None) could be a solution

Merci
nils

from flyingpigeon.

bekozi avatar bekozi commented on July 17, 2024

Yeah, that should be possible. The data needs to be wrapped before the subset otherwise the masked values will be an issue.

from flyingpigeon.

nilshempelmann avatar nilshempelmann commented on July 17, 2024

Done

from flyingpigeon.

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.