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.3.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

malta-0.3.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file malta-0.3.1.tar.gz.

File metadata

  • Download URL: malta-0.3.1.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for malta-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0ce30c528b4c770b9b52dde1750ce4fd5b066ed8df0b0fdf01d7b2a5041a83b3
MD5 dc324837a7dedb96f356422f0b8161e0
BLAKE2b-256 9041e573e13aa62ed0f4abc97f4609d588a0bdc5fa4314f22efee4b0ed37d51f

See more details on using hashes here.

File details

Details for the file malta-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: malta-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for malta-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 84930b592b6437ff53f991bbbcbd3c1a7432129889d7065b278703fd2d4391f8
MD5 d38aea0a962b3f6619abbb8086838da0
BLAKE2b-256 fd70c22e958f793b86015d5dd526ccae47f57136c85e6507da0d9fec31694d65

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