Comments (4)
I think it'd be fine to just plumb in the gamma parameter.
from cartopy.
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 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.
@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)
- UN map is blank on latest docs HOT 3
- About Cartopy support Shapely version HOT 2
- Fails to build with Python 3.12 HOT 4
- Add type hints for mypy HOT 3
- pcolormesh with transparent colormap and Orthographic projection does not work HOT 6
- `cartopy 0.22.0** does not exist` for github actions? HOT 5
- cannot import name lgeos HOT 2
- Chart Server dependency HOT 1
- contourf fails with lat/lon coordinates and transform for Stereographic projection but works correctly with projection coordinates HOT 4
- WMTS cache capability in WMTSRasterSource HOT 4
- Cannot import cartopy.feature (missing 'config') HOT 1
- Key Error using Natural Earth POV files HOT 3
- Geotiff that is located out of bounds of the specified coordinate system is incorrectly resized
- Installation of library `cartopy` does not progress HOT 2
- Add support for non-projection EPSG codes HOT 1
- clarify how to make code that uses cartopy run in an offline environment HOT 8
- Plotting custom coastline - regression since 0.19 HOT 4
- Contourf not plotting negative contours in certain cases HOT 2
- Cartopy 0.23 release HOT 3
- Why the extent changes after plotting things? HOT 3
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 cartopy.