Skip to content

3D non-stationary lognormal distribution #353

Closed Answered by MuellerSeb
YuanZhongYan asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there,

GSTools provides trends as a built-in feature. You can pass your function to the SRF class and it will be applied inplace.
Also, to generate ensembles of fields, you can reuse the same srf with a new seed, and store the fields with a specific name to access them afterwads. I modified your example to demonstrate this. (Note, that I corrected an error in your calculations for the mean and variance. sigma_nor as you calculated it, is actually the variance and should be used to calculate, mu_nor. I renamed both to be clear):

import numpy as np
import gstools as gs

# Mean and standard deviation values in lognormal distribution
mu_log = 1 * 10 ** (-5)
sigma_log = 5 * 10 ** (-6)
cov = 

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@YuanZhongYan
Comment options

Comment options

You must be logged in to vote
3 replies
@YuanZhongYan
Comment options

@MuellerSeb
Comment options

@YuanZhongYan
Comment options

Answer selected by MuellerSeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants