Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mpas_analysis/ocean/climatology_map_waves.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
unicode_literals

import xarray as xr
import numpy as np
from pyremap import LatLonGridDescriptor

from mpas_analysis.shared import AnalysisTask
Expand Down Expand Up @@ -287,6 +288,7 @@ def customize_masked_climatology(self, climatology, season): # {{{
if 'timeMonthly_avg_peakWaveFrequency' in climatology:
climatology['peakWavePeriod'] = \
1.0/climatology['timeMonthly_avg_peakWaveFrequency']
climatology['peakWavePeriod'].values = np.nan_to_num(climatology['peakWavePeriod'].values, nan=-9999.0, posinf=-9999.0, neginf=-9999.0)

if 'timeMonthly_avg_significantWaveHeight' in climatology:
climatology['significantWaveHeight'] = \
Expand Down
Loading