Read-only mirror of https://github.com/MeteoSwiss/mwr_raw2l1 — MeteoSwiss. Issues & pull requests at the source.
  • nesC 98.8%
  • Python 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-10-20 16:58:13 +02:00
.github/workflows Change CI workflow to use master branch 2025-09-25 13:15:01 +02:00
docs extend documentation to config file options 2023-07-28 17:32:48 +02:00
documents update config to new L1 format 2022-06-17 21:39:54 +02:00
mwr_raw2l1 Merge branch 'master' into meteoswiss-dev 2025-09-25 13:13:04 +02:00
tests corrected ref output for single obs 2025-08-21 17:37:23 +02:00
utils flake8 2022-08-12 17:27:30 +02:00
.flake8 clean up 2022-01-07 11:09:27 +01:00
.gitignore ignoring vscode settings 2025-07-31 12:17:31 +02:00
.readthedocs.yaml let readthedocs pass even in presence of warnings (default) 2022-01-14 16:42:49 +01:00
AUTHORS improve documentation and add testers to author list 2022-08-12 16:28:18 +02:00
LICENSE add license 2021-08-06 11:31:03 +02:00
poetry.lock updated lock file 2025-10-20 16:58:13 +02:00
pyproject.toml Merge branch 'master' into meteoswiss-dev 2025-09-25 13:13:04 +02:00
pyproject_py368.toml updated dependencies for the hub 2025-07-31 14:25:47 +02:00
README.md bugfix for situations with files containing one single obs 2023-07-25 06:47:46 +02:00

CI Documentation Status

mwr_raw2l1

This repository contains tools for reading brightness temperatures as well as housekeeping and auxiliary data from the most prominent types of operational ground-based K- and V-band microwave radiometers for humidity and temperature profiling. The read-in data can be output to NetCDF files. Each instrument needs an own config file. Additionally, external config files for the output format and the quality flags can be specified. Default configurations for producing a NetCDF according to the definitions for L1C01 the common E-PROFILE/ACTRIS and defining the quality flag settings are included in the repository.

The operational hub of E-PROFILE uses this package to generate the near real-time NetCDF messages from its network of ground-based microwave radiometers.

Installation

from pypi

mwr_raw2l1 is directly installable through pip. To install the latest released version and its dependencies do

pip install mwr_raw2l1

for more colorful logging you may instead want to do

pip install mwr_raw2l1[colorlog]

from git

To install mwr_raw2l1 from the source code do the following

  1. clone this repository

    git clone https://github.com/MeteoSwiss/mwr_raw2l1.git

  2. go into the package directory and install

    • with pip (>=21.3)

      • pip install .

      • or for including the colorful logging

        pip install .[colorlog]

    • with poetry

      • poetry install

      • or for including the colorful logging

        poetry install -E colorlog

Basic usage

After installing the package you get a command-line entry point called mwr_raw2l1.

Basic usage:

mwr_raw2l1 CONF_INST

For more info on calling options:

mwr_raw2l1 -h

Advanced usage

besides using the package as a black-box with the command line interface, you might also want to choose to use parts of the code in python (e.g just reading in data for later usage, transform scans to time series, write E-PROFILE/ACTRIS compliatn NetCDF files, etc.). For these applications please refer to the official documentation.

For a general overview, here is what the main routine does:

  • read in raw data files with the reader defined in the instrument's config file
  • generate an instance of the Measurement class. This class combines read-in data from datafile inputs with config file inputs, converts scans to time series if needed and applies quality checks to set the qualtiy flag.
  • output the data to a NetCDF file according to the definitions in the file format config

Documentation

The official documentation is available here

License

BSD 3-Clause