pangeo_fish.visualization.render_frame#
- pangeo_fish.visualization.render_frame(ds: Dataset, *args, figsize=(14, 8), frames_dir='.', **kwargs)#
Warning
Designed to be used with
dask.map_blocks(). As such,dsmust have the following variables:time_index, representing the time index. It is used for naming the image (.png)emissionandstates, the data to plot
Used along with
dask.map_blocks(), it will call create_single_frame() for each timestep, and save the consequent images under{frames_dir}/frame_XXXXX.png.- Parameters:
- Returns:
ds (
xarray.Dataset) – The input dataset (seedask.map_blocks())