Page 1 of 1

custom condition in parameter

Posted: Sat May 15, 2021 10:10 am
by riccardo
Good morning
is there an Help to wright 'custom condition' in Parameter?
Ricc

Re: custom condition in parameter

Posted: Tue May 18, 2021 12:48 pm
by admin
For surface wave inversion, usually these conditions are left empty. The conditions automatically generated by the model parametrization are sufficient. For an external forward computation (plugin dinverext), this script is mandatory. Apart from the linear() function used to add a linear condition between parameters, you have also:

Code: Select all

linear(<param1>, ">" | "<", <a>, <param2>, <b>)
quadratic2(<coef1>, <param1>, <coef2>, <param2>, ">" | "<", <c>)
quadratic3(<coef1>, <param1>, <coef2>, <param2>, <coef3>, <param3>, ">" | "<", <c>)
parameter(<name>, <unit>, <min>, <max>, <prec>, <scale>)
quadratic2 and 3, are not mentioned in the documentation. They can mix 2 and 3 parameters, respectively. Parameter values are squared, multiplied by their respective constants and summed. The sum must be greater or less than a constant (c).

Many other types of conditions could be implemented. According to your needs, they can be added.