Enhanced software and platform for the Town Energy Balance (TEB) model

Enhanced software and platform for the Town Energy Balance (TEB) model - Published in JOSS (2020)

https://github.com/teb-model/teb

Science Score: 93.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 26 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org, zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

atmospheric-modelling building-energy cmake energy-balance-model energy-consumption energy-model energy-simulation environmental-modelling forecasting-model land-surface-model meteorology teb town-energy-balance urban-energy-budget urban-meteorology urban-planning

Keywords from Contributors

data-generation
Last synced: 6 months ago · JSON representation

Repository

🏘️ The Town Energy Balance (TEB) model software and platform

Basic Info
  • Host: GitHub
  • Owner: TEB-model
  • Language: Fortran
  • Default Branch: master
  • Homepage:
  • Size: 9.66 MB
Statistics
  • Stars: 29
  • Watchers: 5
  • Forks: 7
  • Open Issues: 2
  • Releases: 8
Topics
atmospheric-modelling building-energy cmake energy-balance-model energy-consumption energy-model energy-simulation environmental-modelling forecasting-model land-surface-model meteorology teb town-energy-balance urban-energy-budget urban-meteorology urban-planning
Created almost 7 years ago · Last pushed over 3 years ago
Metadata Files
Readme Contributing Zenodo

README.md

# The Town Energy Balance (TEB) model [![GitHub release (latest by date)](https://img.shields.io/github/v/release/TEB-model/teb)](https://github.com/TEB-model/teb/releases/latest) [![CI](https://github.com/TEB-model/teb/workflows/CI/badge.svg)](https://github.com/TEB-model/teb/actions) [![DOI](https://joss.theoj.org/papers/10.21105/joss.02008/status.svg)](https://doi.org/10.21105/joss.02008) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3887080.svg)](https://doi.org/10.5281/zenodo.3887080) [Overview](#overview) | [Prerequisites](#prerequisites) | [Installation](#installation) | [Documentation](#documentation) | [Example application](#example-application) | [Testing](#testing) | [How to cite](#how-to-cite) | [Contributing](#contributing) | [Copyright and license](#copyright-and-license)

Overview

This enhanced software and platform for TEB (Town Energy Balance; Masson, 2000 and subsequent papers), is intended to help scientists and practitioners wishing to use the TEB model in their research as a standalone software application or as a library (e.g. WRF-TEB) to calculate the urban surface energy balance at neighborhood scale assuming a simplified canyon geometry.

Prerequisites

  • Git >= 2
  • CMake >= 3.1
  • A Recent version of GNU/Intel/Cray Fortran compiler
  • Python >= 3.7 [Optional for testing and tutorial]

Installation

To build the Town Energy Balance (TEB) executable and library on Windows, Linux and macOS, clone this repository and run the following commands from your command prompt:

mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. cmake --build .

By default, we set the real type to an 8 byte wide. This behavior is controlled by the optional USE_REAL8 flag (default ON). Ninja support is avalable and can be specified with the generator flag -G at configure time (e.g. cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..).

