Welcome to the documentation for the Cinfdata Database Client!¶
Cinfdata Client is a simple Python module for accessing and caching data from the Cinfdata database. The use of the module could look something like this:
from cinfdata import Cinfdata
from matplotlib import pyplot as plt
# Instantiate the database client for a specific setup e.g. stm312
db = Cinfdata('stm312')
# Get the data and metadata for a specific id
spectrum = db.get_data(6688)
metadata = db.get_metadata(6688)
plt.plot(spectrum[:,0], spectrum[:, 1])
plt.title(metadata['Comment'])
plt.show()
To get started, please start by reading the first few sections of the Introduction. Then have a look at the Examples or the Source Code Documentation (API).