NEDAS.utils.random_perturb module
- NEDAS.utils.random_perturb.random_field_gaussian(nx, ny, amp, hcorr)[source]
Random field with a Gaussian spectrum.
- Parameters:
nx (int) – Number of grid points in x direction.
ny (int) – Number of grid points in y direction.
amp (float) – Amplitude (standard deviation) of the random field.
hcorr (float) – Horizontal decorrelation length (number of grid points).
- Returns:
The output random field with shape (ny, nx).
- Return type:
np.ndarray