datamodel's documentation
=============================================
This is the documentation for the SDSS Python product datamodel. The current version
is |datamodel_version|. You can install the package by doing
.. code-block:: console
$ git clone https://github.com/sdss/datamodel
$ cd datamodel
$ pip install -e .
The above pip command installs a lightweight package for using the Python datamodel representations
only, see :ref:`navigate`. For generating or designing new datamodels, you need to install
extra dependencies with the ``gen`` extras options, i.e.
.. code-block:: console
$ pip install -e ".[gen]"
This will install all dependencies needed for generating datamodels, with support for FITS files only.
Support for additional file types requires extra dependency packages to be installed.
.. list-table:: Supported Files
:widths: 25 25 25 25
:header-rows: 1
* - Filetype
- Suffix
- Package
- Install Command
* - FITS
- .fits
- `astropy `_
- N/A
* - Yanny files
- .par
- `pydl `_
- ".[gen, par]"
* - HDF5 files
- .h5
- `h5py `_
- ".[gen, hdf]"
To install all extra file dependencies, run ``pip install -e ".[all]"`` during the installation process.
The sdss ``datamodel`` product is a python package for creating, validating, and navigating
datamodels for SDSS data products.
.. toctree::
:maxdepth: 2
:caption: Content
Generating Datamodels
Navigating Datamodels
Designing Datamodels
Manipulating Datamodels
.. toctree::
:maxdepth: 2
:caption: Examples
Generate
Design
.. toctree::
:maxdepth: 1
:caption: Reference
api
CHANGELOG
commands
adding_files