Metadata-Version: 2.4
Name: atlas_actris
Version: 1.3.0
Author-email: Nikolaos Siomos <nikolaos.siomos@lmu.de>, Livio Belegante <livio@inoe.ro>, Georgia Peletidou <gpeletid@auth.gr>, Peristera Paschou <pepaschou@noa.gr>, Håvard Buholdt <buholdt@tropos.de>
License: AGPL-3.0-or-later
Project-URL: Homepage, https://github.com/nikolaos-siomos/ATLAS
Project-URL: Issues, https://github.com/nikolaos-siomos/ATLAS/issues
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: OS Independent
Requires-Python: <3.14,>=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy<3,>=1.26.4; python_version < "3.13"
Requires-Dist: numpy<3,>=2.1.3; python_version >= "3.13"
Requires-Dist: scipy<2,>=1.13.0; python_version < "3.13"
Requires-Dist: scipy<2,>=1.14.1; python_version >= "3.13"
Requires-Dist: pandas<3,>=2.2.0
Requires-Dist: xarray<2026,>=2024.7.0
Requires-Dist: netCDF4<2,>=1.6.3
Requires-Dist: h5py<4,>=3.10.0
Requires-Dist: h5netcdf<2,>=1.3
Requires-Dist: dask<2026,>=2024.8.0; python_version < "3.13"
Requires-Dist: dask<2026,>=2024.12.0; python_version >= "3.13"
Requires-Dist: zarr<3,>=2.18.0
Requires-Dist: arc-actris<2,>=1.1.0
Requires-Dist: requests<3,>=2.31.0
Requires-Dist: matplotlib<4,>=3.8.0
Requires-Dist: Pillow<12,>=10.0.0
Requires-Dist: ltool>=2.0.6
Requires-Dist: panel<1.5,>=1.4; python_version < "3.10"
Requires-Dist: panel<2,>=1.5; python_version >= "3.10"
Requires-Dist: hvplot<0.12,>=0.11; python_version < "3.10"
Requires-Dist: hvplot<0.13,>=0.12; python_version >= "3.10"
Requires-Dist: holoviews<1.22,>=1.19; python_version < "3.10"
Requires-Dist: holoviews<2,>=1.22; python_version >= "3.10"
Requires-Dist: python-docx<2,>=1.1.0
Provides-Extra: docs
Requires-Dist: mkdocs<2.0,>=1.5; extra == "docs"
Requires-Dist: mkdocs-material<10,>=9; extra == "docs"
Provides-Extra: dev
Requires-Dist: pytest<9,>=8; extra == "dev"
Dynamic: license-file

# ATLAS ACTRIS

