Correct handling of NetCDF VerticalPerspective and Geostationary coordinate systems#3406
Correct handling of NetCDF VerticalPerspective and Geostationary coordinate systems#3406pp-mo merged 18 commits intoSciTools:masterfrom
Conversation
|
Still needs a What's New |
|
|
||
| class Test_write(tests.IrisTest): | ||
| # ------------------------------------------------------------------------- | ||
| # It is not considered necessary to have integration tests for saving |
There was a problem hiding this comment.
This refers to integration tests, but this is in iris/tests/unit . Can these still be described as integration tests?
There was a problem hiding this comment.
You're right, I hadn't considered how oddly this reads. But the tests below (e.g. test_mercator) definitely don't fit the definition of unit test in my opinion since NetCDF saving relies on a large number of steps. Could you suggest a better word than integration, which still makes it clear that these aren't unit tests?
There was a problem hiding this comment.
Taking a very narrow view, just omit the word "integration" : job done!
There was a problem hiding this comment.
Yeah, having read through the tests I think I agree that these are closer to integration tests than unit tests. If you want to avoid confusion, it could be worth considering just getting rid of the word "integration", though I'm more convinced now that this ought to be be fine as is.
| * :class:`iris.coord_systems.VerticalPerspective` coordinate system now uses | ||
| the `CF Vertical perspective definition <http://cfconventions | ||
| .org/cf-conventions/cf-conventions.html#vertical-perspective>`_; had been | ||
| erroneously using Geostationary. |
There was a problem hiding this comment.
Should this not be a bug fix rather?
lib/iris/coord_systems.py
Outdated
|
|
||
| class Geostationary(CoordSystem): | ||
| """ | ||
| An geostationary satellite image map projection. |
There was a problem hiding this comment.
An geostationary -> A geostationary
There was a problem hiding this comment.
Without reading I copied from vertical perspective, which had been copied without reading from another coord system, so I managed to double the error! I feel appropriately ashamed 😖
lib/iris/coord_systems.py
Outdated
| class VerticalPerspective(CoordSystem): | ||
| """ | ||
| An geostationary satellite image map projection. | ||
| An vertical/near-side perspective satellite image map projection. |
lib/iris/coord_systems.py
Outdated
| false_easting=0, false_northing=0, ellipsoid=None): | ||
| """ | ||
| Constructs an Vertical Perspective Geostationary coord system. | ||
| Constructs an Vertical Perspective coord system. |
|
Needs rebase. Can you do @trexfeathers ? |
…system, in line with cf conventions documentation.
…Perspective and Geostationary
ad080a9 to
bbd7d14
Compare
|
Note that an Iris Geostationary coordinate system will only successfully plot using Cartopy >=0.17 |
Addresses #3382