Package ComboCode :: Package cc :: Package plotting :: Package objects :: Module PlotChem :: Class PlotChem
[hide private]
[frames] | no frames]

Class PlotChem

source code


Class for plotting gas lines and their information.

Instance Methods [hide private]
 
__init__(self, star_name, path_chemistry='OutputClumpy', inputfilename=None, fn_add_star=1)
Initializing an instance of PlotGas.
source code
list[Star()]
makeStars(self, models)
Make a Star list based on the Chemistry model ids.
source code
 
plotVelocity(self, star_grid=[], models=[], fn_plt='', force_plot=0, cfg='')
Plot velocity versus radius for every model in star_grid.
source code
 
plotTemp(self, star_grid=[], models=[], fn_plt='', force_plot=0, cfg='')
Plot temperature profiles of all models.
source code
 
plotVisualExtinction(self, star_grid=[], models=[], fn_plt='', force_plot=0, cfg='')
Plot temperature profiles of all models.
source code
 
plotPhotodissociationrateCo(self, star_grid=[], models=[], fn_plt='', force_plot=0, cfg='')
Plot temperature profiles of all models.
source code
 
plotRadiationField(self, star_grid=[], models=[], fn_plt='', force_plot=0, cfg='')
Plot temperature profiles of all models.
source code
 
plotAbundanceProfiles(self, star_grid=[], models=[], force_plot=0, cfg='', fn_plt='', molecules=[], per_molecule=0, frac=1)
Plot abundance profiles for all molecules in every model.
source code

Inherited from cc.plotting.objects.PlottingSession.PlottingSession: checkChangedPars, makeModelList, setFnPlt

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, star_name, path_chemistry='OutputClumpy', inputfilename=None, fn_add_star=1)
(Constructor)

source code 

Initializing an instance of PlotGas.

Parameters:
  • star_name (string) - name of the star from Star.dat, use default only when never using any star model specific things
  • path_chemistry (string) - Output modeling folder in MCMax home folder

    (default: 'OutputClumpy')

  • inputfilename (string) - name of inputfile that is also copied to the output folder of the plots, if None nothing is copied

    (default: None)

  • fn_add_star (bool) - Add the star name to the requested plot filename. Only relevant if fn_plt is given in a sub method.

    (default: 1)

Overrides: object.__init__

makeStars(self, models)

source code 

Make a Star list based on the Chemistry model ids.

Parameters:
  • models (list(string)) - model_ids for the Chemistry db
Returns: list[Star()]
the parameter sets

plotVelocity(self, star_grid=[], models=[], fn_plt='', force_plot=0, cfg='')

source code 

Plot velocity versus radius for every model in star_grid.

Parameters:
  • star_grid (list[Star()]) - List of Star() instances. If default, model ids have to be given.

    (default: [])

  • models (list[string]) - The model ids, only required if star_grid is []

    (default: [])

  • fn_plt (string) - A base plot filename. Includes folder. If not, a default is added

    (default: '')

  • force_plot (bool) - force a plotting if more than models are requested

    (default: 0)

  • cfg (string) - path to the Plotting2.plotCols config file. If default, the hard-coded default plotting options are used.

    (default: '')

plotTemp(self, star_grid=[], models=[], fn_plt='', force_plot=0, cfg='')

source code 

Plot temperature profiles of all models.

Parameters:
  • star_grid (list[Star()]) - List of Star() instances. If default, model ids have to be given.

    (default: [])

  • models (list[string]) - The model ids, only required if star_grid is []

    (default: [])

  • fn_plt (string) - A base plot filename. Includes folder. If not, a default is added

    (default: '')

  • force_plot (bool) - force a plotting if more than models are requested

    (default: 0)

  • cfg (string) - path to the Plotting2.plotCols config file. If default, the hard-coded default plotting options are used.

    (default: '')

plotVisualExtinction(self, star_grid=[], models=[], fn_plt='', force_plot=0, cfg='')

source code 

Plot temperature profiles of all models.

Parameters:
  • star_grid (list[Star()]) - List of Star() instances. If default, model ids have to be given.

    (default: [])

  • models (list[string]) - The model ids, only required if star_grid is []

    (default: [])

  • fn_plt (string) - A base plot filename. Includes folder. If not, a default is added

    (default: '')

  • force_plot (bool) - force a plotting if more than models are requested

    (default: 0)

  • cfg (string) - path to the Plotting2.plotCols config file. If default, the hard-coded default plotting options are used.

    (default: '')

plotPhotodissociationrateCo(self, star_grid=[], models=[], fn_plt='', force_plot=0, cfg='')

source code 

Plot temperature profiles of all models.

Parameters:
  • star_grid (list[Star()]) - List of Star() instances. If default, model ids have to be given.

    (default: [])

  • models (list[string]) - The model ids, only required if star_grid is []

    (default: [])

  • fn_plt (string) - A base plot filename. Includes folder. If not, a default is added

    (default: '')

  • force_plot (bool) - force a plotting if more than models are requested

    (default: 0)

  • cfg (string) - path to the Plotting2.plotCols config file. If default, the hard-coded default plotting options are used.

    (default: '')

plotRadiationField(self, star_grid=[], models=[], fn_plt='', force_plot=0, cfg='')

source code 

Plot temperature profiles of all models.

Parameters:
  • star_grid (list[Star()]) - List of Star() instances. If default, model ids have to be given.

    (default: [])

  • models (list[string]) - The model ids, only required if star_grid is []

    (default: [])

  • fn_plt (string) - A base plot filename. Includes folder. If not, a default is added

    (default: '')

  • force_plot (bool) - force a plotting if more than models are requested

    (default: 0)

  • cfg (string) - path to the Plotting2.plotCols config file. If default, the hard-coded default plotting options are used.

    (default: '')

plotAbundanceProfiles(self, star_grid=[], models=[], force_plot=0, cfg='', fn_plt='', molecules=[], per_molecule=0, frac=1)

source code 

Plot abundance profiles for all molecules in every model.

Parameters:
  • star_grid (list[Star()]) - List of Star() instances. If default, model ids have to be given.

    (default: [])

  • models (list[string]) - The model ids, only required if star_grid is []

    (default: [])

  • force_plot (bool) - force a plotting if more than models are requested

    (default: 0)

  • cfg (string) - path to the Plotting2.plotCols config file. If default, the hard-coded default plotting options are used.

    (default: '')

  • fn_plt (string) - A base plot filename. Includes folder. If not, a default is added

    (default: '')

  • molecules (bool) - Molecules to be plotted.

    (default: [])

  • per_molecule (bool) - Plot one molecule for all models in one figure.

    (default: 0)

  • per_model (bool) - Plot all molecules for one model in one figure.

    (default: 0)

  • frac (bool) - Plot the fractional abundances. If not frac, plot number densities.

    (default: 1)