-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify number of decimal in the creation of parameters #321
Comments
This functionality does not exist in spotpy. Does your model have problems with continuous parameters? If not, use the parameters as sampled (with all digits). If yes, perhaps you can round the parameters to the number of digits in your code. But this might lead to problems for algorithms with convergence criterea, beacuse you get the same output for different values (eg. albedo_mod_snow_aging=3.10578 or 3.43267). But it can work as well, this is hard to forsee. |
Thank you for the answer Philipp. I can use continuos values for my model, but I have some doubts. I appreciate any recommendation or appreciation regarding my question. Cheers |
You can try with the simulation above (round in your model). But I do not see why this should change anything. I see this rather a wide range (1-28, two magnitudes) vs. low range (0.1 magnitudes change) problem. I would broaden the fresh snow albedo to see it makes a difference. Or you can accept the result as: The fresh snow albedo is well known and bound to a small range by physics and is hence not a big contributor of parameter uncertainty in your model (that is a sensitive parameter). The aging factor is rather unknown and therefore highly sensitive for this model. Or you change the snow aging factor to a smaller range, getting old in a day does not sound reasonably. If your experiments with internally rounded results show that the number of significant digits have indeed an important impact on the FAST algorithm, please provide us with a minimal example (eg. with a simplified mock model) to reproduce the issue. Otherwise we would close it. |
Hi everyone, I'm calibrating the surface energy and mass balance model COSIPY using SCEUA algorithm.
I would like to know how to specify the number of decimals in the creation of the parameters. In my case I have int and float parameters, and the float parameters have different significant digits.
Example of my code:
The text was updated successfully, but these errors were encountered: