.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_use_st_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_st_grid.py: Use the STScI PHOENIX grid ========================== This example shows how to use the ST grid. .. GENERATED FROM PYTHON SOURCE LINES 7-14 .. code-block:: Python from astropy import units as u import numpy as np import matplotlib.pyplot as plt from GridPolator import GridSpectra from GridPolator import config .. GENERATED FROM PYTHON SOURCE LINES 15-18 Load the PHOENIX grid --------------------- Load the default VSPEC PHOENIX grid. .. GENERATED FROM PYTHON SOURCE LINES 18-37 .. code-block:: Python wave_short = 1*u.um wave_long = 2*u.um resolving_power = 100 teffs = [3000,3100] metalicities = [-1.0,-0.5] loggs = [3.5,4.0] spec = GridSpectra.from_st( w1=wave_short, w2=wave_long, resolving_power=resolving_power, teffs=teffs, metalicities=metalicities, loggs=loggs, impl_bin='rust', impl_interp='scipy', ) .. rst-class:: sphx-glr-script-out .. code-block:: none Loading Teff Axis: 0%| | 0/2 [00:00` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_use_st_grid.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_