Skip to content

Commit

Permalink
Correction of merged normalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
ecasellas committed Jun 10, 2024
1 parent c38f4e1 commit 8827515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysteps/downscaling/rainfarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def compute_psd(array, fft_size):
)

# Inverse FFT to obtain the merged array in the spatial domain
merged = np.real(np.fft.ifftn(fft_merged)) / len(fft_merged)
merged = np.real(np.fft.ifftn(fft_merged)) / fft_merged.size

return merged

Expand Down

0 comments on commit 8827515

Please sign in to comment.