Barak 0.3.2 documentation

barak.absorb.readatom

«  barak.absorb.read_HITRAN   ::   Contents   ::   barak.absorb.split_trans_name  »

barak.absorb.readatom

barak.absorb.readatom(filename=None, debug=False, flat=False, molecules=False, isotopes=False)[source]

Reads atomic transition data from a vpfit-style atom.dat file.

Parameters :

filename : str, optional

The name of the atom.dat-style file. If not given, then the version bundled with barak is used.

flat : bool (False)

If True, return a flattened array, with the data not grouped by transition.

molecules : bool (False)

If True, also return data for H2 and CO molecules.

isotopes : bool (False)

If True, also return data for isotopes.

Returns :

atom [, atom_flat] : dict [, dict]

A dictionary of transition data, in general grouped by electronic transition (MgI, MgII and so on). If flat = True, also return a flattened version of the same data.

«  barak.absorb.read_HITRAN   ::   Contents   ::   barak.absorb.split_trans_name  »