Note for Windows Users Make sure you have installed the Intel® Visual Studio Integration plugins or CMake will not be able to identify your compiler (`No CMAKE_Fortran_COMPILER could be found` error). Make sure that you use Intel® Command-Line Window when launching CMake - The Intel® compiler provides a command-line window with the appropriate environment variables already set (see: [Using the Intel® Command-Line Window](https://software.intel.com/en-us/node/522358)). You may also need to specify the generator flag `-G` in CMake; for example, if you are using Intel® Command-Line Window for Visual Studio 2017, then the CMake command should now be `cmake -G "Visual Studio 15 2017 Win64" ..`. For more information on how to specify generators in CMake see [cmake-generators](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#visual-studio-generators) E.g. on Windows using Intel® Command-Line Window for Visual Studio 2017: ```powershell mkdir build && cd build cmake -G "Visual Studio 15 2017 Win64" .. cmake --build . ```

Documentation

This section includes links to software and model documentation. If you are new to TEB and simply looking to easily get started, please refer to the example application instead.

Software

See software documentation for a general overview. For configuration options available at runtime please refer to namelist options.

Scientific

The complete scientific documentation is included in the SURFEX scientific documentation.

Code browser

The code browser is available at https://teb-model.github.io/teb.

Example application

To get started with TEB, see examples/CAPITOUL/README.md. The folder contains a simple tutorial in Jupyter Notebook to estimate the buildings' power demand for cooling using TEB and data and parameters from the CAPITOUL (Canopy and Aerosol Particles Interactions in TOulouse Urban Layer; Masson et al., 2008) campaign.

Testing

Tests are run using the CAPITOUL data provided in examples/CAPITOUL. Tests are found in tests/tests.py and an overview is given in tests/README.md. All tests are automatically run at every commit using Continuos Integration. If you are looking to run your tests locally on Linux or macOS, first make sure you have installed all the prerequisites, then from the command prompt:

bash python -m pip install -r requirements.txt python tests/test.py --build_type=<BUILD_TYPE> --case=<TEST_CASE>

where <BUILD_TYPE> is either Debug or Release and <TEST_CASE> is the test case currently supported in tests/test.py -- see tests/README.md for more information. The output files are written to temp. Plots are written to plots.

E.g.

bash python -m pip install -r requirements.txt python tests/test.py --build_type=Debug --case=integration

How to cite

When using the TEB software, please cite both model, and software (with version) as follows:

| Physical model | This software | Version* | | ------------------------------------------------------- | --------------------------------------------------------- | ---------------------------------------------------- | | Masson, 2000 | Meyer et al., 2020 | see Zenodo |

The corresponding reference list should be as follows:

Masson, V., 2000: A Physically-Based Scheme For The Urban Energy Budget In Atmospheric Models. Boundary-Layer Meteorology, 94, 357–397, https://doi.org/10.1023/A:1002463829265.

Meyer, D., Schoetter, R., Masson, V., Grimmond, S., 2020: Enhanced software and platform for the Town Energy Balance (TEB) model. Journal of Open Source Software, 5(50), 2008. https://doi.org/10.21105/joss.02008.

*please make sure to cite the same version you are using with the correct DOI. For a list of all available versions see the list of versions on Zenodo.

Contributing

Please see the CONTRIBUTING.md file.

Copyright and license

Copyright stated at the top of source files. Software released under CeCILL version 2.1.

JOSS Publication

Enhanced software and platform for the Town Energy Balance (TEB) model
Published
June 09, 2020
Volume 5, Issue 50, Page 2008
Authors
D. Meyer ORCID
Department of Meteorology, University of Reading, Reading, UK, Department of Civil and Environmental Engineering, Imperial College London, London, UK
R. Schoetter ORCID
CNRM UMR 3589, Université Fédérale de Toulouse, Météo-France/CNRS, Toulouse, France
V. Masson ORCID
CNRM UMR 3589, Université Fédérale de Toulouse, Météo-France/CNRS, Toulouse, France
S. Grimmond ORCID
Department of Meteorology, University of Reading, Reading, UK
Editor
Matthew Sottile ORCID
Tags
Meteorology Energy Urban Energy Balance HVAC

GitHub Events

Total
  • Watch event: 3
Last Year
  • Watch event: 3

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 71
  • Total Committers: 2
  • Avg Commits per committer: 35.5
  • Development Distribution Score (DDS): 0.028
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
dmey d****y 69
Maik Riechert m****t@a****e 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 10
  • Total pull requests: 35
  • Average time to close issues: 3 months
  • Average time to close pull requests: 5 days
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.3
  • Average comments per pull request: 0.14
  • Merged pull requests: 34
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dmey (10)
Pull Request Authors
  • dmey (33)
  • letmaik (2)
Top Labels
Issue Labels
enhancement (4)
Pull Request Labels
enhancement (13) bug (4)

Dependencies

examples/CAPITOUL/requirements.txt pypi
  • f90nml ==1.1.2
  • matplotlib *
  • notebook *
  • numpy *
  • pandas *
requirements.txt pypi
  • f90nml ==1.1.2
  • matplotlib *
  • numpy *
  • pandas *
.github/workflows/ci.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • peaceiris/actions-gh-pages v3 composite