Metadata-Version: 2.4
Name: atlite
Version: 0.8.0
Summary: Library for fetching and converting weather data to power systems data
Author-email: Contributors to atlite <jonas.hoersch@posteo.de>
License: MIT License
        
        Copyright (c) Contributors to atlite
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/PyPSA/atlite
Project-URL: Source, https://github.com/PyPSA/atlite
Project-URL: Documentation, https://atlite.readthedocs.io/en/latest/
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: pandas>=0.25
Requires-Dist: bottleneck
Requires-Dist: numexpr
Requires-Dist: xarray>=2024.03.0
Requires-Dist: netcdf4>=1.6.0
Requires-Dist: dask>=2021.10.0
Requires-Dist: toolz
Requires-Dist: requests
Requires-Dist: pyyaml
Requires-Dist: rasterio!=1.4.0,!=1.4.1
Requires-Dist: shapely
Requires-Dist: progressbar2
Requires-Dist: tqdm
Requires-Dist: pyproj>=2
Requires-Dist: geopandas>=0.10.0
Requires-Dist: cdsapi>=0.7.4
Requires-Dist: cfgrib>=0.9.15.0
Requires-Dist: h5netcdf>=1.6.1
Requires-Dist: zarr>=3
Requires-Dist: obstore>=0.9
Requires-Dist: eccodeslib>=2.46.2.19; platform_system != "Windows"
Provides-Extra: dev
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: matplotlib; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: types-PyYAML; extra == "dev"
Requires-Dist: types-requests; extra == "dev"
Provides-Extra: docs
Requires-Dist: mkdocs-material; extra == "docs"
Requires-Dist: mkdocstrings-python; extra == "docs"
Requires-Dist: mkdocs-jupyter; extra == "docs"
Requires-Dist: pillow; extra == "docs"
Dynamic: license-file

<!--
SPDX-FileCopyrightText: Contributors to atlite <https://github.com/pypsa/atlite>

SPDX-License-Identifier: CC-BY-4.0
-->

# atlite