**[Read the ATLAS documentation](https://nikolaos-siomos.github.io/ATLAS/)** — installation, command-line tools, and INI file references.

[![Python](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue)](https://www.python.org/)
[![PyPI version](https://img.shields.io/pypi/v/atlas-actris.svg)](https://pypi.org/project/atlas-actris/)
[![Development status](https://img.shields.io/badge/status-development-orange)](https://github.com/nikolaos-siomos/atlas_dev)
[![Tests](https://github.com/nikolaos-siomos/atlas_dev/actions/workflows/tests.yml/badge.svg)](https://github.com/nikolaos-siomos/atlas_dev/actions/workflows/tests.yml)
[![License](https://img.shields.io/badge/license-see%20LICENSE-lightgrey)](LICENSE)
Automated Lidar Analysis Software (ATLAS) for lidar data processing, visualization, and quality-assurance workflows.

ATLAS is intended for users involved in ACTRIS aerosol high-power lidar (AHL) quality-assurance activities. The primary users are the ACTRIS CARS group, who use ATLAS for the evaluation of quality-assurance tests of AHL systems, and National Facility PIs, who use ATLAS to check and monitor the status of their systems.


## Requirements

ATLAS currently supports Python **3.9, 3.10, 3.11, 3.12, and 3.13**.

The package is tested with a bundled smoke-test dataset through `pytest` and GitHub Actions. The test suite checks that the command-line workflow can run to completion and produce the expected plots, reports, and ASCII outputs.

## Installation for users
Create and activate a Python environment. For example, using conda or miniforge:

```bash
conda create -n atlas_box python=3.13 pip
conda activate atlas_box
```

Install ATLAS through PyPI by typing the following command inside the active environment:

```bash
pip install atlas-actris
```

## Installation for developers
Create and activate a Python environment. For example, using conda or miniforge:

```bash
conda create -n atlas_box python=3.13 pip
conda activate atlas_box
```

Clone or just download and extract the repository:

```bash
git clone <repository-url>
```

Enter the top level of the cloned/extracted project folder (the folder name can be different than in the example).
```bash
cd atlas_dev
```

Install ATLAS locally by typing the following command inside the project folder:

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

This installs the package and exposes the `atlas` command in the active environment. Using the -e option keeps the source tree editable while working with ATLAS locally.

## Minimal usage
Activate the Python environment where ATLAS is installed. For example, using conda or miniforge:

```bash
conda activate atlas_box
```

Run ATLAS from the command line by providing the path to the initialization file:

```bash
atlas -i /path/to/call_atlas.ini
```

or equivalently:

```bash
atlas --ini_file /path/to/call_atlas.ini
```

To check the available command-line options type:

```bash
atlas -h
```

ATLAS expects an initialization file that points to the parent folder (input lidar data), configuration file (channel/system configuration), settings file (QA test options), radiosonde or atmospheric input, and output folder where files are exported. Detailed configuration and settings documentation is provided in the MkDocs documentation.

For command-line execution, the `atlas` entry point uses a non-interactive plotting backend by default, which is suitable for terminal runs and automated tests. IDE workflows can still use the plotting backend configured in the active environment.

## Run ATLAS from an IDE
It is also possible to run atlas by opening the following directly in an IDE (e.g. Spyder):

```text
src/atlas_actris/__call_atlas_interactive__.py
```
Please make sure the IDE uses the same Python environment where ATLAS was installed.

## Smoke testing

The repository includes a bundled smoke-test dataset in `testing_pack/`. This test is intended to confirm that the complete ATLAS command-line workflow still works after code, configuration, or dependency changes.

Run the smoke test directly with:

```bash
atlas-smoke-test testing_pack
```

Alternatively, run the portable test script directly:

```bash
python testing_pack/run_test.py
```

The smoke test:

- removes previous generated analysis/cache outputs,
- runs ATLAS with the bundled initialization file,
- automatically answers the two terminal prompts used during the test run,
- checks that plots, reports, and ASCII files were created.

Generated outputs are written under:

```text
testing_pack/analysis/
```

This folder is ignored by Git and should not be committed.

## Running tests with pytest

Install the development dependencies first:

```bash
python -m pip install -e ".[dev]"
```

Then run the integration test:

```bash
python -m pytest -q tests/test_atlas_integration.py
```

The pytest integration test calls the smoke-test command and verifies that the expected output files are produced.

## Local documentation

The documentation is published at [nikolaos-siomos.github.io/ATLAS](https://nikolaos-siomos.github.io/ATLAS/). You can also preview changes locally with the same MkDocs configuration used by the deployment workflow.

The documentation source files are in:

```text
docs/
```

The automatically generated reference pages are in:

```text
docs/generated/
```

These generated pages document the initialization, configuration, and settings INI files. They are generated from the parser schemas and template flavor files, so they should not be edited manually.

### Simple local documentation check

From a fresh clone or extracted copy of the repository, create and activate an environment:

```bash
conda create -n atlas_box python=3.13 pip
conda activate atlas_box
```

Enter the repository root, meaning the folder that contains `mkdocs.yml`:

```bash
cd atlas_dev
```

Install ATLAS with the documentation dependencies:

```bash
python -m pip install -e ".[docs]"
```

Start the local documentation server:

```bash
mkdocs serve
```

Open the local URL printed in the terminal. Usually it is:

```text
http://127.0.0.1:8000/
```

Keep the terminal open while reading the documentation. When you edit a documentation file, MkDocs usually rebuilds the page automatically and the browser can be refreshed.

Stop the documentation server with:

```text
Ctrl+C
```

