Skip to content

Commit

Permalink
Assume conservation output is daily for moving average
Browse files Browse the repository at this point in the history
  • Loading branch information
cbegeman committed Jul 17, 2024
1 parent fe74bff commit 375d949
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mpas_analysis/ocean/conservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,10 @@ def _make_plot(self, plot_type):

lineWidths = [3 for i in fields]
if config.has_option('timeSeries', 'movingAveragePoints'):
movingAveragePoints = config.getint('timeSeries',
'movingAveragePoints')
# We assume here that movingAveragePoints is given in months
# and conservation output has daily frequency
movingAveragePoints = 30 * \
config.getint('timeSeries', 'movingAveragePoints')
else:
movingAveragePoints = None

Expand Down

0 comments on commit 375d949

Please sign in to comment.