Repository navigation
Spherical signal derivatives tutorial - #402
matt-graham merged 23 commits into
Conversation
| fig, ax = plt.subplots( | ||
| figsize=(6, 3), | ||
| subplot_kw={"projection": ccrs.Mollweide()}, | ||
| ) | ||
|
|
||
| ax.pcolormesh( | ||
| longitude_grid, | ||
| latitude_grid, | ||
| signal, | ||
| transform=ccrs.PlateCarree(), | ||
| cmap="viridis", | ||
| ) |
There was a problem hiding this comment.
From a quick check of the rendered tutorial after the Markdown to reStructuredText conversion, I noticed that the visualised spherical signals as in this code snippet have an artifact / discontinuity on the meridian / line of constant longitude running around the right section of the boundary of this projection
Tanvir and I discussed this previously and I think this is due to the wrapping of the data around the longitudinal direction not being correctly handled by cartopy / matplotlib by default and can be fixed as suggested there using add_cyclic helper.
@mscroggs tagging you in case you can look in to this as part of review, thanks!
mscroggs
left a comment
There was a problem hiding this comment.
Made some minor comments. Otherwise is a good tutorial
Co-authored-by: Matthew Scroggs <matthew.w.scroggs@gmail.com>
Co-authored-by: Matthew Scroggs <matthew.w.scroggs@gmail.com>
Retargetting of i-tanvir#2