Wind Plots¶
WindQuiverPlot
¶
Bases: SpatialPlot
Create a quiver plot of wind vectors on a map.
This plot shows wind speed and direction using arrows.
Source code in src/monet_plots/plots/wind_quiver.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
__init__(ws, wdir, gridobj, *args, **kwargs)
¶
Initialize the plot with data and map projection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ws
|
(ndarray, DataFrame, Series, DataArray)
|
2D array of wind speeds. |
required |
wdir
|
(ndarray, DataFrame, Series, DataArray)
|
2D array of wind directions. |
required |
gridobj
|
object
|
Object with LAT and LON variables. |
required |
**kwargs
|
Keyword arguments passed to SpatialPlot for projection and features. |
{}
|
Source code in src/monet_plots/plots/wind_quiver.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
plot(**kwargs)
¶
Generate the wind quiver plot.
Source code in src/monet_plots/plots/wind_quiver.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
WindBarbsPlot
¶
Bases: SpatialPlot
Create a barbs plot of wind on a map.
This plot shows wind speed and direction using barbs.
Source code in src/monet_plots/plots/wind_barbs.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
__init__(ws, wdir, gridobj, *args, **kwargs)
¶
Initialize the plot with data and map projection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ws
|
(ndarray, DataFrame, Series, DataArray)
|
2D array of wind speeds. |
required |
wdir
|
(ndarray, DataFrame, Series, DataArray)
|
2D array of wind directions. |
required |
gridobj
|
object
|
Object with LAT and LON variables. |
required |
**kwargs
|
Keyword arguments passed to SpatialPlot for projection and features. |
{}
|
Source code in src/monet_plots/plots/wind_barbs.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
plot(**kwargs)
¶
Generate the wind barbs plot.
Source code in src/monet_plots/plots/wind_barbs.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |