uafgeotools / mtuq

moment tensor uncertainty quantification
BSD 2-Clause "Simplified" License
65 stars 22 forks source link

Added station count in default header #263

Closed thurinj closed 1 month ago

thurinj commented 2 months ago

Here is an attempt at the least invasive change for the header station count. It is based of the existing helper function structure in the SourceHeader class with the addition of parse_station_counts.

It implements a way to count the total number of station, in case the body and surface waves were to be loaded from different weight file instances (in principle it should be rare, but that's an extra layer of precaution).

The next (and only) foreseeable change to the header would be the inclusion of an * modifier added to fixed parameters. This should easily be done with the help of the grid.shape attributes, but we currently don't have a clean way of adding the grid (if we want to be the default behavior, we would have to change the input parameters for plot_data_greens1 and plot_data_greens2).