C2SM / icon-vis

Collection of Python scripts and notebooks to demonstrate plotting on the ICON grid.
BSD 3-Clause "New" or "Revised" License
15 stars 6 forks source link

Support plotting of multiple timesteps per file with psyplot #1

Closed jonasjucker closed 1 year ago

jonasjucker commented 2 years ago

For each file only one timestep is plotted.

It would be nice to be able to plot all timesteps contained in an output-file at once.

victoria-cherkas commented 2 years ago

I haven't tried this yet, but it should be possible with psyplot to plot multiple timesteps in seperate subplots, by giving the time parameter an array, eg time=[0,1] for timestep 0 and 1.

For plotting every timestep I'm not sure if there is anything out the box with psyplot, but will have a look.

jonasjucker commented 2 years ago

Thanks for looking into it.

This is just a very common usecase to have multiple timesteps in one file

AnnikaLau commented 2 years ago

I adapted mapplot.py so that this is possible now. You can try by setting the "time" option in the config file to two numbers divided by comma, e.g. "time = 0,6". This will plot the first 7 time steps. Maybe not the nicest solution yet but it should work.