Skip to main content

CliMT is a Toolkit for building Earth system models in Python.

Project description

CliMT

PyPI Continuous Integration Continuous Integration Coverage Documentation Status Zenodo DOI

CliMT is a Toolkit for building Earth system models in Python. CliMT stands for Climate Modelling and diagnostics Toolkit – it is meant both for creating models and for generating diagnostics (radiative fluxes for an atmospheric column, for example). However, since it might eventually include model components for purposes other than climate modelling (local area models, large-eddy simulation), we prefer to keep the abbreviation un-expanded!

CliMT hopes to enable researchers to easily perform online analysis and make modifications to existing models by increasing the ease with which models can be understood and modified. It also enables educators to write accessible models that serve as an entry point for students into Earth system modeling, while also containing state-of-the-art components.

Initially CliMT contains only components for the atmosphere, and does not yet include a coupler. But there are plans to extend CliMT to a fully coupled Earth system model in the future. The toolkit is also written in such a way that it could enable the development of non-climate models (e.g. weather prediction, large-eddy simulation). To do so requires only that the prognostic and diagnostic schemes are wrapped into the correct Python-accessible interface.

CliMT builds on Sympl, which provides the base classes and array and constants handling functionality. Thanks to Sympl and Pint, CliMT is also a fully units aware model. It is useful to know how Sympl works to use CliMT better. Read more about Sympl at https://sympl.readthedocs.io.

Installation

CliMT can be installed directly from the python package index using pip.

pip install climt

should work on most systems. From version 0.9.2 onwards, this command will install binary wheels, eliminating the requirement of a compiler on your system.

Detailed instructions for Mac and Linux systems are available in the documentation.

Features

  • CliMT is fully units-aware!

  • Uses the xarray DataArray abstraction to build self describing model arrays.

  • Provides different levels of abstraction towards building a climate model.

  • Like Sympl, CliMT consciously uses descriptive names in the user API to ensure model scripts are self-documenting.

  • Allows for quick prototyping of earth system model components.

  • Provides a clean and convenient interface to add new components.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

v.0.14.8

Many of the changes in this version come from changes in Sympl 0.4.0. We recommend reading those changes in the Sympl documentation.

  • Updated component APIs to work with Sympl 0.4.0

  • Many components which previously required horizontal dimensions now use wildcard matches for column dimensions.

  • Switched many print statements to logging calls.

  • Fixed bugs in some components

Breaking Changes

  • get_constant and set_constant have been removed, use the ones in Sympl.

  • Emanuel convection scheme can no longer be set to perform dry adiabatic adjustment to the boundary layer. This has been implemented in a separate component.

  • ClimtPrognostic, ClimtImplicitPrognostic, ClimtDiagnostic, ClimtImplicit have been removed. Use the base types in Sympl.

  • State initialization has been entirely re-worked. get_default_state now takes in an optional grid state instead of options to do with the state grid. A function get_grid is provided which can create a grid state, or one can be created manually. A grid state is a state containing air pressure and sigma on mid and interface levels, as well as surface pressure.

  • Replaced references to “thermal_capacity” with references to “heat_capacity” in component quantity names.

v.0.14.7

  • Fix issue with pip v10 and pandas 0.22 conflicts

v.0.14.3

  • Fix release issue because of pip API change

v.0.14.1

  • Fix appveyor fail due to pip changes

v.0.14.0

  • Fixed broken version numbers

v.0.12.0

  • new release to fix version numbers and create zenodo ID

v.0.9.4

  • Added attributes to inputs/outputs/ etc., to work with ScalingWrapper Added tests as well.

  • Added tests for constants functions

  • Fixed requirements to ensure this version of climt installs the correct versions of sympl and numpy.

v.0.9.3

  • Released because of a labelling issue. See 0.9.2 for details.

v.0.9.2

  • Updated documentation

  • Cleaned up examples

  • Added (*)_properties as a property to all components

  • The gas constant for dry air in the Emanuel scheme is now renamed _Rdair

  • RRTMG LW and SW are now OpenMP parallel

  • Added Instellation component to calculate zenith angle

  • Added tests to increase coverage

  • New constants handling functionality added

  • Travis builds now use stages

  • Appveyor CI up and running

  • Pre-installation of cython and numpy no longer necessary for source builds

  • Added snow-ice component

  • Ozone profiles do not need to be specified externally

  • Now also tested on Python 3.6

Breaking Changes

  • API for constants setting changed to set_constant_from_dict and add_constants_from_dict

  • GfsDynamicalCore renamed to GFSDynamicalCore for consistency

  • get_prognostic_version method of ClimtImplicit renamed to prognostic_version, and no longer accepts timestep as an argument. The current timestep should be set in ClimtImplicit.current_time_step during each iteration.

  • RRTMGShortwave now uses sympl’s solar constant by default instead of from fortran.

v.0.9.1

  • Held-Suarez and moist GCM with grey radiation work!

  • Added DCMIP initial conditions, test 4 tried out.

  • Dynamical core integrated now.

  • BIG change in the build system. Tests pass on Mac as well

  • Arrays can now have arbitrary dtype (to use qualitative, string, quantities)

  • Added Emanuel Convection, surface energy balance model and ice sheet energy balance

  • 2D coordinates are now supported for horizontal coordinates

  • Replaced create_output_arrays() with a more general get_state_dict_for() and get_numpy_arrays_from_state() combination.

  • State arrays now have coordinates

  • Updated documentation

  • RTD finally working, phew!

  • Added RRTMG Longwave, Simple Physics

  • Added helper functions to reduce boilerplate code in components

