radis.io.query moduleΒΆ

Wrapper to fetch line database from HITRAN with Astroquery 1 (based on [HAPI])

Note

if using, cite [HAPI] and [HITRAN-2016]

References

R1

Astroquery


fetch_astroquery(molecule, isotope, wmin, wmax, verbose=True, cache=True, expected_metadata={'isotope': 3, 'molecule': 'CO', 'wmax': 2300.0, 'wmin': 1900.0})[source]ΒΆ

Download a HITRAN line database to a Pandas DataFrame.

Wrapper to the fetch function of Astroquery 1 (itself based on [HAPI])

Note

if using, cite [HAPI] and [HITRAN-2016]

Parameters
  • molecule (str, or int) – molecule name or identifier

  • isotope (int) – isotope number

  • wmin, wmax (float (cm-1)) – wavenumber min and max

Other Parameters
  • verbose (boolean) – Default True

  • cache (boolean or 'regen') – if True, tries to find a .h5 cache file in the Astroquery cache_location, that would match the requirements. If not found, downloads it and saves the line dataframe as a .h5 file in the Astroquery. If 'regen', delete existing cache file to regerenate it.

  • expected_metadata (dict) – if cache=True, check that the metadata in the cache file correspond to these attributes. Arguments molecule, isotope, wmin, wmax are already added by default.

References

1(1,2)

Astroquery

See also

astroquery.hitran.core.Hitran.query_lines_async(), astroquery.query.BaseQuery.cache_location