Skip to main content

Python utilities for the LAR model (Land Atmospheric Reservoir)

Project description

PyLAR

Python utilities for the LAR model

version downloads license implementation pythonver DOI DOI

PyLAR is a python package and datasets intended to test and use the LAR (Land-Atmospheric and Reservoir) model. The LAR model is intended to describe the changes in the water storage in large river basin around the world, including atmospheric processes as a critical component of the basin water budget.

Conceptual illustration of LAR

For the science behind the LAR model please refer to the following paper:

Juan F. Salazar, Rubén D. Molina, Jorge I. Zuluaga, and Jesus D. Gomez-Velez (2024), Wetting and drying trends in the land–atmosphere reservoir of large basins around the world, Hydrology and Earth System Sciences, in publication (2024), doi.org/10.5194/hess-2023-172.

All the notebooks and data required to reproduce the results of this paper, and other papers produced by our group, are available in the dev directory in this repository.

Downloading and Installing PyLAR

PyLAR is available at the Python package index and can be installed using:

$ sudo pip install ipylar

as usual this command will install all dependencies and download some useful data, scripts and constants.

NOTE: If you don't have access to sudo, you can install PyLAR in your local environmen (usually at ~/.local/). In that case you need to add to your PATH environmental variable the location of the local python installation. Add to ~/.bashrc the line export PATH=$HOME/.local/bin:$PATH

Quickstart

To start using PyLAR, you should first obtain data for a large river basin. We have provided with the package a dataset especially prepared for the Amazonas Basin we will use in this quickstart.

You must start by importing the package:

import ipylar as lar

Create a basin:

amazonas = lar.Basin(key='amazonas',name='Amazonas')

Once created, you should read the timeseries for the basin and load it into the pandas dataframe amazonas.data. The present version of PyLAR includes sample data. You may read the sample data using:

amazonas.read_basin_data()

Once the data is loaded you can perform operations on the data, for instance, you can plot it:

fig = amazonas.plot_basin_series()

Amazonas LAR time-series

Tutorials

We have prepared a set of basic tutorials for illustrating the usage of some of the tools including in PyLAR. The tutorials can be ran in Google Colab.

What's new

For a detailed list of the newest characteristics of the code see the file What's new.


This package has been designed and written by Jorge I. Zuluaga, Ruben D. Molina, Juan F. Salazar and Jesus D. Gomez-Velez (C) 2024

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipylar-1.0.5.tar.gz (447.8 kB view details)

Uploaded Source

Built Distribution

ipylar-1.0.5-py3-none-any.whl (450.1 kB view details)

Uploaded Python 3

File details

Details for the file ipylar-1.0.5.tar.gz.

File metadata

  • Download URL: ipylar-1.0.5.tar.gz
  • Upload date:
  • Size: 447.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ipylar-1.0.5.tar.gz
Algorithm Hash digest
SHA256 21178a58fc70eb483d57f46a5b7693aec6540a4fde73fa446c5c22d2094dd07b
MD5 2a0d3c7ae8cdb0b2e41ddf9754c1cbaf
BLAKE2b-256 40668d5512323988ce6577d4a54d77747a363ae4c4d75551d6eb31fe70b5d305

See more details on using hashes here.

File details

Details for the file ipylar-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: ipylar-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 450.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ipylar-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 609623d320d376a8a15b762e8f3b155a4e7a0a3accb7248b43a8a0f119fcb1a2
MD5 4e0e002c27ab86c2e4acd1d75d09082b
BLAKE2b-256 943f462a9311d4246275b807300f1f3aab6920a05b2e22e51c9543ddcdccecd0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page