Skip to main content

VA-AM method implementation

Project description

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

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

va_am-1.0.0.tar.gz (38.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

va_am-1.0.0-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file va_am-1.0.0.tar.gz.

File metadata

  • Download URL: va_am-1.0.0.tar.gz
  • Upload date:
  • Size: 38.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for va_am-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c3859cdcb173c8ca72dc66e6ea1f00df60674efd67a85fe314c127de4c61a4f0
MD5 1b61c418f5c173f18d3e9e9d2fe03bcc
BLAKE2b-256 2ac9065252151fdb025e7eb25fdad3c974a672ae38f8544da37a2528fcc1d88e

See more details on using hashes here.

File details

Details for the file va_am-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: va_am-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for va_am-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0905591d6f254d6fab06d6f390c857b2779b9495326276a4259b71c6458be4a9
MD5 57c537a4a674758c1ba57bbe2f1266b0
BLAKE2b-256 3a48e60ec21f2ce9dfdd49e72134eba721fb7286521644b2ad3aab3d5b08133c

See more details on using hashes here.

Supported by

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