radis.io.query moduleΒΆ

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

Note

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

References

[R1]

Astroquery


fetch_astroquery(molecule, isotope, wmin, wmax, verbose=True, cache=True, expected_metadata={}, engine='pytables-fixed', output='pandas')[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-2020]

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 regenerate 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.

  • output (str) – specifies the type of returned data

References

See also

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