{"id":28411129,"url":"https://github.com/climlab/climlab-cam3-radiation","last_synced_at":"2026-05-02T03:14:01.761Z","repository":{"id":39883294,"uuid":"482075220","full_name":"climlab/climlab-cam3-radiation","owner":"climlab","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-23T20:11:50.000Z","size":142,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-24T02:50:31.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/climlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-15T20:21:16.000Z","updated_at":"2026-02-23T20:11:47.000Z","dependencies_parsed_at":"2025-06-23T15:45:28.504Z","dependency_job_id":null,"html_url":"https://github.com/climlab/climlab-cam3-radiation","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.11764705882352944","last_synced_commit":"36ba202937d5b0acbd2c845c9509ec993c684a3d"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/climlab/climlab-cam3-radiation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/climlab%2Fclimlab-cam3-radiation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/climlab%2Fclimlab-cam3-radiation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/climlab%2Fclimlab-cam3-radiation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/climlab%2Fclimlab-cam3-radiation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/climlab","download_url":"https://codeload.github.com/climlab/climlab-cam3-radiation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/climlab%2Fclimlab-cam3-radiation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32521276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-02T13:39:55.908Z","updated_at":"2026-05-02T03:14:01.730Z","avatar_url":"https://github.com/climlab.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# climlab-cam3-radiation\n\n[![Build and test](https://github.com/climlab/climlab-cam3-radiation/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/climlab/climlab-cam3-radiation/actions/workflows/build-and-test.yml)\n\nBrian Rose, University at Albany\n\n## About\n\nThis is a stand-alone Python wrapper for the NCAR CAM3 radiation scheme.\n\nThe primary use-case is to serve as the under-the-hood radiation driver\nfor [climlab](https://climlab.readthedocs.io/), but it can be used as a\nstand-alone model if you are familiar with the Fortran source code.\nThis is a lightweight wrapper that emulates the Fortran interface as closely as possible.\n\n## Installation\n\nPre-built binaries for many platforms are available from [conda-forge](https://conda-forge.org).\n\nTo install in the current environment:\n```\nconda install climlab-cam3-radiation --channel conda-forge\n```\nor create a self-contained environment:\n```\nconda create --name my_env python=3.12 climlab-cam3-radiation --channel conda-forge\nconda activate my_env\n```\n\nSee below for instructions on how to build from source.\n\n## Example usage\n\nYou can import the Fortran driver into a Python session with\n```\nimport climlab_cam3_radiation as cam3\n```\n\nPlease see the directory `climlab_cam3_radiation/tests/` directory in this repository\nfor working examples that set up all the necessary input arrays and call the driver.\n\n## Building from source\n\nHere are instructions to create a build environment (including Fortran compiler)\nwith conda and build using f2py.\n\nTo build:\n```\nconda env create --file ./ci/requirements-macos-arm64.yml\nconda activate cam3_build_env\npython -m pip install . --no-deps -vv\n```\n\nTo run tests, do this from any directory other than the climlab-cam3-radiation repo:\n```\npytest -v --pyargs climlab_cam3_radiation\n```\n\n## Version history\n\n- 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](https://mesonbuild.com/). This version also uses gridpoint-specific values of the input parameter `eccf` (solar irradiance factor), consistent with recent changes in climlab-rrtmg.\n- Version 0.2 is the first public release (April 2022).\nThe Python wrapper code has been extracted from\n[climlab v0.7.13](https://github.com/brian-rose/climlab/releases/tag/v0.7.13).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclimlab%2Fclimlab-cam3-radiation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclimlab%2Fclimlab-cam3-radiation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclimlab%2Fclimlab-cam3-radiation/lists"}