Breaking Changes

Latest

  • method to obtain piecewise constant prognostic has been renamed to piecewise_constant_version

  • Ozone profile has been modified

  • Heating rate for RRTMG top-of-atmosphere is no longer manually set to zero

  • Components no longer accept constants during initialisation. All constant handling is done internally.

v.0.9

  • SlabSurface no longer uses depth_slab_surface as input

  • changed order of outputs of GfsDynamicalCore and SimplePhysics to conform to TimeStepper order of diagnostics, new_state

  • get_default_state now accepts mid_levels and interface_levels instead of z to specify vertical coordinates.

  • mass_to_volume_mixing_ratio now uses numpy arrays instead of DataArrays.

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

climt-0.15.1.tar.gz (18.5 MB view details)

Uploaded Source

Built Distributions

climt-0.15.1-cp36-cp36m-win_amd64.whl (27.4 MB view details)

Uploaded CPython 3.6m Windows x86-64

climt-0.15.1-cp36-cp36m-manylinux1_x86_64.whl (25.7 MB view details)

Uploaded CPython 3.6m

climt-0.15.1-cp35-cp35m-win_amd64.whl (27.4 MB view details)

Uploaded CPython 3.5m Windows x86-64

climt-0.15.1-cp35-cp35m-manylinux1_x86_64.whl (25.7 MB view details)

Uploaded CPython 3.5m

climt-0.15.1-cp27-cp27mu-manylinux1_x86_64.whl (25.7 MB view details)

Uploaded CPython 2.7mu

climt-0.15.1-cp27-cp27m-manylinux1_x86_64.whl (25.7 MB view details)

Uploaded CPython 2.7m

File details

Details for the file climt-0.15.1.tar.gz.

File metadata

  • Download URL: climt-0.15.1.tar.gz
  • Upload date:
  • Size: 18.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for climt-0.15.1.tar.gz
Algorithm Hash digest
SHA256 4739392de9652c4b1ae4bb85348e3df022a24e79a7bd9af26653f1747940f5f3
MD5 32c7088ad898daa501649169d5ecd639
BLAKE2b-256 c64827bad92d62896fadb87bd564fb5688b5624c150b1b430d13bc8704d07fee

See more details on using hashes here.

File details

Details for the file climt-0.15.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: climt-0.15.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 27.4 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for climt-0.15.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 26eddd23577d0bc3007d70797838452724359f785c25c7134c1878461e8a5c6d
MD5 ee8e6daca80736b769104db570bc3d58
BLAKE2b-256 55a66716a7309569f351197988edc5bc21295526d0677b3695f69faacbef30a1

See more details on using hashes here.

File details

Details for the file climt-0.15.1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: climt-0.15.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 25.7 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for climt-0.15.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 92f4d0703e49c2705a5f9b4f709372e23a7eee751742124b7ddc8bee4a50f967
MD5 62c6008ac544bc46871db2c2fbbdac78
BLAKE2b-256 eba37cf6298e36238b3a4fa026ab0ad3a27906de838cbcc4c3a20875815aeb69

See more details on using hashes here.

File details

Details for the file climt-0.15.1-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: climt-0.15.1-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 27.4 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

File hashes

Hashes for climt-0.15.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b83e7940d6eada03efc37c6d83786fd0767e754a0d1ac8c6f49157f91e91577f
MD5 6afede770e1cfecfe8ebf984ed423762
BLAKE2b-256 af10079f2c4ed7b252329e19944f569c692ee24203145f2f6f3087cfc0806162

See more details on using hashes here.

File details

Details for the file climt-0.15.1-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: climt-0.15.1-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 25.7 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for climt-0.15.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a4ec804f0ac2e12b5841ee4e4d2b2c19dcc2e417883d7fd40c3d13d085ca6741
MD5 6e2e8215fd969a47f02e5d13aa50267e
BLAKE2b-256 6cb63caf43abcecdadc3bcaa4322a58bebc2731d5c8530e71cecb760007d36fa

See more details on using hashes here.

File details

Details for the file climt-0.15.1-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: climt-0.15.1-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 25.7 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for climt-0.15.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f2d8228d96fe4c55b503c316b76aea213ee7e4b98296b415b2ac82c42b5c15a6
MD5 46f509f7be8c80edef58663f5ebb926f
BLAKE2b-256 c17d1e361474316bb3db52f7f73aedcb34bc356da8f93d6d42e647c1de76e4a0

See more details on using hashes here.

File details

Details for the file climt-0.15.1-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: climt-0.15.1-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 25.7 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for climt-0.15.1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c01e23184e28e96e86a4c509b7a0403b4fa4db16e1fc78d5a41c1a6fb3a8bc7a
MD5 afe72419b2ce4225c5746b839d811c21
BLAKE2b-256 4e73fece72ec237988f0a7da57ce34e094529428d714569e01a55dcd7ea16591

See more details on using hashes here.

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