{"id":42107830,"url":"https://github.com/pmlmodelling/fabm-spectral","last_synced_at":"2026-01-26T13:22:00.096Z","repository":{"id":128452235,"uuid":"341277450","full_name":"pmlmodelling/fabm-spectral","owner":"pmlmodelling","description":"FABM implementation of the Ocean-Atmosphere Spectral Irradiance Model, which simulates the propagation of spectrally resolved direct and diffuse irradiance in atmosphere and oceans. ","archived":false,"fork":false,"pushed_at":"2025-09-26T10:06:50.000Z","size":275,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-09-26T12:09:20.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmlmodelling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-02-22T17:15:41.000Z","updated_at":"2024-12-11T16:25:53.000Z","dependencies_parsed_at":"2025-10-02T11:00:31.922Z","dependency_job_id":null,"html_url":"https://github.com/pmlmodelling/fabm-spectral","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pmlmodelling/fabm-spectral","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmlmodelling%2Ffabm-spectral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmlmodelling%2Ffabm-spectral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmlmodelling%2Ffabm-spectral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmlmodelling%2Ffabm-spectral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmlmodelling","download_url":"https://codeload.github.com/pmlmodelling/fabm-spectral/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmlmodelling%2Ffabm-spectral/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28779338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T11:46:04.308Z","status":"ssl_error","status_checked_at":"2026-01-26T11:46:02.664Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-26T13:21:59.550Z","updated_at":"2026-01-26T13:22:00.089Z","avatar_url":"https://github.com/pmlmodelling.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a [FABM](https://fabm.net) implementation of the Ocean-Atmosphere Spectral Irradiance Model (OASIM), which simulates the propagation of spectrally resolved direct and diffuse irradiance in atmosphere and oceans. The spectral range of the model is configurable and can include any wavelength between 200 and 4000 nm. Thus it can include total shortwave, ultraviolet, and photosynthetically active radiation, among others.\n\nThis implementation is designed for *online coupling* to hydrodynamic-biogeochemical models through FABM. Both atmosphere and ocean components run online as part of the coupled simulation and are directly forced by bulk meteorological properties. The modelled underwater irradiance can drive biogeochemical processes and, in turn, biogeochemical variables can affect (spectrally resolved) light absorption and scattering. The model also calculates light absorption per water layer, which can be fed back to the physical model as a heating term.\n\n## How to use\n\nThrough FABM, this code can be used in combination with many hydrodynamic and biogeochemical models. For more information about use with specific hydrodynamic models, please visit [the FABM wiki](https://fabm.net/wiki).\n\nWhen building FABM, you will need explicitly configure it to include the spectral model. To do this, provide the following arguments to cmake:\n\n`-DFABM_INSTITUTES=\"\u003cOTHER_MODELS\u003e;spectral\" -DFABM_SPECTRAL_BASE=\u003cSPECTRALDIR\u003e`.\n\nHere, `\u003cOTHER_MODELS\u003e` is a semi-colon-separated list of additional FABM packages you want to build, e.g., ersem.\nNB the double quotes are _required_ to prevent your shell (e.g., bash) from interpreting the semi-colon as \"end of command\".\n`\u003cSPECTRALDIR\u003e` is the root of the spectral code repository (i.e., the directory where this README file is found).\n\nThis code comes with several test cases in the `testcases` directory. Most of these combine the spectral module with the [ERSEM](https://ersem.com) ecosystem model.\n\n## Implementation\n\nAn early version of this codebase was developed in 2013 based upon the work of [Bird (1984)](https://doi.org/10.1016/0038-092X(84)90260-3), [Bird \u0026 Riordan (1986)](https://doi.org/10.1175/1520-0450(1986)025\u003c0087:SSSMFD\u003e2.0.CO;2) and [Gregg \u0026 Carder (1990)](https:/doi.org/10.4319/lo.1990.35.8.1657). The implementation was completely revised in 2019-2021 and is now based on:\n\n* Gregg, W. W., \u0026 Casey, N. W. (2009). Skill assessment of a spectral ocean-atmosphere radiative model. Journal of Marine Systems, 76(1–2), 49–63. doi: [10.1016/j.jmarsys.2008.05.007](https://doi.org/10.1016/j.jmarsys.2008.05.007).\n* Gregg, W. W., \u0026 Rousseaux, C. S. (2016). Directional and Spectral Irradiance in Ocean Models: Effects on Simulated Global Phytoplankton, Nutrients, and Primary Production. Frontiers in Marine Science, 3. doi: [10.3389/fmars.2016.00240](https://doi.org/10.3389/fmars.2016.00240).\n* Gregg, W. W., \u0026 Rousseaux, C. S. (2017). Simulating PACE Global Ocean Radiances. Frontiers in Marine Science, 4. doi: [10.3389/fmars.2017.00060](https://doi.org/10.3389/fmars.2017.00060).\n\nThe ocean component does not currently resolve upwelling irradiance and therefore is simpler than the version described by Gregg \u0026 Rousseaux.\n\n## Publications\n\nThis work was described and used in:\n\n* Skákala, J., Bruggeman, J., Brewin, R. J. W., Ford, D. A., \u0026 Ciavatta, S. (2020). Improved Representation of Underwater Light Field and Its Impact on Ecosystem Dynamics: A Study in the North Sea. Journal of Geophysical Research: Oceans, 125(7). doi: [10.1029/2020JC016122](https://doi.org/10.1029/2020JC016122)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmlmodelling%2Ffabm-spectral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmlmodelling%2Ffabm-spectral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmlmodelling%2Ffabm-spectral/lists"}