Python program for marine climate analysis.
Project description
APPMAR 1.0
If you prefer to extract raw data series for your own analyses, try APPMAR 2 (WIP).
A Python application for downloading and analyzing of WAVEWATCH III® wave and wind data.
German Rivillas-Ospina, Diego Casas, Mauro Antonio Maza-Chamorro, Marianella BolÃvar, Gabriel Ruiz, Roberto Guerrero, José M. Horrillo-Caraballo, Milton Guerrero, Karina DÃaz, Roberto del Rio, Erick Campos
Highlights:
- Free and open-source Python application for wave and wind climate analysis.
- Downloads data from WAVEWATCH III hindcast.
- Performs mean and extreme climate analysis.
- Provides a GUI to improve interaction with the user.
- Especially useful on regions of limited data availability.
APPMAR 1.0 is an application written in the Python programming language that downloads, processes, and analyzes wind and wave data. This application is composed of a graphical user interface (GUI) that contains two main modules: the first module downloads data from WAVEWATCH III® (WW3) production hindcasts by the National Oceanic and Atmospheric Administration (NOAA); the second module applies statistical mathematics for processing and analyzing wave and wind data. This application provides useful graphical results that describe mean and extreme wave and wind climate. APPMAR generates plots of exceedance probability, joint probability distribution, wave direction, Weibull distribution, and storm frequency analysis. Currently, APPMAR only downloads and analyzes wave and wind data from WW3 hindcasts, but it is under development to other datasets and marine climate parameters (see APPMAR 2). This application has been tested in the Magdalena River mouth, Colombia, and Cancún, México, where observational wave and wind data are scarce.
Installation
APPMAR is written in Python 3.7, and it requires a variety of dependencies to run. We strongly recommend using the Conda package manager to install Python 3.7 and APPMAR dependencies. You can obtain Conda by installing Miniconda or Anaconda.
Note: APPMAR has been tested only in Python >=3.7 on Windows 10 with dependencies installed via conda. If you find problems trying to run APPMAR on a different platform o Python version, please open an issue.
In order to install and run APPMAR, follow these steps:
-
Download and extract APPMAR source code.
-
Open Anaconda Prompt (or any terminal with the conda command in its PATH environment variable).
-
From the command line, navigate to the APPMAR directory (e.g.
C:\Users\user\Desktop\appmar
). Usecd
or any command available in your OS for the purpose of changing the current directory:
cd C:\Users\user\Desktop\appmar
- Use the following command to create a new Conda environment called
appmarenv
with Python 3.7 and APPMAR dependencies:
conda env create -f environment.yml
- Activate the recently created environment:
conda activate appmarenv
- Now you can start APPMAR by executing:
python appmar.py
Run
The next time you want to use APPMAR, only follow steps 2, 3, 5 and 6.
Use
First, download data of the grid IDs and year range you want. If you want to download data from both single-grid (Jul 1999 - Nov 2007) and multi-grid (Feb 2005 - present) datasets, you must provide IDs of equivalent grids separated by comma without space (e.g. wna,at_10m
). GRIB files are downloaded into the data
subdirectory. The download process usually takes a long time because NOAA's FTP server provides slow download speeds.
Once the download is completed, you can navigate to the analysis module and generate short-term and long-term statistical plots. The first time you generate a plot, APPMAR 1.0 caches processed data into the tmp
subdirectory in order to speed up future plot generation from the same grid/year range.
If you want to generate fresh plots, delete the tmp
subdirectory. Also, if you have problems with APPMAR 1.0 not identifying a new grid ID, delete the data
subdirectory and download the GRIB files again.
Update
When an update is available, download the the new source code and replace the appmar.py
and libappmar.py
files. Delete the tmp
and __pycache__
directories for changes to take effect the next time you start APPMAR.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file appmar-1.0.0.tar.gz
.
File metadata
- Download URL: appmar-1.0.0.tar.gz
- Upload date:
- Size: 58.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67271ee393c043e06c29f265bc1279abb612177c5c9c63272d2e6d8c8eeef775 |
|
MD5 | 44c486e3e2199e6cbb840ad9e0ca7810 |
|
BLAKE2b-256 | 5b7354ee6ef0f06eac479c6f80855494490dde5b58e2326e4fbe13e1d481b992 |
File details
Details for the file appmar-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: appmar-1.0.0-py3-none-any.whl
- Upload date:
- Size: 54.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6673429ffad5278accea44ffe069052aed573b0333e4f8c7476e247adc46b3d |
|
MD5 | 50e5b70342a0af9634904f8ea581f52f |
|
BLAKE2b-256 | a2d3656fb27238eaef576e182658a30d2342bfb18cd0681c98415bc0306c96f0 |