gridmarthe.plot_outcrop
- gridmarthe.plot_outcrop(ds_outcrop, file_out=None, engine='xr', show=False)[source]
Usefull function to plot outcrop layers of a marthe (multilayer) grid
There is two mode implementend yet, using xr.plot or gpd.plot (useful for nested grid)
- if engine == ‘xr’ => ds_outcrop need to get coords before
(use gm.assign_coords(ds_outcrop, add_lay=False))
- if engine == ‘gpd => ds_outcrop need to be a gpd.GeoDataframe
(use gm.to_geodataframe(ds_outcrop))
nb: The Marthe grid must have a z dimension.
- Parameters:
- Returns:
fig, ax, ax_cbar if not show, otherwise return None