Skip to content

Ability to define custom projection. #166

Open
Thomas Crocker (thomascrocker) wants to merge 1 commit into
masterfrom
vector_plot_fixes
Open

Ability to define custom projection. #166
Thomas Crocker (thomascrocker) wants to merge 1 commit into
masterfrom
vector_plot_fixes

Conversation

@thomascrocker
Copy link
Copy Markdown
Collaborator

@thomascrocker Thomas Crocker (thomascrocker) commented Nov 27, 2020

This PR adds the ability to explicitly set the projection used to produce the plot. The prior behaviour simply used the projection of the supplied data. It addresses #164
If the user specifies a projection that is different to that of the supplied data, the data is transformed onto the new projection.
Also if the data does not have a co-ordinate system (e.g. most of the CMIP5 data under /project/champ) PlateCarree is assumed.

Lastly I removed the try clauses around getting the x and y coords, since if a coord not found error is ignored here it will almost certainly cause problems further on but be harder to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants