pyrad.lbl.hitran.database module

class pyrad.lbl.hitran.database.Hitran(molecule, line_profile, isotopologue=None, database=None)[source]

Bases: object

HITRAN database front-end.

isotopologues

Lists of Isotopologue objects.

line_profile

Doppler, Lorentz, or Voigt object.

molecule

Molecule chemical forumla.

molecule_id

HITRAN molecule id.

parameters

List of HitranParameter objects.

create_database(database)[source]

Creates/ingests data into a SQLite database.

Parameters

database – Path to SQLite database that will be create/added to.

download_from_web(lower_bound=0.0, upper_bound=10000000.0)[source]

Downloads HITRAN molecular line parameters from the web.

Parameters
  • lower_bound – Lower bound of spectral range [cm-1], inclusive.

  • upper_bound – Upper bound of spectral range [cm-1], inclusive.

load_from_database(database)[source]

Loads data from a previously created SQLite database.

Parameters

database – Path to SQLite database.

parse_records(records)[source]

Parses all database records and stores the data.

Parameters

records – A list of dictionaries containing database record values.

records(response)[source]

Parses the HTTP table for all records related to the input molecule.

Parameters

response – A http.client.HTTPResponse object.

Yields

A dictionary of values from a record from the http table.

spectral_lines(total_partition_function)[source]