tuv-x

Photolysis rate constant calculator

https://github.com/ncar/tuv-x

Science Score: 85.0%

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

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    3 of 11 committers (27.3%) from academic institutions
  • Institutional organization owner
    Organization ncar has institutional domain (ncar.ucar.edu)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.0%) to scientific vocabulary

Keywords from Contributors

interpretability standardization hack
Last synced: 6 months ago · JSON representation ·

Repository

Photolysis rate constant calculator

Basic Info
Statistics
  • Stars: 6
  • Watchers: 9
  • Forks: 7
  • Open Issues: 15
  • Releases: 8
Created over 2 years ago · Last pushed 6 months ago
Metadata Files
Readme License Citation

README.md


Tropospheric ultraviolet-extended (TUV-x): A photolysis rate calculator

License Ubuntu Mac Windows Docker codecov DOI

Copyright (C) 2020-2025 University Corporation for Atmospheric Research

Try it out!

Poke this button and you'll be taken to a cloud workspace that walks you through a tutorial on how to use TUV-x.

Open in Gitpod

Building and installing

To build and install TUV-x locally, you must have the following libraries installed:

You must also have CMake installed on your machine.

To install TUV-x locally, open a terminal window, navigate to a folder where you would like the TUV-x files to exist, and run the following commands:

Build and run (Docker version)

To build and run the stand-alone version of TUV-x, you must have Docker Desktop installed and running. With Docker Desktop running, open a terminal window and run the following command to start the TUV-x container:

docker run -it ghcr.io/ncar/tuv-x:release bash

Inside the container, you can run the TUV-x tests from the /build/ folder:

``` cd build/

to run the tests

make test

to use the standalone tool

./tuv-x examples/tuv54.json

or

./tuv-x examples/ts1_tsmlt.json ```

Sharing data between your computer and the docker container

To easily retrive the output data from tuv-x, or to use your own data in the configuration, you will need to use docker bind mounts.

Start docker with a bind mount volume. You must use a full system path. This command will create a link between the folder you provided into and out of the running container.

For example, this command below will start tuv-x and map the directory /output in the running container to your downloads directory. docker run -v /Users/$USER/Downloads:/output -it tuvx

To run the full example config file with the tuv-x tool from this directory, you'll need to copy over the data files. The full example uses data files from the data directory, which is why you need to do this.

``` cd /output cp -r /build/data .

to use the standalone tool

./tuv-x examples/tuv54.json

or

./tuv-x examples/ts1_tsmlt.json ```

Now, in your downloads folder, you should have to nc files, photolysis_rate_constants.nc and dose_rates.nc.

If you have your own data files you'd like to use, you can copy them into the Downloads directory, or whichever directory you mapped in, and use them in the container.

Build and run (local build version)

git clone https://github.com/NCAR/tuv-x.git cd tuv-x mkdir build cd build ccmake .. make -j 8

You will now have a runnable exectubable for tuv-x and the tests in the build directory.

```

to use the standalone tool

./tuv-x examples/tuv54.json

or

./tuv-x examples/ts1tsmlt.json `` Inspect the output filephotolysisrate_constants.nc` to see the results!

Install

After completing the previous step run sudo make install. This wll install the tuvx static library, the tuv-x configuration and runtime data, as well as the standalone tuv-x exectuable, which can be added to your system path to make the executable useable from any directory.

If you would later lake to uninstall tuv-x, you can run sudo make uninstall from the build directory.

Citation

The following bibtex can be used to cite the work which originally developed this tool.

A recommended citation is

Madronich, Sasha, and Siri Flocke (1999), The role of solar radiation in atmospheric chemistry, in Handbook of Environmental Chemistry, edited by P. Boule, pp. 1-26, Springer-Verlag, Heidelberg.

However, you are encouraged to use the format matching whichever style you prefer.

@incollection{madronich_role_1999, address = {Berlin, Heidelberg}, series = {The {Handbook} of {Environmental} {Chemistry}}, title = {The {Role} of {Solar} {Radiation} in {Atmospheric} {Chemistry}}, isbn = {978-3-540-69044-3}, url = {https://doi.org/10.1007/978-3-540-69044-3_1}, language = {en}, booktitle = {Environmental {Photochemistry}}, publisher = {Springer}, author = {Madronich, Sasha and Flocke, Siri}, editor = {Boule, Pierre}, year = {1999}, doi = {10.1007/978-3-540-69044-3_1}, keywords = {Earth-Sun geometry., photolysis rate coefficients, radiative transfer, solar radiation, spectral actinic flux}, pages = {1--26}, }

Community and contributions

We welcome contributions and feedback from anyone, everything from updating the content or appearance of the documentation to new and cutting edge science.

  • Contact

    • If you'd like to get in touch with us, feel free to start a conversation on our discussion board or email us at musica-info@ucar.edu.
  • Collaboration

  • Contributor's guide

    • Before submiitting a PR, please thouroughly read this to you understand our expectations. We reserve the right to reject any PR not meeting our guidelines.

Documentation

Please see the TUV-x documentation for detailed installation and usage instructions.

License

  • Apache 2.0
  • Copyright (C) 2020-2025 University Corporation for Atmospheric Research

Owner

  • Name: NSF National Center for Atmospheric Research
  • Login: NCAR
  • Kind: organization
  • Location: Boulder, CO

NSF NCAR is sponsored by the U.S. National Science Foundation and managed by the University Corporation for Atmospheric Research.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Dawson
    given-names: Matt
  - family-names: Dendukuri
    given-names: Aditya
  - family-names: Fisher
    given-names: Ward
  - family-names: Shores
    given-names: Kyle
  - family-names: Sun
    given-names: Jian
  - family-names: Walters
    given-names: Stacy
  - family-names: Thind
    given-names: Montek
title: "NCAR/tuv-x"
version: 0.12.0
doi: 10.5281/zenodo.7126039
url: "https://github.com/NCAR/tuv-x"
year: 2025
publisher: Zenodo

GitHub Events

Total
  • Create event: 21
  • Release event: 2
  • Issues event: 24
  • Watch event: 1
  • Delete event: 17
  • Issue comment event: 35
  • Push event: 286
  • Pull request review comment event: 10
  • Pull request review event: 30
  • Pull request event: 32
  • Fork event: 5
Last Year
  • Create event: 21
  • Release event: 2
  • Issues event: 24
  • Watch event: 1
  • Delete event: 17
  • Issue comment event: 35
  • Push event: 286
  • Pull request review comment event: 10
  • Pull request review event: 30
  • Pull request event: 32
  • Fork event: 5

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 94
  • Total Committers: 11
  • Avg Commits per committer: 8.545
  • Development Distribution Score (DDS): 0.383
Past Year
  • Commits: 16
  • Committers: 8
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.75
Top Committers
Name Email Commits
Matt Dawson m****n@u****u 58
Kyle Shores k****4@g****m 9
Jiwon Gim 5****e 7
Jian Sun s****s@g****m 6
Aditya Dendukuri d****3@o****m 4
Ward Fisher W****F 3
Montek Thind m****d@u****u 3
github-actions[bot] 4****] 1
aidan-winney 1****y 1
Sozhan Natarajan s****8@g****m 1
Carl Drews d****s@u****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 54
  • Total pull requests: 78
  • Average time to close issues: 4 months
  • Average time to close pull requests: 2 days
  • Total issue authors: 4
  • Total pull request authors: 13
  • Average comments per issue: 0.67
  • Average comments per pull request: 0.67
  • Merged pull requests: 71
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 9
  • Pull requests: 21
  • Average time to close issues: 3 months
  • Average time to close pull requests: 1 day
  • Issue authors: 2
  • Pull request authors: 8
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.76
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mattldawson (36)
  • K20shores (11)
  • AdityaDendukuri (6)
  • sjsprecious (1)
Pull Request Authors
  • mattldawson (63)
  • K20shores (18)
  • AdityaDendukuri (11)
  • boulderdaze (9)
  • WardF (6)
  • montythind (5)
  • aidan-winney (4)
  • sjsprecious (3)
  • github-actions[bot] (2)
  • Copilot (2)
  • Sozhan308 (2)
  • fvitt (2)
  • carl-drews (1)
Top Labels
Issue Labels
enhancement (27) bug (6) Stale (5) good first issue (4) documentation (4) question (2) 2024 SIParCS Project (1)
Pull Request Labels
documentation (6) bug (5) enhancement (3)

Dependencies

.github/workflows/gh-pages.yml actions
  • actions/checkout v2 composite
  • peaceiris/actions-gh-pages v3 composite
.github/workflows/publish-package.yml actions
  • actions/checkout v2 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/metadata-action 98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 composite
  • docker/setup-buildx-action v2 composite
docs/requirements.txt pypi
  • Jinja2 <3.1
  • Pillow *
  • matplotlib *
  • pydata-sphinx-theme *
  • sphinx *
  • sphinx-design *
.github/workflows/docker.yml actions
  • actions/checkout v3 composite
  • codecov/codecov-action v3 composite
.github/workflows/ubuntu.yml actions
  • actions/checkout v3 composite
docker/Dockerfile docker
  • fedora 37 build