Metadata-Version: 2.1
Name: nectarchain
Version: 0.1.2
Summary: Analysis chain for the CTA MSTN NectarCAM prototype
Author: NectarCAM collaboration
License: BSD-3-Clause
Project-URL: Bug Tracker, https://github.com/cta-observatory/nectarchain/issues
Project-URL: Source Code, https://github.com/cta-observatory/nectarchain
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: BSD License
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Requires-Python: ~=3.8
Description-Content-Type: text/markdown; charset=UTF-8
Requires-Dist: astropy (~=4.2)
Requires-Dist: ctapipe (~=0.12)
Requires-Dist: numpy (~=1.22)
Requires-Dist: protozfits (~=2.0)
Requires-Dist: tables (>=3.7)
Provides-Extra: all
Requires-Dist: pytest ; extra == 'all'
Requires-Dist: setuptools-scm[toml] ; extra == 'all'
Provides-Extra: dev
Requires-Dist: setuptools-scm[toml] ; extra == 'dev'
Provides-Extra: tests
Requires-Dist: pytest ; extra == 'tests'

# nectarchain [![Build Status](https://github.com/cta-observatory/nectarchain/workflows/CI/badge.svg?branch=master)](https://github.com/cta-observatory/nectarchain/actions?query=workflow%3ACI+branch%3Amaster)

Repository for the high level analysis of the NectarCAM data.
The analysis is heavily based on [ctapipe](https://github.com/cta-observatory/ctapipe), adding custom code for NectarCAM calibration.

## Installation

```shell
git clone https://github.com/cta-observatory/nectarchain.git
cd nectarchain
# or conda
mamba env create --name nectarchain --file environment.yml
mamba activate nectarchain
pip install .
```
If you are a developer, better you follow the same conventions as `ctapipe`, as described in https://cta-observatory.github.io/ctapipe/getting_started/index.html#developing-a-new-feature-or-code-change, and `pip`-install `nectarchain` in development (_aka_ editable) mode:

```shell
pip install -e .
```

To enable support for DIRAC within the same environment, do the following after the installation of `nectarchain` described above:
```shell
# or conda
mamba activate nectarchain 
mamba install -c conda-forge dirac-grid
conda env config vars set X509_CERT_DIR=${CONDA_PREFIX}/etc/grid-security/certificates X509_VOMS_DIR=${CONDA_PREFIX}/etc/grid-security/vomsdir X509_VOMSES=${CONDA_PREFIX}/etc/grid-security/vomses
# the following is needed for the environment variables, used for DIRAC configuration, to be available:
mamba deactivate
mamba activate nectarchain
pip install CTADIRAC
# optional:
pip install COMDIRAC
dirac-configure
```

`nectarchain` is currently pinned to `ctapipe` version 0.12.

## Contributing

All contribution are welcome.

Guidelines are the same as [ctapipe's ones](https://cta-observatory.github.io/ctapipe/development/index.html)
See [here](https://cta-observatory.github.io/ctapipe/development/pullrequests.html) how to make a pull request to contribute.


## Report issue / Ask a question

Please use GitHub Issues.
