Visualize data
Graphic utilities for nsfds2
- class nsfds2.utils.graphics.DataExtractor(data)[source]
Extract data from hdf5 file
- Parameters
data (str, hdf5file) – Path to hdf5 file or data from hdf5 file.
- class nsfds2.utils.graphics.DataIterator(data, view='p', nt=None)[source]
Data Generator
- Parameters
data (DataExtractor or str) – DataExtractor instance or filename.
view (tuple) – The variable to display.
nt (int) – The last frame to consider.
- class nsfds2.utils.graphics.Plot(filename, quiet=False)[source]
Helper class to plot results from nsfds2.
- fields(view=('p', 'e', 'vx', 'vz'), iteration=None, ref=None, show_pml=False, show_probes=True, figsize='auto', midpoint=0, comp=1)[source]
Make figure