-
-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first functioning version of vamdc molecule queries with caching
enabled, plus some docs
- Loading branch information
Showing
2 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. doctest-skip-all | ||
.. _astroquery.vamdc: | ||
|
||
********************************** | ||
Vamdc Queries (`astroquery.vamdc`) | ||
********************************** | ||
|
||
Getting Started | ||
=============== | ||
|
||
The astroquery vamdc interface requires vamdclib_. The documentation is sparse | ||
to nonexistant, but installation is straightforward:: | ||
|
||
pip install https://github.com/keflavich/vamdclib/archive/master.zip | ||
|
||
This is the personal fork of the astroquery maintainer that includes astropy's | ||
setup helpers on top of the vamdclib infrastructure. | ||
|
||
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/ |