SWE from pthsk model

6 views
Skip to first unread message

Bikas C. Bhattarai

unread,
Jul 24, 2018, 3:37:54 AM7/24/18
to sh...@googlegroups.com
Hello, 

I tried to get sca information form the pthsk model but I am encountering an error:

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

the code that I tried is:
simulator.region_model.hbv_snow_state.sca([], 1)
any help/suggestion will be highly appreciated!

PS: I am using pycharm 17 for debugging, I thought that. it might be a problem of debugger and disable the PyQt from debugging setting, but it does not help. 

Note: It works fine in ptgsk model although sca information is under simulator.region_model.gamma_snow_response([],1)

Best regards
Bikas

Aynom Tesfay Tweldebrahn

unread,
Jul 24, 2018, 5:29:36 AM7/24/18
to Bikas C. Bhattarai, sh...@googlegroups.com
Hi Bikas,
I think snow cover is stored as a response variable. Try the following code to extract sca for each cell and time step:
T=365 (e.g. for 1 year of simulation)
cells = simulator.region_model.get_cells()
sim_scf = [ [cell.rc.snow_sca.v[t] for t in range(T)] for cell in cells]

good luck (:
Aynom
>--
>You received this message because you are subscribed to the Google Groups
>"shyft" group.
>To unsubscribe from this group and stop receiving emails from it, send an
>email to shyft+un...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/shyft/CAFRaRcCywHvvvbfB3AAfQ7TQW
>VBhUTgfS%3DcgOC9hudQVjk%2BrUQ%40mail.gmail.com
><https://groups.google.com/d/msgid/shyft/CAFRaRcCywHvvvbfB3AAfQ7TQ
>WVBhUTgfS%3DcgOC9hudQVjk%2BrUQ%40mail.gmail.com?utm_medium=e
>mail&utm_source=footer> .
>For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages