ctools
2.0.0
|
Public Member Functions | |
def | __init__ |
def | __getstate__ |
def | __setstate__ |
def | process |
def | save |
Private Member Functions | |
def | _get_parameters |
def | _load_statistics |
def | _format_time |
def | _format_footprint |
def | _get_global_information |
def | _global_statistics |
def | _daily_statistics |
def | _tools_statistics |
def | _create_figure |
def | _plot_daily |
def | _plot_pie |
Private Attributes | |
_statistics | |
Carbon footprint report script
Definition at line 32 of file csfootprint.py.
def cscripts.csfootprint.csfootprint.__init__ | ( | self, | |
argv | |||
) |
Constructor Parameters ---------- argv : list of str List of IRAF command line parameter strings of the form ``parameter=3``.
Definition at line 38 of file csfootprint.py.
def cscripts.csfootprint.csfootprint.__getstate__ | ( | self | ) |
Extend ctools.cscript __getstate__ method Returns ------- state : dict Pickled instance
Definition at line 58 of file csfootprint.py.
References cscripts.csfootprint.csfootprint._statistics.
def cscripts.csfootprint.csfootprint.__setstate__ | ( | self, | |
state | |||
) |
Extend ctools.cscript __setstate__ method Parameters ---------- state : dict Pickled instance
Definition at line 74 of file csfootprint.py.
References cscripts.csfootprint.csfootprint._statistics.
|
private |
Create figure Parameters ---------- outfile : str Figure file name statistics : dict Statistics dictionary
Definition at line 571 of file csfootprint.py.
References cscripts.csfootprint.csfootprint._get_global_information(), cscripts.csfootprint.csfootprint._plot_daily(), and cscripts.csfootprint.csfootprint._plot_pie().
Referenced by cscripts.csfootprint.csfootprint.save().
|
private |
Log daily statistics Parameters ---------- statistics : dict Statistics dictionary
Definition at line 431 of file csfootprint.py.
References cscripts.csfootprint.csfootprint._format_footprint(), and cscripts.csfootprint.csfootprint._format_time().
Referenced by cscripts.csfootprint.csfootprint.process().
|
private |
Format carbon footprint Parameters ---------- gCO2e : float Carbon footprint in gCO2e latex : bool, optional Use LaTeX formatting
Definition at line 287 of file csfootprint.py.
Referenced by cscripts.csfootprint.csfootprint._daily_statistics(), cscripts.csfootprint.csfootprint._get_global_information(), and cscripts.csfootprint.csfootprint._tools_statistics().
|
private |
Format time Parameters ---------- seconds : float Time in seconds
Definition at line 266 of file csfootprint.py.
Referenced by cscripts.csfootprint.csfootprint._daily_statistics(), cscripts.csfootprint.csfootprint._get_global_information(), and cscripts.csfootprint.csfootprint._tools_statistics().
|
private |
Get global information from statistics Parameters ---------- statistics : dict Statistics dictionary latex : bool, optional Use LaTeX formatting
Definition at line 316 of file csfootprint.py.
References cscripts.csfootprint.csfootprint._format_footprint(), and cscripts.csfootprint.csfootprint._format_time().
Referenced by cscripts.csfootprint.csfootprint._create_figure(), and cscripts.csfootprint.csfootprint._global_statistics().
|
private |
Get parameters from parfile
Definition at line 92 of file csfootprint.py.
Referenced by cscripts.csmodelinfo.csmodelinfo.process(), cscripts.csobsinfo.csobsinfo.process(), cscript_obs.cscript_obs.process(), cscript_base.cscript_base.process(), cscript_like.cscript_like.process(), cscripts.csmodelmerge.csmodelmerge.process(), cscripts.csiactdata.csiactdata.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csresmap.csresmap.process(), cscripts.csmodelsois.csmodelsois.process(), cscripts.csobsdef.csobsdef.process(), cscripts.csmodelselect.csmodelselect.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csworkflow.csworkflow.process(), cscripts.csobs2caldb.csobs2caldb.process(), cscripts.cstsdist.cstsdist.process(), cscripts.csiactcopy.csiactcopy.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cspull.cspull.process(), cscripts.csphasecrv.csphasecrv.process(), cscripts.csiactobs.csiactobs.process(), cscripts.cslightcrv.cslightcrv.process(), cscripts.csviscube.csviscube.process(), cscripts.csresspec.csresspec.process(), cscripts.csfootprint.csfootprint.process(), cscripts.csscs.csscs.process(), cscripts.csphagen.csphagen.process(), cscripts.cssens.cssens.process(), cscripts.csspec.csspec.process(), and cscripts.csroot2caldb.csroot2caldb.process().
|
private |
Log global statistics Parameters ---------- statistics : dict Statistics dictionary
Definition at line 395 of file csfootprint.py.
References cscripts.csfootprint.csfootprint._get_global_information().
Referenced by cscripts.csfootprint.csfootprint.process().
|
private |
Load statistics
Definition at line 115 of file csfootprint.py.
Referenced by cscripts.csfootprint.csfootprint.process().
|
private |
Plot daily figure Parameters ---------- ax : pyplot Plotting frame statistics : dict Statistics dictionary quantity : str, optional Quantity to plot title : str, optional Plot title ylabel : str, optional Y axis label yscale : float, optional Y axis scale
Definition at line 687 of file csfootprint.py.
Referenced by cscripts.csfootprint.csfootprint._create_figure().
|
private |
Plot pie figure Parameters ---------- ax : pyplot Plotting frame statistics : dict Statistics dictionary quantity : str, optional Quantity to plot title : str, optional Plot title num : integer, optional Number of pies displayed explicitly arg : list or str, optional List of pie method keyword arguments
Definition at line 722 of file csfootprint.py.
Referenced by cscripts.csfootprint.csfootprint._create_figure().
|
private |
Log tools statistics Parameters ---------- statistics : dict Statistics dictionary
Definition at line 475 of file csfootprint.py.
References cscripts.csfootprint.csfootprint._format_footprint(), and cscripts.csfootprint.csfootprint._format_time().
Referenced by cscripts.csfootprint.csfootprint.process().
def cscripts.csfootprint.csfootprint.process | ( | self | ) |
Process the script
Definition at line 783 of file csfootprint.py.
References cscripts.csfootprint.csfootprint._daily_statistics(), cscripts.csadd2caldb.csadd2caldb._get_parameters(), cscripts.csebins.csebins._get_parameters(), cscripts.csfindobs.csfindobs._get_parameters(), cscripts.cscaldb.cscaldb._get_parameters(), cscripts.csbkgmodel.csbkgmodel._get_parameters(), cscripts.csfootprint.csfootprint._get_parameters(), cscripts.csfootprint.csfootprint._global_statistics(), cscripts.csfootprint.csfootprint._load_statistics(), cscripts.csfootprint.csfootprint._statistics, and cscripts.csfootprint.csfootprint._tools_statistics().
def cscripts.csfootprint.csfootprint.save | ( | self | ) |
Save something
Definition at line 804 of file csfootprint.py.
References cscripts.csfootprint.csfootprint._create_figure(), and cscripts.csfootprint.csfootprint._statistics.
|
private |
Definition at line 52 of file csfootprint.py.
Referenced by cscripts.csfootprint.csfootprint.__getstate__(), cscripts.csfootprint.csfootprint.__setstate__(), cscripts.csfootprint.csfootprint.process(), and cscripts.csfootprint.csfootprint.save().