pyteseo.plot.basics
Functions
|
scattered plot of the grid depth |
|
plot land mask of the TESEO grid |
|
plot coastline polygons |
|
plot grid extent |
|
plot extent of currents forcing |
|
|
|
|
|
plot spill propierties results in a chart |
|
|
|
|
|
Module Contents
- pyteseo.plot.basics._scatter_grid_depth(df_grid: pandas.DataFrame, ax: matplotlib.axes.Axes = None) None
scattered plot of the grid depth
- Parameters:
df_grid (pd.DataFrame) – grid data [lon, lat, depth, …].
ax (Axes, optional) – specific axes to plot on. Defaults to None.
- pyteseo.plot.basics._plot_grid_land_mask(df_grid: pandas.DataFrame, ax: matplotlib.axes.Axes = None) None
plot land mask of the TESEO grid
- Parameters:
df_grid (pd.DataFrame) – grid data [lon, lat ,depth]
ax (Axes) – specific axes to plot on. Defaults to None.
- pyteseo.plot.basics._plot_coastline(gdf_coastline: geopandas.GeoDataFrame, ax: matplotlib.axes.Axes = None) None
plot coastline polygons
- Parameters:
gdf_coastline (gpd.GeoDataFrame) – closed polygons of the coastline.
ax (Axes, optional) – specific axes to plot on. Defaults to None.
- pyteseo.plot.basics._plot_grid_extent(df: pandas.DataFrame, ax: matplotlib.axes.Axes = None) None
plot grid extent
- Parameters:
df (pd.DataFrame) – TESEO grid data [lon, lat, …].
ax (Axes, optional) – specific axes to plot on. Defaults to None.
- pyteseo.plot.basics._plot_currents_extent(df: pandas.DataFrame, ax: matplotlib.axes.Axes = None) None
plot extent of currents forcing
- Parameters:
df (pd.DataFrame) – currents data [lon, lat, …]
ax (Axes, optional) – specific axes to plot on. Defaults to None.
- pyteseo.plot.basics._plot_winds_extent(df: pandas.DataFrame, ax=None)
- pyteseo.plot.basics._plot_waves_extent(df: pandas.DataFrame, ax=None)
- pyteseo.plot.basics._plot_properties(df: pandas.DataFrame, spill_id: int, ax=None) None
plot spill propierties results in a chart
- Parameters:
df (pd.DataFrame) – spills properties data [time, spill_id, variables…].
spill_id (int) – id of the spill.
show (bool, optional) – visulization flag. Defaults to True.
- Raises:
ValueError – Wrong spill id.
- pyteseo.plot.basics._plot_particles_hexabin(df: pandas.DataFrame, time_id: int, spill_id: int, dx_degrees=0.01, dx_m=None, ax=None) None
- pyteseo.plot.basics.get_hexbin_props(df, hexagon_width)
- pyteseo.plot.basics._plot_particles_hist2d(df: pandas.DataFrame, time_id: int, spill_id: int, dx_degrees: float, ax=None)