Closed darothen closed 7 years ago
This looks good! The cubedsphere coordinate is consistent with FV3 output.
I've applied some bug fixes directly to my master branch. Seems like calc_ϕ_on_great_circle
is not used for grid calculation?
Correct; it's used for plotting, though, because we have to tweak the polygon mesh underlying the Patch collection I create if they cross the edge of the plot for certain projections. I'll pull a new branch against the updated master with plotting routines. They're a bit more brittle because I have to make assumptions about how each face in the data is oriented, but once you see it I'm sure that it can be generalized.
This is a first batch of code to incorporate into the cubedsphere library for very detailed plotting on the native cubed sphere mesh. The initial batch of code focuses on a
CSGrid
object to compute the grid geometry. Plotting functions to follow shortly.It's anticipated that we'll need to heavily re-factor this code once we identify a usage pattern for how we envision people to plot their data.