Skip to content
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

Connecting mb_simulator with glacier_simulator #10

Open
pat-schmitt opened this issue Nov 9, 2021 · 1 comment
Open

Connecting mb_simulator with glacier_simulator #10

pat-schmitt opened this issue Nov 9, 2021 · 1 comment

Comments

@pat-schmitt
Copy link
Member

A possible idea would be to show the annual mass balance of the mb_simulator as a dictionary for different heights (e.g. {height_1: MB(height_1), height_2: MB(height_2)}) in a panel StaticText widget (https://panel.holoviz.org/reference/widgets/StaticText.html).
This dictionary can be copied and inserted into a panel Textinput widget (https://panel.holoviz.org/reference/widgets/TextInput.html) in the glacier_simulator. (For the conversion of string to dict one can use eval()).
And in the glacier_simulator use an interpolater (e.g. from scipy.interpolate import interp1d) together with the values of the dictionary for the definition of the mass balance curve.

@pat-schmitt
Copy link
Member Author

(Instead of eval() one should use ast.literal_eval for security concerns)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant