Skip to content
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

Future steps of ClimatePlots #9

Open
Balinus opened this issue Jan 20, 2020 · 4 comments
Open

Future steps of ClimatePlots #9

Balinus opened this issue Jan 20, 2020 · 4 comments

Comments

@Balinus
Copy link
Member

Balinus commented Jan 20, 2020

Here's a discussion about the future of ClimatePlots.

The initial state of this package is a split of what was available in ClimateTools. It mainly serves the type ClimGrid defined in ClimateTools (an in-memory representation of a netCDF dataset). At the time, plotting capabilities of georeferenced fields were not mature in Julia and the solution was to use Basemap under-the-hood.

For ClimatePlots 1.0, I propose we explore, scout and list possible solutions for a more generic plotting framework.

ESDLPlots.jl Here's a library that have some nice ideas and implemented features. This is the plotting facility of ESDL.jl.

Maps.jl. Geographical plotting using Makie. Would be useful for animations!

@Balinus
Copy link
Member Author

Balinus commented Feb 6, 2020

Version 0.2 now uses cartopy under-the-hood. Right now I consider it to be rather non-flexible though, since the ``mapclimgrid` function is a do-it-all function than tries to do everything. Maintenance is thus harder.

The short-term plan is to create a nice wrapper of cartopy commands

e.g.

ClimatePlots.contourf(C::ClimGrid; kwargs...)
ClimatePlots.pcolormesh(C::ClimGrid; kwargs...)
...

@Datseris
Copy link
Member

Slowly by slowly I have been managing to plot my fields with Makie, and produce a vide of them. Doing the video is around 100 to 1000 times faster with Makie.

The time gained in plotting performance is lost in debugging, and asking the developers "how this can be done", then finding out that it can't be done, then waiting for it to be implemented. But we are slowly getting there.

I'll make a small code snippet example and post it here. Are you interested in GeoMakie?

@gaelforget
Copy link
Member

gaelforget commented Feb 10, 2020

Not sure how much this helps but:

  • I also took a look at Makie (& GeoMakie) recently, which lead to the addition of src/plot_makie.jl and examples/LatLonCap300mDepth.png in https://github.com/JuliaClimate/IndividualDisplacements.jl
  • my earlier examples/ex_1_mitgcm.png was created using pyplot and cartopy (src/plot_pyplot.jl)

@Balinus
Copy link
Member Author

Balinus commented Feb 10, 2020

@Datseris Yes, I think that it is quite useful to have some code that would allow to create some generic animation. GeoMakie seems a good candidate for our purpose. How much mature it is? I've seen you posted some Issues and got useful feedback from the developer(s).

@gaelforget Really nice images! This does provide some code that would certainly be useful for winds variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants