Skip to main content

A 2D model of atmospheric transport

Project description

malta

MALTA: Model of Averaged in Longitude Transport in the Atmosphere.
Latest release DOI
A description of the model is available here: https://doi.org/10.22541/essoar.168890012.27918585/v1

Installation

To install the latest release:

$ pip install malta

Usage

malta is a two-dimensional (longitudinally-averaged) model of atmospheric transport. A simple run of constant emissons of 10 Gg of CFC-11 with zero initial conditions from 2010-2020 inclusive could be:

import numpy as np
from malta import model

start_year = 2010
end_year = 2021
species = "CFC11"

# Set up and run model
years = np.array([str(yr) for yr in range(start_year,end_year)])
emistot = np.repeat(10, len(years))
emissions = model.create_emissions(species, emistot)
sink = model.create_sink(species)
ds_out = model.run_model(years, emissions, sink) 

The returned ds_out is an xarray dataset containing monthly mean output variables from the 2D model run. See docs/example.ipynb or the readthedocs page for more information on running the model.

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

malta was created by Luke Western. It is licensed under the terms of the MIT license.

Credits

malta was created with cookiecutter and the py-pkgs-cookiecutter template.

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

malta-0.2.2.tar.gz (14.1 MB view hashes)

Uploaded Source

Built Distribution

malta-0.2.2-py3-none-any.whl (14.1 MB view hashes)

Uploaded Python 3

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