Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NearRealTimeCTDAS
CTDAS
Commits
70f940da
Commit
70f940da
authored
Feb 13, 2019
by
brunner
Browse files
No commit message
No commit message
parent
4505a812
Changes
1
Show whitespace changes
Inline
Side-by-side
da/cosmo/statevector.py
View file @
70f940da
...
...
@@ -292,8 +292,8 @@ class StateVector(object):
# Create members 1:nmembers and add to ensemble_members list
for
member
in
range
(
1
,
self
.
nmembers
):
rands
=
np
.
random
.
uniform
(
low
=-
0.5
,
high
=
0.5
,
size
=
self
.
nparams
-
1
)
#
rands = np.random.uniform(low=-1., high=1., size=self.nparams-1)
#
rands = np.random.uniform(low=-0.5, high=0.5, size=self.nparams-1)
rands
=
np
.
random
.
uniform
(
low
=-
1.
,
high
=
1.
,
size
=
self
.
nparams
-
1
)
rands_bg
=
np
.
random
.
uniform
(
low
=-
0.05
,
high
=
0.05
,
size
=
1
)
# if member == 1 and lag == 0:
...
...
@@ -580,9 +580,9 @@ class StateVector(object):
#dimparams = ncf.add_params_dim((self.nparams-1)//2)
dimgrid
=
ncf
.
add_latlon_dim
()
#
data = mem.param_values[0:11]
data
=
2.
*
np
.
ones
(
11
)
-
mem
.
param_values
[
0
:
11
]
# unblock this maybe
print
(
str
(
lag
),
data
)
data
=
mem
.
param_values
[
0
:
11
]
#
data = 2.*np.ones(11)-mem.param_values[0:11] # unblock this maybe
#
print(str(lag),data)
#data = mem.param_values[0:(self.nparams-1)//2]
savedict
=
io
.
std_savedict
.
copy
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment