<jupyter_start><jupyter_text>Call the snow model<jupyter_code>Ps, Pr, SWE, Mf = SnowModel(P,T,phi_sm)<jupyter_output><empty_output><jupyter_text>Call the Bucket Model<jupyter_code>Peff = Pr + Mf

W, q, dWdt = BucketModel(phi_bm,Peff,T,W0,dt)<jupyter_output><empty_output><jupyter_text>Plot results<jupyter_code># Plot simulation results
plt.figure(figsize=(16,25))
plt.subplot(711)
plt.bar(df['SerDates'].values,df['PRCP_day'].values)
plt.subplot(712)
plt.plot(df['SerDates'].values,SWE)
plt.subplot(713)
plt.plot(df['SerDates'].values,Mf)
plt.subplot(714)
plt.plot(df['SerDates'].values,W[0,:]/W1max*100)
plt.subplot(715)
plt.plot(df['SerDates'].values,W[1,:]/W2max*100)
plt.subplot(716)
plt.plot(df['SerDates'].values,W[2,:]/W3max*100)
plt.subplot(717)
plt.plot(df['SerDates'].values,q[4,:] + q[0,:])
plt.plot(df['SerDates'].values,q[4,:])
plt.legend(('Total runoff','Baseflow'))
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.21149674620390455, 'fraction_numerical': 0.04772234273318872, 'mean_word_length': 10.987012987012987, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '106628', 'license': 'MIT', 'n_tokens_mistral': 463, 'n_tokens_neox': 417, 'n_words': 41, 'path': 'Module10_ModelCoupling/.ipynb_checkpoints/CoupledSnowBucketModel-checkpoint.ipynb', 'repo_name': 'LejoFlores/GEOS_518', 'size': '922'}