Skip to content

Conversation

@dopplershift
Copy link
Member

Description Of Changes

The problem is that the original GEMPAK CED and MCD ([modified] cylindrical equidistant) projections, while supported by PROJ, aren't defined in the CF metadata spec (as of 1.10). This is a work-around that makes str not fail, and gives a better error, when CFProjection is given a set of metadata it can't handle.

This fixes the notebook experience so that just trying to print/take a repr doesn't result in errors. Fixing plotting is out of scope because I'm loath to try add things that aren't supported by the CF spec within our "CFProjection" class. I'm actually not even sure what the right one to use in Cartopy would be.

Checklist

The problem is that the original GEMPAK CED and MCD ([modified]
cylindrical equidistant) projections, while supported by PROJ, aren't
defined in the CF metadata spec (as of 1.10). This is a work-around that
makes __str__ not fail, and gives a better error, when CFProjection is
given a set of metadata it can't handle.
@dopplershift dopplershift added Type: Bug Something is not working like it should Area: Projections Pertains to projecting coordinates between coordinate systems labels Apr 28, 2023
@dopplershift dopplershift added this to the 1.5.0 milestone Apr 28, 2023
@dopplershift dopplershift requested a review from a team as a code owner April 28, 2023 21:15
@dopplershift dopplershift requested review from dcamron and removed request for a team April 28, 2023 21:15
Copy link
Member

@dcamron dcamron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 and I'm on board with your scoping evaluation here.

@dcamron dcamron merged commit e183c48 into Unidata:main May 1, 2023
@dopplershift dopplershift deleted the fix-2121 branch May 1, 2023 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Projections Pertains to projecting coordinates between coordinate systems Type: Bug Something is not working like it should

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gdxarray() returns unusable objects from "thinned GFS" files

2 participants