eggshell.plot.plt_ncdata

visualization of netCDF data

Module Contents

eggshell.plot.plt_ncdata.LOGGER[source]
eggshell.plot.plt_ncdata.plot_extend(resource, file_extension='png')[source]

plots the extend (domain) of the values stored in a netCDF file:

Parm resource:path to netCDF file
Parameters:file_extension – file format of the graphic. if file_extension=None a matplotlib figure will be returned
Return graphic:graphic in specified format
eggshell.plot.plt_ncdata.spaghetti(resouces, variable=None, title=None, file_extension='png', dir_output='.')[source]

creates a png file containing the appropriate spaghetti plot as a field mean of the values.

Parameters:
  • resouces – list of files containing the same variable
  • variable – variable to be visualised. If None (default), variable will be detected
  • title – string to be used as title
Retruns str:

path to png file

eggshell.plot.plt_ncdata.uncertainty(resouces, variable=None, ylim=None, title=None, file_extension='png', window=None, dir_output='.')[source]

creates a png file containing the appropriate uncertainty plot.

Parameters:
  • resouces – list of files containing the same variable
  • variable – variable to be visualised. If None (default), variable will be detected
  • title – string to be used as title
  • window – windowsize of the rolling mean
Returns str:

path/to/file.png

eggshell.plot.plt_ncdata.plot_spatial_analog(ncfile, variable='dissimilarity', cmap='viridis', title='Spatial analog')[source]

Return a matplotlib Figure instance showing a map of the dissimilarity measure.