Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1043 committed May 15, 2024
1 parent 2e95b74 commit 177f616
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pcmdi_metrics/mjo/lib/lib_mjo.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def generate_axes_and_decorate(Power, NT: int, NL: int) -> xr.DataArray:
return da


def output_power_spectra(NL: int, NT: int, Power, debug: bool = False):
def output_power_spectra(NL: int, NT: int, Power, debug: bool = False) -> xr.DataArray:
"""
Below code taken and modified from Daehyun Kim's Fortran code (MSD/level_2/sample/stps/stps.sea.f.sample)
"""
Expand All @@ -205,7 +205,6 @@ def output_power_spectra(NL: int, NT: int, Power, debug: bool = False):
b = list((ss[i] for i in range(int(NL / 2), int(NL / 2) + 1 + 10)))
a = np.array(a)
b = np.array(b)
# Decoration

# Add name attributes to x and y coordinates
x_coords = xr.IndexVariable(
Expand Down

0 comments on commit 177f616

Please sign in to comment.