Code Monkey home page Code Monkey logo

larda's Introduction

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

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

pip install setuptools -U
pip install cython numpy==1.21
pip install pyLARDA

Requirements

Currently pyLARDA is only targeted on unix operating system.

numpy==1.21
scipy>=1.6
netCDF4>=1.4.2
msgpack
cython>=0.29.13
xarray
matplotlib>=3.0.2
requests>=2.21
toml>=0.10.0
tqdm>=4.36.1
numba>=0.45.1
# and for the documentation
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
pip3 install -r requirements.txt

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

python3 setup.py install

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 2022, pyLARDA-dev-team (Johannes Bühl, Martin Radenz, Willi Schimmel, Teresa Vogl, Moritz Lochmann, Johannes Röttenbacher)

MIT License For details see the LICENSE file.

larda's People

Contributors

karljohnsonnn avatar ti-vo avatar martin-rdz avatar jroettenbacher avatar molochmann avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.