astroquery:docs

Nist

class astroquery.nist.core.Nist[source] [edit on github]

Bases: astroquery.query.BaseQuery

Attributes Summary

TIMEOUT int(x=0) -> int or long
URL str(object=’‘) -> string
energy_level_code
order_out_code
unit_code
wavelength_unit_code

Methods Summary

query(*args, **kwds) Queries the service and returns a table object.
query_async(*args, **kwds)
Parameters:

Attributes Documentation

TIMEOUT = 30
URL = 'http://physics.nist.gov/cgi-bin/ASD/lines1.pl'
energy_level_code = {'invcm': 0, 'rydberg': 2, 'eV': 1, 'electronvolt': 1, 'cm': 0, 'cm-1': 0, 'Rydberg': 2, 'R': 2, 'ev': 1, 'EV': 1}
order_out_code = {'wavelength': 0, 'multiplet': 1}
unit_code = {'um': 2, 'Angstrom': 0, 'nm': 1}
wavelength_unit_code = {'vac+air': 4, 'vacuum': 3}

Methods Documentation

static query(*args, **kwds) [edit on github]

Queries the service and returns a table object. Parameters ———- minwav : astropy.units.Quantity object

The lower wavelength for the spectrum in appropriate units.
maxwav : astropy.units.Quantity object
The 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 :An `astropy.table.Table` object :
static query_async(*args, **kwds)[source] [edit on github]
Parameters :

minwav : astropy.units.Quantity object

The lower wavelength for the spectrum in appropriate units.

maxwav : astropy.units.Quantity object

The 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.Response object

The response of the HTTP request.

Page Contents