[![PyPI version](https://img.shields.io/pypi/v/atlite.svg)](https://pypi.python.org/pypi/atlite)
[![Conda version](https://img.shields.io/conda/vn/conda-forge/atlite.svg)](https://anaconda.org/conda-forge/atlite)
[![Documentation Status](https://readthedocs.org/projects/atlite/badge/?version=master)](https://atlite.readthedocs.io/en/master/?badge=master)
[![Tests](https://github.com/PyPSA/atlite/actions/workflows/test.yaml/badge.svg)](https://github.com/PyPSA/atlite/actions/workflows/test.yaml)
[![codecov](https://codecov.io/gh/PyPSA/atlite/branch/master/graph/badge.svg?token=TEJ16CMIHJ)](https://codecov.io/gh/PyPSA/atlite)
[![License](https://img.shields.io/pypi/l/atlite.svg)](LICENSES/MIT.txt)
[![REUSE status](https://api.reuse.software/badge/github.com/pypsa/atlite)](https://api.reuse.software/info/github.com/pypsa/atlite)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/PyPSA/atlite/master.svg)](https://results.pre-commit.ci/latest/github/PyPSA/atlite/master)
[![JOSS](https://joss.theoj.org/papers/10.21105/joss.03294/status.svg)](https://doi.org/10.21105/joss.03294)
[![Discord](https://img.shields.io/discord/911692131440148490?logo=discord)](https://discord.gg/AnuJBk23FU)

atlite converts weather data into energy system data. It turns wind speed, solar
radiation, temperature and runoff into time series of wind and solar power, hydro
inflow, heating demand and more. atlite is free software, built on
[xarray](https://docs.xarray.dev/en/stable/) and
[dask](https://www.dask.org/). It processes large weather datasets in chunks
and therefore needs little memory.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/PyPSA/atlite/master/docs/assets/images/workflow_chart-dark.svg">
  <img alt="How atlite works: 1 weather data, 2 cutout, 3 conversion per grid cell, 4 aggregation to regions" src="https://raw.githubusercontent.com/PyPSA/atlite/master/docs/assets/images/workflow_chart.svg">
</picture>

A cutout can combine several datasets, for example ERA5 with the
higher-resolution solar radiation of SARAH. Before aggregation, atlite can also
exclude land that is not available, such as protected areas, to calculate
potentials.

## Example

This example downloads ERA5 data for Germany in January 2023. It then calculates
hourly wind capacity factors for each region in a file of region shapes:

```python
import atlite
import geopandas as gpd

cutout = atlite.Cutout(
    path="germany-2023-01.nc",
    module="era5-edh",
    x=slice(5.5, 15.5),
    y=slice(47, 55.5),
    time="2023-01",
)
cutout.prepare()

regions = gpd.read_file("regions.geojson").set_index("name")
wind = cutout.wind(
    turbine="Vestas_V112_3MW",
    shapes=regions,
    per_unit=True,
    aggregate_time=None,
)
```

The result is an `xarray.DataArray` with one time series per region. To download
ERA5 data, you need a free account; see
[ERA5 credentials](https://atlite.readthedocs.io/en/latest/home/installation/#era5-credentials).

## Installation

atlite requires Python 3.11 or newer. Install it with `conda` from
[conda-forge](https://anaconda.org/conda-forge/atlite):

```shell
conda install -c conda-forge atlite
```

or with `pip` from [PyPI](https://pypi.org/project/atlite/):

```shell
pip install atlite
```

To install the latest development version from GitHub:

```shell
pip install git+https://github.com/PyPSA/atlite.git
```

## Documentation

The [documentation](https://atlite.readthedocs.io/en/latest/) contains an
[introduction](https://atlite.readthedocs.io/en/latest/home/introduction/),
[examples](https://atlite.readthedocs.io/en/latest/examples/examples/) as
Jupyter notebooks and the
[API reference](https://atlite.readthedocs.io/en/latest/api/cutout/).

## Support and contributing

- To ask questions and talk to other users, join the
  [Discord server](https://discord.gg/AnuJBk23FU).
- To report bugs or request features, use the
  [issue tracker](https://github.com/PyPSA/atlite/issues).
- We welcome contributions. Read the
  [contributing guidelines](https://atlite.readthedocs.io/en/latest/contributing/contributing/)
  and open an issue or a pull request.

For the next development goals, see the
[roadmap](https://github.com/orgs/PyPSA/projects/12/views/1) and the open
[enhancements](https://github.com/PyPSA/atlite/issues/?q=is%3Aissue%20state%3Aopen%20label%3A%22type%3A%20enhancement%22).

## Citing

If you use atlite in your research, please cite the
[paper in the Journal of Open Source Software](https://doi.org/10.21105/joss.03294).
The [citing page](https://atlite.readthedocs.io/en/latest/home/citing/) has
the BibTeX entry.

## Origin

atlite began as a lightweight version of the Aarhus University RE Atlas
([Andresen et al., 2015](https://doi.org/10.1016/j.energy.2015.09.071)). The
Renewable Energy Group at [FIAS](https://fias.institute/) developed it for the
[CoNDyNet project (archived)](https://web.archive.org/web/20210420004051/http://condynet.de/),
funded by the [German Federal Ministry of Education and Research (BMBF)](https://www.bmftr.bund.de/EN/)
as part of the
[Stromnetze Research Initiative (archived)](https://web.archive.org/web/20190127192900/http://forschung-stromnetze.info/projekte/grundlagen-und-konzepte-fuer-effiziente-dezentrale-stromnetze/).
Today, volunteers from different institutions maintain atlite; see the
[contributors](https://atlite.readthedocs.io/en/latest/contributing/contributors/).

atlite connects meteorology and energy system modelling, two communities that
have long worked apart. Models such as [PyPSA-Eur](https://github.com/PyPSA/pypsa-eur)
use its time series.

## License

Copyright (C) Contributors to atlite <https://github.com/pypsa/atlite>

- The source code is licensed under [MIT](LICENSES/MIT.txt).
- The documentation is licensed under [CC-BY-4.0](LICENSES/CC-BY-4.0.txt).
- Configuration and data files are mostly licensed under [CC0-1.0](LICENSES/CC0-1.0.txt).

See the individual files for details.
