Skip to main content

Data cube for handling atmospheric observations of profiling remote sensing instruments.

Project description

pyLARDA v3

DOI PyPI version

pyLARDA for accessing and analysing ground based remote sensing data. It tries to simplify following tasks:

  • finding netcdf files in a complex folder structure
  • loading data from differently formatted netcdfs
  • stitching data from consecutive files together
  • simplify common plotting tasks

Documentation is available at larda-doc

Quick Setup (pypi)

requires python3.8 or newer

python3 -m venv larda-env
source larda-env/bin/activate

python3 -m pip install pyLARDA

Requirements

The pyLARDA remote backend is only targeted on unix operating system.

Building the documentation requires some more dependencies:

sphinx
recommonmark
sphinx_rtd_theme

Setup (github)

For development, local data sources and the backend, pyLARDA module can be installed with:

python3 -m venv larda-env
source larda-env/bin/activate

mkdir larda3
cd larda3
git clone https://github.com/lacros-tropos/larda.git
cd larda

python3 -m pip install --editable .

Depending on your datasource of choice:

remote

You just need to know the link to the backend backend of choice and may move to Quickstart.

local

For local data it is necessary to include the source in a certain directory structure. For the setup of the config files consult the Guide to config-files.

├── larda        # github managed source code
│   ├── docs
│   ├── examples
│   ├── ListCollector.py
│   ├── pyLARDA  # actual python module
│   ├── README.md
│   ├── requirements.txt
│   └── run_docs.sh
├── larda-cfg  # configuration files
│   ├── campaigns.toml
│   ├── [single campaign].toml
│   └── [single campaign].toml
├── larda-connectordump
│   └── [auto generated subfolder for each campaign]
├── larda-description
│   ├── [...].rst
└── larda-doc           # folder if you want to generate the docs
    └── ... 

Quickstart

Make sure that the module is available at your pythonpath when in doubt use sys.path.append('dir').

import pyLARDA

link_to_backend = 'http://...' 
# or use pyLARDA.LARDA('local')
larda = pyLARDA.LARDA('remote', uri=link_to_backend)
print('available campaigns', larda.campaign_list)
larda.connect('campaign_name')
MIRA_Zg = larda.read("MIRA","Zg", [dt_begin, dt_end], [0, 4000])
fig, ax = pyLARDA.Transformations.plot_timeheight2
    (MIRA_Zg, range_interval=[500, 3000], z_converter='lin2z')
fig.savefig('MIRA_Z.png', dpi=250)

For more examples refer to the scripts in the examples directory.

Architecture

overview on the structure

Documentation

An online version of the documentation is available at https://lacros-tropos.github.io/larda-doc/. For building simply run .\run_docs.sh, when the additinal libraries (sphinx, recommonmark and sphinx_rtd_theme are available; see above).

History

This version of the LACROS research data analyser (LARDA) is based on two prior versions in C and python2 respectively. Major changes are the migration to python3, netcdf4 and the inclusion of radar Doppler spectra.

License

Copyright 2024, pyLARDA-dev-team (Johannes Bühl, Martin Radenz, Willi Schimmel, Teresa Vogl, Moritz Lochmann, Johannes Röttenbacher, Andi Klamt)

MIT License For details see the LICENSE file.

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

pylarda-3.3.8.tar.gz (6.6 MB view details)

Uploaded Source

Built Distribution

pyLARDA-3.3.8-py3-none-any.whl (5.5 MB view details)

Uploaded Python 3

File details

Details for the file pylarda-3.3.8.tar.gz.

File metadata

  • Download URL: pylarda-3.3.8.tar.gz
  • Upload date:
  • Size: 6.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0rc1

File hashes

Hashes for pylarda-3.3.8.tar.gz
Algorithm Hash digest
SHA256 0c871dc8ef57ace5b34b70d38953a6561c652910d7052a092164eaf0ba5a7513
MD5 760e89b623d550497f03ff496bd59b43
BLAKE2b-256 0d5083dddf11969e0e6010597e889f0ccc0f2cd2339fa94b9c392cedff8f3f40

See more details on using hashes here.

Provenance

File details

Details for the file pyLARDA-3.3.8-py3-none-any.whl.

File metadata

  • Download URL: pyLARDA-3.3.8-py3-none-any.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0rc1

File hashes

Hashes for pyLARDA-3.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e848948d8bcc796d19e2293e8e47e8ab4e685bf0b9f1fc562a188242dcdc462e
MD5 76bef296a4c06aafcd1b1d8b493b198b
BLAKE2b-256 cb878dc5eb12a000165e04990f65c6fc822025208bd2a37a04c53a096dd8191d

See more details on using hashes here.

Provenance

Supported by

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