Giter Club home page Giter Club logo

Comments (4)

dopplershift avatar dopplershift commented on June 3, 2024 1

I think it'd be fine to just plumb in the gamma parameter.

from cartopy.

greglucas avatar greglucas commented on June 3, 2024

Seems reasonable to expose that keyword argument if you'd find it helpful.
https://proj.org/en/9.3/operations/projections/omerc.html

@trexfeathers added this in #2096 so they might have thoughts/opinions on it as well.

from cartopy.

trexfeathers avatar trexfeathers commented on June 3, 2024

@trexfeathers added this in #2096 so they might have thoughts/opinions on it as well.

I implemented this based on some example files from CORDEX, which use the basic parameters that you see in the Cartopy class. As @Jeitan says, it seems fairly obvious how things would work if the 'alternative' Proj parameters were used, would just need a bit more logic inside the class.

Any decisions about class design were NOT made from a strongly knowledgeable/opinionated position - I was just seeing what worked. If you need to undo anything to expand the functionality, go ahead 👍

from cartopy.

Jeitan avatar Jeitan commented on June 3, 2024

@greglucas @trexfeathers Yay, thank you! I'm glad you are considering it!

One thing I have noticed is that there does appear to be a funny branch cut in PROJ (for the Oblique Mercator specifically), or perhaps I'm mis-reading the documentation. The docs specify limits on gamma but only when not also providing alpha. When I set gamma to 0 but alpha to anything with abs() > 90, it does a weird fliperoo. To get a smooth rotation, say in the counterclockwise direction by specifying positive alpha, from 85 to 90 to 95, I have to set alpha to 85, 90, -95 and gamma to 0, 0, 180. The same thing happens in northern and southern hemisphere. I don't know if Cartopy wants to deal with it, though, since it's a PROJ phenomenon.

To me personally, I'd be fine just passing through gamma, just figured I'd mention it.

from cartopy.

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.