geodynamics / Rayleigh

Rayleigh: Pseudo-spectral MHD
GNU General Public License v3.0
61 stars 48 forks source link

Update Shell_Avgs to Enable Time-averaging and concatenation #499

Closed feathern closed 6 months ago

feathern commented 7 months ago

This PR modifies the Shell_Avgs class so that it also accepts a list of multiple Shell_Avgs files. That data can either be concatenated or time-averaged as described in docstring. In addition, the class now contains an output method so that the current Shell_Avgs object structure can be saved to a new Shell_Avgs file.

Some notes: 1) Single files can still be read as they always have been. 2) This is a lot of new code. I've been using this new version of the Shell_Avgs class for a couple of years now. When doing a review, the most straightforward path is probably to test out the concatenation and time-averaging functionality.