.. _instrumentfiles: Instrument Configuration Files ============================== Most of these parameters are the subject of considerable calibration efforts, and as such, **should not be adjusted if the results are to be trusted**. These files are obtained with the :doc:`configuration module ` and are stored in :file:`$HOME/.slitlessutils//instruments/` Instrument-Wide Settings ------------------------ .. list-table:: Instrument-Wide Settings :widths: 25 25 50 :header-rows: 1 * - Keyword - Unit - Description * - Image units - :math:`\mathrm{e}^-/\mathrm{s}` or :math:`\mathrm{e}^-` - The units of the images to be written. * - File suffix - ``flt`` or ``flc`` - | The file suffix in the HST parlance denoting files without and | with the CTE corrections, respectively. * - Path - ``str`` - | The relative path from the ``yaml`` file where the files for this | instrument are stored. * - Focal-plane position - 3-elements - | The :math:`(v_2,v_3)` position of the reference point | and :math:`v_{3y}` angle with respect the :math:`v_3`-axis. Instrument-Wide Grating/Blocking Parameters ------------------------------------------- .. list-table:: Instrument-Wide Grating/Blocking [#gbnote]_ :widths: 25 25 50 :header-rows: 1 * - Keyword - Unit - Description * - Global-Sky Image - - The name of the global-sky image. * - Tabulation Parameters - ``dict`` - | This contains the starting wavelength (``wave0``), ending | wavelength (``wave1``), sampling rate (``dwave``), | units (usually ``angstrom``), and ``disptype`` (which is | always "grism"). * - Extraction Parameters [#extnote]_ - ``dict`` - | This contains the starting wavelength (``wave0``), ending | wavelength (``wave1``), sampling rate (``dwave``), | units (usually ``angstrom``), ``disptype``, and if | ``alpha`` for prisms. Details on Extraction Settings ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The extraction parameters for a :term:`grism` and :term:`prism` will be different, owing to the non-linear dispersion in a prism. Since a grism is linear, the formulae for the :math:`i^\mathrm{th}` extraction wavelength (:math:`\lambda_i`) and the number of wavelength elements (:math:`N`) are: .. math:: \begin{aligned} \lambda_i &=& \lambda_0 + \delta\lambda\,i\\ n &=& \frac{\lambda_1-\lambda_0}{\delta\lambda}+1\\ N &=& \lceil n \rceil \end{aligned} where :math:`\lambda_0`, :math:`\lambda_1`, and :math:`\delta\lambda` are the starting wavelength (``wave0``), ending wavelength (``wave``), and sampling rate (``dwave``), respectively. The notation :math:`\lceil x \rceil` refers to the ceiling function of x. For the prisms, which are highly nonlinear, the same two equations become: .. math:: \begin{aligned} \lambda_i &=& \lambda_0 + \delta\lambda\,\left(\frac{\alpha-1}{\alpha-i}\right)\,i\\ N &=& \left\lceil\frac{n-2+\alpha n}{n-2 + \alpha}\right\rceil \end{aligned} where :math:`\Delta\lambda\!=\!(\lambda_1-\lambda_0)` and :math:`\alpha` is a *curvature* parameter that adjust the degree of non-linearity. This form has several limiting forms worth mentioning. If :math:`\alpha=0`, then there will be a single wavelength element (:math:`N=1`), emulating the photometry from an imaging mode. Second, if :math:`\alpha\gg n`, then the prism function approaches the linear form for a grism. .. note:: In general, users are discouraged from adjusting these settings in the reference files, and are recommended to instead use the API (see :doc:`sources `). Extraordinary care should be taken regarding the curvature parameter. Detector Parameters ------------------- .. list-table:: Detector Settings [#detnote]_ :widths: 25 25 50 :header-rows: 1 * - Keyword - Unit - Description * - Focal-plane position - 3-elements - | :math:`(v_2,v_3)` position of the reference point | :math:`v_{3y}` angle with respect the :math:`v_3`-axis * - Extension properties - - | ``name``: the name of the extension (must be ``str``) | ``ver``: the version of the extension (must be ``int``) | ``dtype``: a valid ``np.dtype`` * - Noise properties - - | dark current :math:`D` in :math:`e^-/s` | readnoise :math:`R` in :math:`e^-` * - Detector dimensionality - - | ``naxis``: 2-element list of size of detector (must be ``int``) | ``crpix``: 2-element list for reference position (can be ``float``) | ``scale``: 2-element list for pixel scale (can be ``float``) * - Distortion model - - `SIP coefficients `_ should be a ``dict`` * - Configuration files - - The file name for each grating/blocking combination .. rubric:: Footnotes .. [#gbnote] These settings are set for each grating/blocking combination, and if no blocking filter exists, then it is set as the ``null`` variable in ``yaml``. .. [#extnote] The extraction and tabulation settings need-not be the same. Indeed, to encapsulate the non-linearity in the prism modes they will **NOT** be the same. .. [#detnote] There should be a separate stanza like this for each detector in the instrument (e.g. such as the two CCDs in ACS-WFC).