File: vamdc.rst

package info (click to toggle)
astroquery 0.4.6%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,420 kB
  • sloc: xml: 56,574; python: 43,303; makefile: 145; ansic: 69
file content (44 lines) | stat: -rw-r--r-- 1,334 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.. doctest-skip-all

.. _astroquery.vamdc:

**********************************
Vamdc Queries (`astroquery.vamdc`)
**********************************

Getting Started
===============

The astroquery vamdc interface requires vamdclib_.  The documentation is sparse
to nonexistent, but installation is straightforward::

    pip install git+https://github.com/keflavich/vamdclib-1.git

This is the personal fork of the astroquery maintainer that includes astropy's
setup helpers on top of the vamdclib infrastructure.  If the infrastructure is
`merged <https://github.com/VAMDC/vamdclib/pull/1>`_ into the main vamdclib
library, we'll change these instructions.

Examples
========

If you want to compute the partition function, you can do so using a combination
of astroquery and the vamdclib tools::

.. code-block:: python

    >>> from astroquery.vamdc import Vamdc
    >>> ch3oh = Vamdc.query_molecule('CH3OH')
    >>> from vamdclib import specmodel
    >>> partition_func = specmodel.calculate_partitionfunction(ch3oh.data['States'],
                                                               temperature=100)
    >>> print(partition_func)
    {'XCDMS-149': 1185.5304044622881}

Reference/API
=============

.. automodapi:: astroquery.vamdc
    :no-inheritance-diagram:

.. _vamdclib: http://vamdclib.readthedocs.io/en/latest/