Metadata-Version: 2.4
Name: optical-background-generator
Version: 1.0.0
Author-email: "S. Davarpanah" <shideh.davarpanah@unige.ch>, "T. Montaruli" <Teresa.Montaruli@unige.ch>
License: BSD 3-Clause License
        
        Copyright (c) 2026, University of Geneva (UNIGE).
        All rights reserved.
        
        Developed by S. Davarpanah.
        
        Project supervision:
        - T. Montaruli
        
        Special thanks:
        - L. Burmistrov
        - M. D'Arco
        
        Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
        
        1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
        
        2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
        
        3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
        
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        
        
Project-URL: Homepage, https://gitlab.com/Shideh0d/optical_background_generator
Project-URL: Repository, https://gitlab.com/Shideh0d/optical_background_generator
Project-URL: Documentation, https://optical-background-generator-263193.gitlab.io/
Project-URL: Citation, https://doi.org/10.5281/zenodo.24109483
Keywords: low-Earth orbit background,high-altitude atmosphere background,optical background,anthropogenic light,moon light,atmospheric transmission,Terzina
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=2.0
Requires-Dist: pandas
Requires-Dist: scipy
Requires-Dist: astropy
Requires-Dist: matplotlib
Requires-Dist: h5py
Requires-Dist: rasterio
Requires-Dist: shapely
Requires-Dist: affine
Requires-Dist: cartopy
Requires-Dist: spiceypy
Requires-Dist: tomli; python_version < "3.11"
Provides-Extra: trigger
Requires-Dist: numba; extra == "trigger"
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx-rtd-theme; extra == "docs"
Requires-Dist: myst-parser; extra == "docs"
Requires-Dist: sphinx-design; extra == "docs"
Requires-Dist: sphinxcontrib-mermaid; extra == "docs"
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Dynamic: license-file

# Optical Background Generator

Simulate the optical background environment for atmospheric Cherenkov telescopes operating on platforms from high altitudes to low-Earth orbit. The package includes artificial night light, direct moonlight, Earth-reflected moonlight and atmosphere-scattered moonlight to a first-degree estimation, with optional solar-elevation calculations.

## Installation

Run the following commands from the project root.
Moon calculations also require the ESA LIME Toolbox. Its `lime` executable must be available on your `PATH`.

### Using pip

Install the released package from PyPI:

```bash
python -m pip install optical-background-generator
```

For development, clone the repository and run the following from the project
root (the folder containing `pyproject.toml`):

```bash
python -m pip install -e .
```

### Using Conda

From the root of the cloned repository, create and activate the environment:

```bash
conda env create -f environment.yml
conda activate optical-background-generator
```

Verify the installation:

```bash
optical-background --help
```

## Authors and license

Developed by **S. Davarpanah** at the University of Geneva (UNIGE).

Project supervision: **T. Montaruli**.

Contributors and special thanks: **L. Burmistrov** and **M. D'Arco**.

This project is released under the BSD 3-Clause License. See the repository `LICENSE` file for the full license text.

## Citation

If you use **Optical Background Generator** in published work, please cite
the companion paper:

> S. Davarpanah, T. Montaruli, et al.,
> *Optical Background Environment from High-Altitude Platforms to Low-Earth Orbit
> for Atmospheric Cherenkov Telescopes* (in preparation).

To identify the software version used in your analysis, please also cite
[Optical Background Generator, version 1.0.0](https://doi.org/10.5281/zenodo.24109483).

If you use this software in your work, we would appreciate hearing about your application and any resulting publications. Please keep us informed at **shideh.davarpanah@unige.ch**.

## Website

[Read the Optical Background Generator documentation](https://optical-background-generator-263193.gitlab.io/).

The HTML documentation is the project website. Build it locally with:

```bash
python -m pip install -e ".[docs]"
sphinx-build -b html docs/source docs/build/html
```

Then open [the documentation website](docs/build/html/index.html) in your browser. This local link works after building the documentation.
