-
Notifications
You must be signed in to change notification settings - Fork 300
Orca eg #1054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orca eg #1054
Conversation
|
There are some PEP8 errors causing the tests to fail. Also you need to add a test for the example itself, this is pretty straightforward, just follow the lead of the other examples. A side benefit of adding a test is that we'll be able to see the resulting plot in the PR which makes it easier to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: PLateCarree -> PlateCarree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: coordinate -> coordinate
|
I've only really just started on this, but given tweaks to data source noted in the diff I have got it to run + I see the resulting plot is really rather big. I'm not sure this plays nicely to the gallery Maybe you should consider separate figures for this reason -- you really need to play with building the docs + checking the results in a browser, and even experiment a bit with different window sizes and zooms. Tiresome, but unavoidable IMHO. |
|
these are now four separate figures |
|
Looks like you've only got one output file... did you mean to put |
meant to | should have done: done now anyhow cheers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid variable names in all caps, it makes them look like constants. PC is a little cryptic too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marqh to ensure that the order of the tests run in the same order ...
for name in sorted(projections):
|
ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marqh You could slightly refactor this to be ...
projections = dict(Mollweide=ccrs.Mollweide(),
PlateCarree=ccrs.PlateCarree(),
NorthPolarStereo=ccrs.NorthPolarStereo(),
Orthographic=ccrs.Orthographic(central_longitude=-90,
central_latitude=45))
|
@bjlittle |
|
Lovely example, thanks @marqh 👍 |
new example for plotting ORCA data