plot_grid_spectra
Plot a local grid's spectra at a chosen point to view the output shape without writing a script. Set grid, point, and wavelength range to render the spectra.
Instructions
Plot a local grid's spectra at one grid point.
Renders the spectra a grid holds at a chosen point, so the shape of
the grid's output can be seen without writing a script. Loading
spectra reads the full arrays, so this is slower than
inspect_local_grid, and importing Synthesizer creates its data
directories on first use.
Args:
grid_name: Grid name, with or without a file suffix.
spectra_types: Spectra to draw, defaulting to every spectrum the
grid provides, capped at six.
point: Axis name to value, each in that axis's own units, for
example {"ages": 1e7, "metallicities": 0.01}. Every axis
must be given. Defaults to the centre of the grid.
wavelength_range: [low, high] in the grid's wavelength
units. Defaults to the range carrying essentially all the
luminosity, because a grid's full axis spans many decades
and drawing all of it hides the interesting part.
Returns:
A mapping with ok, the written path, the grid_point
indices used, the spectra_types drawn, the
wavelength_range shown, and the axes values at that
point. On failure ok is False and
error explains why.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| point | No | ||
| grid_name | Yes | ||
| spectra_types | No | ||
| wavelength_range | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||