NistClass¶
-
class
astroquery.nist.NistClass[source]¶ Bases:
astroquery.query.BaseQueryAttributes Summary
TIMEOUTURLenergy_level_codeorder_out_codeunit_codewavelength_unit_codeMethods Summary
query(*args, **kwargs)Queries the service and returns a table object. query_async(minwav, maxwav[, linename, …])Serves the same purpose as querybut returns the raw HTTP response rather than aTableobject.Attributes Documentation
-
TIMEOUT= 30¶
-
URL= 'http://physics.nist.gov/cgi-bin/ASD/lines1.pl'¶
-
energy_level_code= {'EV': 1, 'R': 2, 'Rydberg': 2, 'cm': 0, 'cm-1': 0, 'eV': 1, 'electronvolt': 1, 'ev': 1, 'invcm': 0, 'rydberg': 2}¶
-
order_out_code= {'multiplet': 1, 'wavelength': 0}¶
-
unit_code= {'Angstrom': 0, 'nm': 1, 'um': 2}¶
-
wavelength_unit_code= {'vac+air': 4, 'vacuum': 3}¶
Methods Documentation
-
query(*args, **kwargs)¶ Queries the service and returns a table object.
Serves the same purpose as
querybut returns the raw HTTP response rather than aTableobject.Parameters: minwav :
astropy.units.QuantityobjectThe lower wavelength for the spectrum in appropriate units.
maxwav :
astropy.units.QuantityobjectThe upper wavelength for the spectrum in appropriate units.
linename : str, optional
The spectrum to fetch. Defaults to “H I”
energy_level_unit : str, optional
The energy level units must be one of the following: ‘R’, ‘Rydberg’, ‘rydberg’, ‘cm’, ‘cm-1’, ‘EV’, ‘eV’, ‘electronvolt’, ‘ev’, ‘invcm’ Defaults to ‘eV’.
output_order : str, optional
Decide ordering of output. Must be one of following: [‘wavelength’, ‘multiplet’]. Defaults to ‘wavelength’.
wavelength_type : str, optional
Must be one of ‘vacuum’ or ‘vac+air’. Defaults to ‘vacuum’.
get_query_payload : bool, optional
If true then returns the dictionary of query parameters, posted to remote server. Defaults to
False.Returns: table : A
Tableobject.
-
query_async(minwav, maxwav, linename='H I', energy_level_unit='eV', output_order='wavelength', wavelength_type='vacuum', get_query_payload=False)[source]¶ Serves the same purpose as
querybut returns the raw HTTP response rather than aTableobject.Parameters: minwav :
astropy.units.QuantityobjectThe lower wavelength for the spectrum in appropriate units.
maxwav :
astropy.units.QuantityobjectThe upper wavelength for the spectrum in appropriate units.
linename : str, optional
The spectrum to fetch. Defaults to “H I”
energy_level_unit : str, optional
The energy level units must be one of the following: ‘R’, ‘Rydberg’, ‘rydberg’, ‘cm’, ‘cm-1’, ‘EV’, ‘eV’, ‘electronvolt’, ‘ev’, ‘invcm’ Defaults to ‘eV’.
output_order : str, optional
Decide ordering of output. Must be one of following: [‘wavelength’, ‘multiplet’]. Defaults to ‘wavelength’.
wavelength_type : str, optional
Must be one of ‘vacuum’ or ‘vac+air’. Defaults to ‘vacuum’.
get_query_payload : bool, optional
If true then returns the dictionary of query parameters, posted to remote server. Defaults to
False.Returns: response :
requests.ResponseobjectThe response of the HTTP request.
-