Drawing random fields
Hi Theo,
while testing my algorithm I recognised that all random fields drawn from a gaussian have a unwanted symmetry. (minimal code extracted from wiener_filter.py example)
` from nifty import *
# Setting up the geometry
s_space = RGSpace([512, 512], dtype=np.float64)
fft = FFTOperator(s_space)
h_space = fft.target[0]
p_space = PowerSpace(h_space, distribution_strategy=distribution_strategy)
# Creating the mock data
pow_spec = (lambda k: 42 / (k + 1) ** 3)
S = create_power_operator(h_space, power_spectrum=pow_spec,
distribution_strategy=distribution_strategy)
sp = Field(p_space, val=pow_spec,
distribution_strategy=distribution_strategy)
sh = sp.power_synthesize(real_signal=True)
ss = fft.inverse_times(sh)
ss_data = ss.val.get_full_data().real
pl.plot([go.Heatmap(z=ss_data)], filename='map_orig.html')`
Am I doing something wrong, did the some default set keywords in the code change or how can I fix this issue?
Thanks for your help!