.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_use_vspec_grid.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_use_vspec_grid.py: Use the VSPEC PHOENIX grid ========================== This example shows how to use the VSPEC grid. .. GENERATED FROM PYTHON SOURCE LINES 7-15 .. code-block:: Python from astropy import units as u import numpy as np from jax import numpy as jnp import matplotlib.pyplot as plt from GridPolator import GridSpectra from GridPolator import config .. GENERATED FROM PYTHON SOURCE LINES 16-19 Load the PHOENIX grid --------------------- Load the default VSPEC PHOENIX grid. .. GENERATED FROM PYTHON SOURCE LINES 19-32 .. code-block:: Python wave_short = 1*u.um wave_long = 10*u.um resolving_power = 100 teffs = [3000,3100,3200] spec = GridSpectra.from_vspec( w1=wave_short, w2=wave_long, resolving_power=resolving_power, teffs=teffs ) .. rst-class:: sphx-glr-script-out .. code-block:: none Loading Spectra: 0%| | 0/3 [00:00` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_use_vspec_grid.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_