pyarts.internals.ARTSCAT5

class pyarts.internals.ARTSCAT5(init_data=None)[source]

Class to contain ARTSCAT entries that can be accessed and manipulated

Access this data as (N, I, F0, S0, T0, E0, A, GL, GU, PB, QN, LM) = ARTSCAT5[line_nr], where N is the name of the species, I is the AFGL isotopological code, F0 is the central frequency, S0 is the line strength at temperature T0, E0 is the lower energy state, A is the einstein coefficient, GL is the lower population constant, GU is the upper population constant, PB is a dictionary of the pressurebroadening scheme, QN is a QuantumNumberRecord, and LM is a line-mixing dictionary. The dictionaries have keys corresponding to the ARTSCAT tags. line_nr is an index absolutely less than len(self)

Note: Must be ARTSCAT5 line type or this will leave the class data in disarray.

Future tech debt 1: The reading of tagged data will fail if major tags ever match minor tags (ex. PB is major, N2 is minor for PB, if LM ever gets the PB minor tag, then the method below will fail).

Future tech debt 2: To add version number and make the class general, ARTSCAT3 only have minor tag N2 for line mixing and ARTSCAT4 has AP. These tags are however implicit and not written. A

__init__(init_data=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([init_data])

Initialize self.

append(other[, sort])

Appends data to ARTSCAT5.

as_ArrayOfLineRecord([index])

Turns ARTSCAT5 into ArrayOfLineRecord that can be stored to file

changeForQN([kind, qid, spec, afgl, qns, …])

Change information of a line according to identifiers

cross_section([temperature, pressure, vmrs, …])

Provides an estimation of the cross-section in the provided frequency range

get_arts_str(index)

Returns the arts-xml catalog string for line at index

linefunctionsdata(index)

Return line function entries for line at index

linemixing(index)

Return line mixing entries for line at index

lineshapemodifiers(index)

Return line mixing entries for line at index

pressurebroadening(index)

Return pressure broadening entries for line at index

quantumnumbers(index)

Return quantum number entries for line at index

remove([spec, afgl, upper_limit, …])

Removes lines not within limits of kind

remove_line(index)

Remove line at index from line record

set_testline([i_know_what_i_am_doing])

sort([kind, ascending])

Sorts the ARTSCAT5 data by kind.

write_xml(xmlwriter[, attr])

Write an ARTSCAT5 object to an ARTS XML file.

zeemandata(index)

Return Zeeman entries for line at index

Attributes

A

E0

F0

Iso

S0

Species

T0

g0

g00