|AnacondaCloud| |CodeCovStatus| |Build| |Docs|
|CondaDownloads| |PyPiDownloads| |Zenodo| |ARM|
.. |AnacondaCloud| image:: https://anaconda.org/conda-forge/act-atmos/badges/version.svg
:target: https://anaconda.org/conda-forge/act-atmos
.. |CondaDownloads| image:: https://anaconda.org/conda-forge/act-atmos/badges/downloads.svg
:target: https://anaconda.org/conda-forge/act-atmos/files
.. |PyPiDownloads| image:: https://img.shields.io/pypi/dm/act_atmos.svg
:target: https://pypi.org/project/act-atmos/
.. |Zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3855537.svg
:target: https://doi.org/10.5281/zenodo.3855537
.. |CodeCovStatus| image:: https://codecov.io/gh/ARM-DOE/ACT/branch/main/graph/badge.svg
:target: https://codecov.io/gh/ARM-DOE/ACT
.. |ARM| image:: https://img.shields.io/badge/Sponsor-ARM-blue.svg?colorA=00c1de&colorB=00539c
:target: https://www.arm.gov/
.. |Docs| image:: https://github.com/ARM-DOE/ACT/actions/workflows/build-docs.yml/badge.svg
:target: https://github.com/ARM-DOE/ACT/actions/workflows/build-docs.yml
.. |Build| image:: https://github.com/ARM-DOE/ACT/actions/workflows/ci.yml/badge.svg
:target: https://github.com/ARM-DOE/ACT/actions/workflows/ci.yml
The Atmospheric data Community Toolkit (ACT) is an open source Python toolkit for working with atmospheric time-series datasets of varying dimensions. The toolkit has functions for every part of the scientific process; discovery, IO, quality control, corrections, retrievals, visualization, and analysis. It is a community platform for sharing code with the goal of reducing duplication of effort and better connecting the science community with programs such as the Atmospheric Radiation Measurement (ARM) User Facility <http://www.arm.gov>
. Overarching development goals will be updated on a regular basis as part of the Roadmap <https://github.com/AdamTheisen/ACT/blob/master/guides/ACT_Roadmap_2.pdf>
.
|act|
.. |act| image:: ./docs/source/act_plots.png
Please report any issues or feature requests by sumitting an Issue <https://github.com/ARM-DOE/ACT/issues>
. Additionally, our discussions boards <https://github.com/ARM-DOE/ACT/discussions>
are open for ideas, general discussions or questions, and show and tell!
Version 2.0
ACT now has a version 2.0 release. This release contains many function
naming changes such as IO and Discovery module function naming changes. To
prepare for this release, a `v2.0 <https://arm-doe.github.io/ACT/userguide/GUIDE_V2.html>`_
has been provided that explains the changes and how to work with the new syntax.
The new release is available on both PyPI and conda-forge.
Please report any bugs of the 2.0 release to the Issue Tracker mentioned in
the Important Links section below.
Important Links
Citing
If you use ACT to prepare a publication, please cite the DOI listed in the badge above, which is updated with every version release to ensure that contributors get appropriate credit. DOI is provided through Zenodo.
Dependencies
xarray <https://xarray.pydata.org/en/stable/>
_NumPy <https://www.numpy.org/>
_SciPy <https://www.scipy.org/>
_matplotlib <https://matplotlib.org/>
_skyfield <https://rhodesmill.org/skyfield/>
_pandas <https://pandas.pydata.org/>
_dask <https://dask.org/>
_Pint <https://pint.readthedocs.io/en/0.9/>
_PyProj <https://pyproj4.github.io/pyproj/stable/>
_Six <https://pypi.org/project/six/>
_Requests <https://2.python-requests.org/en/master/>
_MetPy <https://unidata.github.io/MetPy/latest/index.html>
_ffspec <https://filesystem-spec.readthedocs.io/en/latest/>
_lazy_loader <https://scientific-python.org/specs/spec-0001/>
_cmweather <https://cmweather.readthedocs.io/en/latest/>
_
Optional Dependencies
* `MPL2NC <https://github.com/peterkuma/mpl2nc>`_ Reading binary MPL data.
* `Cartopy <https://scitools.org.uk/cartopy/docs/latest/>`_ Mapping and geoplots
* `Py-ART <https://arm-doe.github.io/pyart/>`_ Reading radar files, plotting and corrections
* `scikit-posthocs <https://scikit-posthocs.readthedocs.io/en/latest/>`_ Using interquartile range or generalized Extreme Studentized Deviate quality control tests
* `icartt <https://mbees.med.uni-augsburg.de/docs/icartt/2.0.0/>`_ icartt is an ICARTT file format reader and writer for Python
* `PySP2 <https://arm-doe.github.io/PySP2/>`_ PySP2 is a python package for reading and processing Single Particle Soot Photometer (SP2) datasets.
* `MoviePy <https://zulko.github.io/moviepy/>`_ MoviePy is a python package for creating movies from images
Installation
~~~~~~~~~~~~
ACT can be installed a few different ways. One way is to install using pip.
When installing with pip, the ACT dependencies found in
`requirements.txt <https://github.com/ARM-DOE/ACT/blob/master/requirements.txt>`_ will also be installed. To install using pip::
pip install act-atmos
The easiest method for installing ACT is to use the conda packages from
the latest release. To do this you must download and install
`Anaconda <https://www.anaconda.com/download/#>`_ or
`Miniconda <https://conda.io/miniconda.html>`_.
With Anaconda or Miniconda install, it is recommended to create a new conda
environment when using ACT or even other packages. To create a new
environment based on the `environment.yml <https://github.com/ARM-DOE/ACT/blob/master/environment.yml>`_::
conda env create -f environment.yml
Or for a basic environment and downloading optional dependencies as needed::
conda create -n act_env -c conda-forge python=3.12 act-atmos
Basic command in a terminal or command prompt to install the latest version of
ACT::
conda install -c conda-forge act-atmos
To update an older version of ACT to the latest release use::
conda update -c conda-forge act-atmos
If you are using mamba::
mamba install -c conda-forge act-atmos
If you do not wish to use Anaconda or Miniconda as a Python environment or want
to use the latest, unreleased version of ACT see the section below on
**Installing from source**.
Installing from Source
Installing ACT from source is the only way to get the latest updates and
enhancement to the software that have no yet made it into a release.
The latest source code for ACT can be obtained from the GitHub repository,
https://github.com/ARM-DOE/ACT. Either download and unpack the
zip file <https://github.com/ARM-DOE/ACT/archive/master.zip>
_ of
the source code or use git to checkout the repository::
git clone https://github.com/ARM-DOE/ACT.git
Once you have the directory locally, you can install ACT in
development mode using::
pip install -e .
If you want to install the repository directly, you can use::
pip install git+https://github.com/ARM-DOE/ACT.git
Contributing
ACT is an open source, community software project. Contributions to the
package are welcomed from all users.
The latest source code can be obtained with the command::
git clone https://github.com/ARM-DOE/ACT.git
If you are planning on making changes that you would like included in ACT,
forking the repository is highly recommended.
We welcome contributions for all uses of ACT, provided the code can be
distributed under the BSD 3-clause license. A copy of this license is
available in the **LICENSE.txt** file in this directory. For more on
contributing, see the `contributor's guide. <https://github.com/ARM-DOE/ACT/blob/master/CONTRIBUTING.rst>`_
Testing
~~~~~~~
For testing, we use pytest. To install pytest::
$ conda install -c conda-forge pytest
And for matplotlib image testing with pytest::
$ conda install -c conda-forge pytest-mpl
After installation, you can launch the test suite from outside the
source directory (you will need to have pytest installed and for the mpl
argument need pytest-mpl)::
$ pytest --mpl --pyargs act
In-place installs can be tested using the `pytest` command from within
the source directory.