[Dart-dev] DART/branches Revision: 12886
dart at ucar.edu
dart at ucar.edu
Tue Oct 2 16:54:00 MDT 2018
thoar at ucar.edu
2018-10-02 16:54:00 -0600 (Tue, 02 Oct 2018)
39
Mimicking the layout of the git repo.
Deleted: DART/branches/rma_wrfHydro/models/wrf_hydro/python/noise_qBucket_additive.py
===================================================================
--- DART/branches/rma_wrfHydro/models/wrf_hydro/python/noise_qBucket_additive.py 2018-10-02 22:48:43 UTC (rev 12885)
+++ DART/branches/rma_wrfHydro/models/wrf_hydro/python/noise_qBucket_additive.py 2018-10-02 22:54:00 UTC (rev 12886)
@@ -1,18 +0,0 @@
-import numpy as np
-
-def noise_model():
-
- #######################################################
- # Noise model for qBucket
- ## 0) Additive noise,
- ## 1) Zero-mean,
- ## 2) Standard deviation is a fixed at .02
- ## 3) min: Truncated below at min,
- ## 4) size: number of samples,
- ## 5) Closure takes a single value argument.
- def close_trunc_gauss(min):
- def the_closure(x):
- return np.maximum(x+np.random.normal(0.0, .2, 1), min)
- return the_closure
-
- return np.vectorize(close_trunc_gauss(0))
Deleted: DART/branches/rma_wrfHydro/models/wrf_hydro/python/noise_qSfcLatRunoff_additive.py
===================================================================
--- DART/branches/rma_wrfHydro/models/wrf_hydro/python/noise_qSfcLatRunoff_additive.py 2018-10-02 22:48:43 UTC (rev 12885)
+++ DART/branches/rma_wrfHydro/models/wrf_hydro/python/noise_qSfcLatRunoff_additive.py 2018-10-02 22:54:00 UTC (rev 12886)
@@ -1,19 +0,0 @@
-import numpy as np
-
-def noise_model():
-
- #######################################################
- # Noise model for qSfcLatRunoff
- # 0) Additive noise,
- # 1) Zero-mean,
- # 2) frac: Standard deviation is a fraction of the value,
- # 3) min: Truncated below at min,
- # 4) size: number of samples,
- # 5) Closure takes a single value argument.
-
- def close_trunc_gauss_sd_pct_value(frac, min):
- def the_closure(x):
- return np.maximum(x+np.random.normal(0.0, frac*x, 1), min)
- return the_closure
-
- return np.vectorize(close_trunc_gauss_sd_pct_value(.2, 0))
Copied: DART/branches/rma_wrfHydro/models/wrf_hydro/python/perturb/noise_qBucket_additive.py (from rev 12885, DART/branches/rma_wrfHydro/models/wrf_hydro/python/noise_qBucket_additive.py)
===================================================================
--- DART/branches/rma_wrfHydro/models/wrf_hydro/python/perturb/noise_qBucket_additive.py (rev 0)
+++ DART/branches/rma_wrfHydro/models/wrf_hydro/python/perturb/noise_qBucket_additive.py 2018-10-02 22:54:00 UTC (rev 12886)
@@ -0,0 +1,18 @@
+import numpy as np
+
+def noise_model():
+
+ #######################################################
+ # Noise model for qBucket
+ ## 0) Additive noise,
+ ## 1) Zero-mean,
+ ## 2) Standard deviation is a fixed at .02
+ ## 3) min: Truncated below at min,
+ ## 4) size: number of samples,
+ ## 5) Closure takes a single value argument.
+ def close_trunc_gauss(min):
+ def the_closure(x):
+ return np.maximum(x+np.random.normal(0.0, .2, 1), min)
+ return the_closure
+
+ return np.vectorize(close_trunc_gauss(0))
Copied: DART/branches/rma_wrfHydro/models/wrf_hydro/python/perturb/noise_qSfcLatRunoff_additive.py (from rev 12885, DART/branches/rma_wrfHydro/models/wrf_hydro/python/noise_qSfcLatRunoff_additive.py)
===================================================================
--- DART/branches/rma_wrfHydro/models/wrf_hydro/python/perturb/noise_qSfcLatRunoff_additive.py (rev 0)
+++ DART/branches/rma_wrfHydro/models/wrf_hydro/python/perturb/noise_qSfcLatRunoff_additive.py 2018-10-02 22:54:00 UTC (rev 12886)
@@ -0,0 +1,19 @@
+import numpy as np
+
+def noise_model():
+
+ #######################################################
+ # Noise model for qSfcLatRunoff
+ # 0) Additive noise,
+ # 1) Zero-mean,
+ # 2) frac: Standard deviation is a fraction of the value,
+ # 3) min: Truncated below at min,
+ # 4) size: number of samples,
+ # 5) Closure takes a single value argument.
+
+ def close_trunc_gauss_sd_pct_value(frac, min):
+ def the_closure(x):
+ return np.maximum(x+np.random.normal(0.0, frac*x, 1), min)
+ return the_closure
+
+ return np.vectorize(close_trunc_gauss_sd_pct_value(.2, 0))
Copied: DART/branches/rma_wrfHydro/models/wrf_hydro/python/perturb/perturb_channel_only_forcing.py (from rev 12885, DART/branches/rma_wrfHydro/models/wrf_hydro/python/perturb_channel_only_forcing.py)
===================================================================
--- DART/branches/rma_wrfHydro/models/wrf_hydro/python/perturb/perturb_channel_only_forcing.py (rev 0)
More information about the Dart-dev
mailing list