Skip to main content

No project description provided

Project description

ltool

PyPI Python Versions PyPI Downloads Documentation License

Documentation: https://nikolaos-siomos.github.io/ltool/

ltool is a layer detection tool based on the Wavelet Covariance Transform (WCT) for lidar profile analysis.

It provides:

  • A programmatic Python API (get_layers)
  • A standalone CLI (ltool_standalone) for local processing
  • An SCC/server CLI (ltool_scc) for server-side processing using an .ini configuration
  • Export of retrieved layers to NetCDF and generation of diagnostic plots

Installation

From PyPI:

pip install ltool

For development:

pip install -e .

Quick start

Python API

from ltool.__ltool__ import get_layers

layer_obj = get_layers(
    height=height,
    sig=sig,
    sig_err=sig_err,
    method="optimized_prm",
)

print(layer_obj.layers)

Export and plots:

layer_obj.export_to_netcdf(dir_out="/path/to/output", save_netcdf=True)
layer_obj.visualize(dir_out="/path/to/output", save_plots=True)

Standalone CLI

Run on a directory of NetCDF files:

ltool_standalone \
  --input_path /absolute/path/to/data \
  --method optimized_prm \
  --save_plots \
  --save_netcdf

SCC/server CLI

ltool_scc \
  --measurement_id 123456 \
  --config_file /absolute/path/to/ltool.ini

Layer detection methods

The --method option controls how bases/tops are selected. Choices:

  • height_based
  • wct_based
  • snr_based
  • prm_based
  • optimized_wct
  • optimized_snr
  • optimized_prm (default)

See docs/methods/pairing.md for the full explanation.


Documentation (MkDocs)

Serve docs locally:

mkdocs serve

Build static site:

mkdocs build

Project layout

Recommended structure:

.
├── pyproject.toml
├── src/
│   └── ltool/
├── examples/
├── docs/
├── mkdocs.yml
└── .gitlab-ci.yml

Release (PyPI)

Build:

rm -rf dist build *.egg-info
python -m build

Upload:

python -m twine upload dist/*

License

This project is licensed under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE.


Contact

Maintainer: Nikolaos Siomos
LMU
Email: nikolaos.siomos@lmu.de

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ltool-2.0.2.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ltool-2.0.2-py3-none-any.whl (49.8 kB view details)

Uploaded Python 3

File details

Details for the file ltool-2.0.2.tar.gz.

File metadata

  • Download URL: ltool-2.0.2.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for ltool-2.0.2.tar.gz
Algorithm Hash digest
SHA256 5aeebb7074e73f27f8c45c7370accdad939d5ba89e6e8f3a88f29006dbf64f61
MD5 0566186f59320cb3d427ee1fd556b027
BLAKE2b-256 5fd9eb3565d525d6187542596c8e9ada2c6c199b45a1a7f4cfdefd73169ebce5

See more details on using hashes here.

File details

Details for the file ltool-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: ltool-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 49.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for ltool-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e207d77bd7c66e6a8c914ab507a4e7ac61fa81d4de3974a5205bca748cd22c0
MD5 a485022b07630e4b526e5ad2acce17e1
BLAKE2b-256 b45cd7ee3067baa87c1914fba0897275f72c4bceb15e6cc043fa2dbc04a7dc31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page