https://github.com/climlab/climlab-cam3-radiation
Science Score: 36.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
-
○Academic publication links
-
✓Committers with academic emails
1 of 3 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.5%) to scientific vocabulary
Keywords from Contributors
Repository
Basic Info
- Host: GitHub
- Owner: climlab
- License: mit
- Language: Fortran
- Default Branch: main
- Size: 150 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
- Releases: 3
Metadata Files
README.md
climlab-cam3-radiation
Brian Rose, University at Albany
About
This is a stand-alone Python wrapper for the NCAR CAM3 radiation scheme.
The primary use-case is to serve as the under-the-hood radiation driver for climlab, but it can be used as a stand-alone model if you are familiar with the Fortran source code. This is a lightweight wrapper that emulates the Fortran interface as closely as possible.
Installation
Pre-built binaries for many platforms are available from conda-forge.
To install in the current environment:
conda install climlab-cam3-radiation --channel conda-forge
or create a self-contained environment:
conda create --name my_env python=3.12 climlab-cam3-radiation --channel conda-forge
conda activate my_env
See below for instructions on how to build from source.
Example usage
You can import the Fortran driver into a Python session with
import climlab_cam3_radiation as cam3
Please see the directory climlab_cam3_radiation/tests/ directory in this repository
for working examples that set up all the necessary input arrays and call the driver.
Building from source
Here are instructions to create a build environment (including Fortran compiler) with conda and build using f2py.
To build:
conda env create --file ./ci/requirements-macos-arm64.yml
conda activate cam3_build_env
python -m pip install . --no-deps -vv
To run tests, do this from any directory other than the climlab-cam3-radiation repo:
pytest -v --pyargs climlab_cam3_radiation
Version history
- Version 0.3.1 (February 2025) modernizes the build system for this package can run on Python 3.12 and above. The build now uses meson. This version also uses gridpoint-specific values of the input parameter
eccf(solar irradiance factor), consistent with recent changes in climlab-rrtmg. - Version 0.2 is the first public release (April 2022). The Python wrapper code has been extracted from climlab v0.7.13.
Owner
- Name: climlab
- Login: climlab
- Kind: organization
- Repositories: 4
- Profile: https://github.com/climlab
Home of climlab software and related user content
GitHub Events
Total
- Create event: 2
- Release event: 2
- Issues event: 2
- Delete event: 1
- Issue comment event: 5
- Push event: 5
- Pull request review event: 1
- Pull request event: 14
Last Year
- Create event: 2
- Release event: 2
- Issues event: 2
- Delete event: 1
- Issue comment event: 5
- Push event: 5
- Pull request review event: 1
- Pull request event: 14
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Brian Rose | b****e@a****u | 35 |
| dependabot[bot] | 4****] | 2 |
| Charles Coulombe | c****e | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 5
- Total pull requests: 15
- Average time to close issues: about 1 month
- Average time to close pull requests: 11 days
- Total issue authors: 1
- Total pull request authors: 3
- Average comments per issue: 1.4
- Average comments per pull request: 0.47
- Merged pull requests: 14
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 1
- Pull requests: 8
- Average time to close issues: 3 months
- Average time to close pull requests: 22 days
- Issue authors: 1
- Pull request authors: 2
- Average comments per issue: 0.0
- Average comments per pull request: 0.75
- Merged pull requests: 7
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- brian-rose (5)
Pull Request Authors
- brian-rose (11)
- ccoulombe (2)
- dependabot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 1
- Total dependent repositories: 1
- Total versions: 1
conda-forge.org: climlab-cam3-radiation
climlab-cam3-radiation makes the CAM3 radiation code callable from Python by wrapping using f2py. This is a lightweight wrapper that emulates the Fortran interface as closely as possible. The primary use case is to drive the radiation process in climlab, but it can be used as a standalone driver if you are familiar with the Fortran interface.
- Homepage: https://github.com/climlab/climlab-cam3-radiation
- License: MIT
-
Latest release: 0.2
published about 4 years ago
Rankings
Dependencies
- actions/checkout v4 composite
- conda-incubator/setup-miniconda v3 composite
- pooch *
- xarray *