vice.singlezone.bins

Type : array-like [elements must be real numbers]

Default : [-3, -2.95, -2.9, … , 0.9, 0.95, 1.0]

The bins in each [X/H] abundance and [X/Y] abundance ratio to sort the normalized stellar metallicity distribution function into. By default, VICE sorts everything into 0.05-dex bins between [X/H] and [X/Y] = -3 and +1.

Note

The metallicity distributions reported by VICE are normalized to probability distribution functions (i.e. the integral over all bins is equal to 1).

Example Code

>>> import numpy as np
>>> import vice
>>> sz = vice.singlezone(name = "example")
>>> # 400 bins between -3 and 1
>>> sz.bins = np.linspace(-3, 1, 401)
>>> # 800 bins between -2 and +2
>>> sz.bins = np.linspace(-2, 2, 801)