PyMIPAS_NOxy
MIPAS NOx/NOy calculator tools
Some tools to handle MIPAS level-2 netCDF files, and to combine trace gas species to calculate NOx (= NO + NO2) and NOy (= NO + NO2 + ClONO2 + N2O5 + HNO3 + HNO4) from the single species.
⚠️ This package is in alpha stage, that is, it works mostly, but the interface might still be subject to change.
Install
Requirements
numpy- requiredxarray- required for reading netCDF filesh5netcdf- required for reading netCDF filesscipy- required for the interpolation interfaceclick- required for the command line interfacetoml- required to read the configuration filespytest- optional, for testing
mipas_noxy
An installable pip package called mipas_noxy will soon be available
from the main package repository, it can then be installed with:
$ pip install mipas_noxy
The latest development version can be installed
with pip directly from github
(see https://pip.pypa.io/en/stable/reference/pip_install/#vcs-support
and https://pip.pypa.io/en/stable/reference/pip_install/#git):
$ pip install [-e] git+https://github.com/st-bender/pymipas_noxy.git
The other option is to use a local clone:
$ git clone https://github.com/st-bender/pymipas_noxy.git
$ cd pymipas_noxy
and then using pip (optionally using -e, see
https://pip.pypa.io/en/stable/reference/pip_install/#install-editable):
$ pip install [-e] .
or using setup.py:
$ python setup.py install
Optionally, test the correct function of the module with
$ py.test [-v]
or even including the doctests in this document:
$ py.test [-v] --doctest-glob='*.md'
Usage
The python module itself is named mipas_noxy and is imported as usual.
All functions should be numpy-compatible and work with scalars
and appropriately shaped arrays.
>>> import mipas_noxy as moxy
Opening MIPAS level-2 netcdf files
The MIPAS level-2 netcdf files contain 2-D altitude coordinates which
xarray can currently not deal with nicely. This module provide a convenience
function to read those files:
>>> from mipas_noxy import open_mipas_l2
>>> open_mipas_l2("/path/to/mipas-level2-file.nc")
It also contains one that can combine multiple files into one data set, taking a glob-string or list of files:
>>> from mipas_noxy import open_mfmipas_l2
>>> open_mfmipas_l2("/path/to/mipas-level2-files*.nc")
Command line interface
A command line interface to combine different species to "NOx" or "NOy"
(and possibly others)
is available as mipas_noxy <args>, or using python's -m switch as
python -m mipas_noxy <args>.
The argument is basically the configuration file for processing,
more command line options are listed by passing
-h or --help: mipas_noxy -h.
The processing is configured through a toml file,
currently available options are described in the
example configuration file.
Basic class and method documentation is accessible via pydoc:
$ pydoc mipas_noxy
License
This python interface is free software: you can redistribute it or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 (GPLv2), see local copy or online version.
Metadata
Release files for mipas-noxy 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mipas_noxy-0.0.1.tar.gz | 21.5 kB | Without provenance | Details for mipas_noxy-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mipas_noxy-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for mipas_noxy-0.0.1-py2.py3-none-any.whl |
Total release size: 41.5 kB
Release files / mipas_noxy-0.0.1.tar.gz
| Download URL | mipas_noxy-0.0.1.tar.gz |
|---|---|
| Size | 21.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8dac354ca1c00e22788bbfdaa81df91a304cdc5ed9eae08dec0e377062b2b4a
|
|
BLAKE2b-256 checksum How to use checksums |
6cec7056b98bc358abd8571faf5b43f5c1a2ce5192128c68223a8aca5913279a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / mipas_noxy-0.0.1-py2.py3-none-any.whl
| Download URL | mipas_noxy-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1ca266e67dd2743d8028e120662457aeb3bef828181d97cf3539a8ae355345ea
|
|
BLAKE2b-256 checksum How to use checksums |
1ba9add8fbd7f48e8260dd090422804c57df81bdd7fb661da1702153f2bfddae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for mipas-noxy 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.