Package ComboCode :: Package cc :: Package tools :: Package io :: Module TableWriter
[hide private]
[frames] | no frames]

Module TableWriter

source code

Several tools to write complex tables.

Author: R. Lombaert

Functions [hide private]
 
writeIntIntTable(filename, stars, trans, instrument='PACS', ddict={}, searchstring='os2_us3', mark_trans=[], extra_marker='\\tablefootmark{f}', blend_mark='\\tablefootmark{$\\star$}', print_summary=0, sort_freq=1)
Write a table with integrated line intensities and their uncertainties for multiple stars.
source code
Variables [hide private]
  __package__ = 'ComboCode.cc.tools.io'
Function Details [hide private]

writeIntIntTable(filename, stars, trans, instrument='PACS', ddict={}, searchstring='os2_us3', mark_trans=[], extra_marker='\\tablefootmark{f}', blend_mark='\\tablefootmark{$\\star$}', print_summary=0, sort_freq=1)

source code 

Write a table with integrated line intensities and their uncertainties for multiple stars.

The table - for now - is only available in LaTeX format.

Can be used for unresolved line strengths from PACS and SPIRE measurements.

Parameters:
  • filename (string) - The filename of the to be written table.
  • stars (list[string]) - The stars for which the table is created.
  • trans (list[Transition()]) - The transitions for which the integrated intensities are selected from the PACS line fit results of each star.
  • instrument (str) - The name of the instrument for which this is done. For now only 'PACS' and 'SPIRE'.

    (default: 'PACS')

  • ddict (dict(Instrument())) - The data objects for PACS or SPIRE for each star. If not given, they are generated automatically with path_linefit 'lineFit', oversampling 6 (for PACS) or 4 (for SPIRE), and resolution of 0.04 (for SPIRE).

    (default: None)

  • blend_mark (string) - The marker used for blended lines.

    (default: ablefootmark{$\star$})

  • mark_trans (list) - If a subset of transitions has to be marked with an extra mark, they are included in this list.

    (default: [])

  • extra_marker (string) - The marker used for the subset mark_trans

    (default: ablefootmark{f})

  • searchstring (string) - the searchstring conditional for the auto-search, if data have not been read into given Pacs objects or if new Pacs objects are generated.

    (default: 'os2_us3')

  • sort_freq (bool) - Sort the transitions on frequency. Otherwise sort on wavelength.

    (default: 1)

  • print_summary (bool) - Print a summary at the end.

    (default: 0)