illust_parameterizations⚓︎
Illusrate parameterizations.
Plot scattergram of "unresolved tendency" and the parameterization that emulate it.
We plot the diff:
model_step/dt - true_step/dt (1)
Whereas Wilks plots
model_dxdt - true_step/dt (2)
Another option is:
model_dxdt - true_dxdt (3)
Thus, for us (eqn 1), the model integration scheme matters.
Also, Wilks uses
- dt = 0.001
for truth
- dt = 0.005
for model.
Modules:
Name | Description |
---|---|
modelling |
Contains models included with DAPPER. |
blend_rgb(rgb, a, bg_rgb=(1, 1, 1))
⚓︎
Fake RGB transparency by blending it to some background.
Useful for creating gradients.
Also useful for creating 'transparency' for exporting to eps. But there's no actualy transparency, so superposition of lines will not work. For that: export to pdf, or make do without.
rgb
: N-by-3 rgb, or a color code.a
: alpha valuebg_rgb
: background in rgb. Default: white
Based on stackoverflow.com/a/33375738/38281