mitgcm
Analysis of MITgcm output using python
|
Visualisation functions. More...
Functions | |
def | LIC2_sparse |
Line integral convolution with a sparse noise field. More... | |
def | LIC2_sparse_animate |
Line integral convolution with a sparse noise field. More... | |
def | create_cmap_vary_alpha |
Create a colour map with variable alpha. More... | |
Visualisation functions.
Each function has a detailed docstring.
def mitgcm.visualisation.create_cmap_vary_alpha | ( | colour = 'white' | ) |
Create a colour map with variable alpha.
This can be used to sketch out particles as they move.
The only input variable 'coour' defines the colour that is used to create the colour map. It can be any colour code that matplotlib recognises: single letter codes, hex colour string, a standard colour name, or a string representation of a float (e.g. '0.4') for gray on a 0-1 scale.
Definition at line 285 of file visualisation.py.
def mitgcm.visualisation.LIC2_sparse | ( | u, | |
v, | |||
points, | |||
grid_object, | |||
trace_length, | |||
kernel = 'anisotropic_linear' , |
|||
delta_t = 3600. |
|||
) |
Line integral convolution with a sparse noise field.
This produces discrete points that flow around the visualisation.
LIC is a method for visualising flow fields.
Then plot with
Definition at line 20 of file visualisation.py.
def mitgcm.visualisation.LIC2_sparse_animate | ( | u, | |
v, | |||
nparticles, | |||
grid_object, | |||
animation_length, | |||
trace_length, | |||
kernel = 'anisotropic_linear' , |
|||
delta_t = 3600. |
|||
) |
Line integral convolution with a sparse noise field.
The sparse noise field produces discrete points that travel around with the flow field.
This function produces data that can be used to animate a static flow field.
LIC is a method for visualising flow fields.
returns:
and then plot with
Definition at line 120 of file visualisation.py.