Skip to main content

VA-AM

Documentation Status Tests codecov Python 3.10+ License

PyPI Version PyPI Downloads Conda Version Conda Downloads Libraries.io

Documentation#

The documentation is available here.

Description#

VA-AM (Various Advanced - Analogue Methods) is a Python package based on the deep learning enhancement of the classical statistical Analogue Method. It provides several tools to analyse climatological extreme events, particularly heat waves (HW from now on).

It alows you to perform the identification of the HW following Russo index, use the classical Analogue Method, use the enhanced Autoencoder Analogue Method, and even define own/use diferent deep learning architectures for the Analogue search.

Installation#

Latest version:

Using pip

pip install va_am

Using conda

conda install -c conda-forge va_am

Latest commit:

pip install git+https://github.com/cosminmarina/va_am

Getting Started#

VA-AM can be used inside a python code as library, or directly outside of the code, as a executable. See both options:

Outside of code#

A quick way of using it directly from your terminal. First try the -h | --help flag as:

python -m va_am -h

Note

You should obtain something like:

usage: __main__.py [-h] [-i] [-m METHOD] [-f CONF] [-sf SECRET] [-v] [-t]
           [-p PERIOD] [-sr]

optional arguments:
-h, --help            show this help message and exit
-i, --identifyhw      Flag. If true, first, identify the heatwave period
                        and, then, apply the 'method' if is one of: 'days',
                        'seasons', 'execs', 'latents', 'seasons-execs',
                        'latents-execs' or 'latents-seasons-execs'
-m METHOD, --method METHOD
                        Specify an method to execute between: 'day' (default),
                        'days', 'seasons', 'execs', 'latents', 'seasons-
                        execs', 'latents-execs' or 'latents-seasons-execs'
-f CONF, --configfile CONF
                        JSON file with configuration of parameters. If not
                        specified and 'method' require the file, it will be
                        searched at 'params.json'
-sf SECRET, --secretfile SECRET
                        Path to TXT file with needed information of the
                        Telegram bot to use to WARN and advice about
                        Exceptions. If not specified and 'method' require the
                        file, it will be searched at 'secret.txt'
-v, --verbose         Flag. If true, overwrite verbose param.
-t, --teleg           Flag. If true, exceptions and warnings will be sent to
                        Telegram Bot.
-p PERIOD, --period PERIOD
                        Specify the period where to perform the operations
                        between: 'both' (default), 'pre' or 'post'
-sr, --savereconstruction
                        Flag. If true, the reconstruction per iteration would
                        be saved in ./../../data/ folder as an
                        reconstruction-[name]-[day]-[period]-[AM/VA-AM].nc
                        file.

Inside of code#

You can import va_am as a library in your code and use the equivalent method:

from va_am import

# Perform Variational Autoencoder Analogue search with default args
va_am()

or

import va_am

# Perform Variational Autoencoder Analogue search with default args
va_am.va_am()

Note

The arguments of va_am() method are the same as the outside of code version. For more details see the API reference.

Collaboration#

If you find any bugs/issues or have any suggestions, please open an issue.

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors#

  • Cosmin M. Marina - Provided Code and Maitenance - cosminmarina
  • Eugenio Lorente-Ramos - Provided Code - eugenioLR

See also the list of contributors who participated in this project.

License#

This project is licensed under the GPL v3.0 GNU General Public License - see the LICENSE file for details

Release files for va-am 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for va-am 1.0.1
File Size Uploaded
va_am-1.0.1.tar.gz 38.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for va-am 1.0.1
File Interpreter ABI Platform
va_am-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 74.8 kB

Release files / va_am-1.0.1.tar.gz

Download URL va_am-1.0.1.tar.gz
Size 38.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bb92a9ffc91adb5c627016d481cbf60152694b357657aa8617427146c284088c
BLAKE2b-256 checksum
How to use checksums
d155952400fde65c89420f982e18a08d3ffec1029c3fb56726131111456b0a51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / va_am-1.0.1-py3-none-any.whl

Download URL va_am-1.0.1-py3-none-any.whl
Size 36.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92951a6b0bd853012e5a3771be8ccc34a3953df1f4cd932aee4a90aeb7e0389d
BLAKE2b-256 checksum
How to use checksums
05130f8a7d74d4b02d01077139e9864d8f7f947627605ac5b7300002df39fbdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page