SlopScore
00 crowd

pyRadtran

A little vibe-coded python wrapper for libRadtran for xarray-fans like me. Just a hobby becuase I llike xarray so much xoxo. The basic idea was to get xarray-ready simulation outputs and parallelize simulations as much as possbile.
Open repo on GitHub Open the demogithub.com/FranzFlink/pyRadtran
Jupyter Notebook · ★ 4 · 0 forks · MIT · paperwork by the Cap'mmostly ai (inferred)light human (inferred)works-on-my-machine (inferred)other
listed 1 hour ago by FranzFlink · last checked 1 hour ago
The owner didn't write this. This repo never submitted itself. The Cap'm found it on a truffle trawl and wrote its paperwork from what GitHub already shows. Picked by hand by the Cap'm on 2026-09-18: A little vibe-coded python wrapper for libRadtran for xarray-fans like me. Just a hobby becuase I llike xarray; its own README says "A little vibe-coded python wrapper for libRadtran for xarray-fans like me". 4 stars; MIT license. The owner did not submit this. Votes count; awards don't until the owner claims it.

I'm not calling your project slop! Geeze, it's a joke... Do you own this repo?

Log in with GitHub as FranzFlink. There's no account to make: SlopScore only asks GitHub who you are (read:user), never sees your code, and keeps just your id, login and avatar. Then you can:

  • Keep it, on your terms. Commit your own slopscore.md (spec) and press Refresh. Your paperwork replaces the Cap'm's, and you can submit it for Slop of the Day.
  • Take it down. One click on Remove. It stays gone; the trawl never brings it back.

Log in with GitHub

Can't log in as the owner? Request a takedown. No login needed, and a trawled listing comes down right away.

GitHub says
A little vibe-coded python wrapper for libRadtran for xarray-fans like me. Just a hobby becuase I llike xarray so much xoxo. The basic idea was to get xarray-ready simulation outputs and parallelize simulations as much as possbile.
website
https://franzflink.github.io/pyRadtran/
created
2025-07-21 · pushed 2 months ago · 62 commits · 2 contributors
languages
Jupyter Notebook 94%Python 6%PLSQL 0%Shell 0%Jac 0%TeX 0%
paperwork
licensereadme 42% health
dependencies
no dependency graph (no manifest, or disabled) · OSV.dev, checked 1 hour ago

Disclosures, inferred by the Cap'm

slopbucket
vibe-coded
category
other
ai_generated
mostly
human_touch
light
status
works-on-my-machine
language (detected)
jacjupyter-notebookplsqlpythonshelltex
license (detected)
mit

The Cap'm's log

The Cap'm wrote this paperwork, not the owner. This repo never submitted itself to SlopScore. The Cap'm picked it by hand: A little vibe-coded python wrapper for libRadtran for xarray-fans like me. Just a hobby becuase I llike xarray; its own README says "A little vibe-coded python wrapper for libRadtran for xarray-fans like me". It carries the MIT license. The disclosures above are his best guess from what GitHub shows.

Is this yours? Commit a real slopscore.md and press Refresh to replace this, or remove the listing in one click. There's no account to make: you log in with GitHub.

README — the repo's own words, folded up so the grading fits on one screen

PyRadtran

pyRadtran logo

Documentation License Tests

A flexible and user-friendly Python wrapper for the libRadtran radiative transfer model (uvspec), with seamless integration into xarray.

Documentation

View the full documentation →

Features

  • Flexible Configuration: Configure simulations via YAML files, Python objects, or dictionaries — with a layered config system that supports user defaults via ~/.pyradtran/config.yaml
  • xarray Integration: Run your configured simulation on an xarray dataset containing all simulation parameters: ds.pyradtran.run()
  • Multi-level Output: Simulate spectral solar/thermal irradiance at multiple altitudes for any space-time vector — in a single call
  • Parallel Processing: Run multiple simulations in parallel for different times, locations, or parameter sweeps
  • Intelligent I/O: The wrapper automatically detects the expected output format and returns results as an xarray Dataset

Installation

Prerequisites

  • Python 3.9+
  • libRadtran installed and accessible on your system
  • Common scientific Python packages (numpy, pandas, xarray)

Install from Source

git clone https://github.com/FranzFlink/pyRadtran.git
cd pyRadtran
pip install -e .

Configuration

pyRadtran uses a layered configuration system:

  1. Built-in defaults are loaded automatically
  2. User master config at ~/.pyradtran/config.yaml overrides defaults (set your local libRadtran paths here once)
  3. Simulation-specific YAML overrides everything else for a given run

Create your master config to point to your local libRadtran installation:

mkdir -p ~/.pyradtran
cat > ~/.pyradtran/config.yaml << 'EOF'
paths:
  libradtran_bin: /path/to/your/libradtran/bin/uvspec
  libradtran_data: /path/to/your/libradtran/share/libRadtran/data
  atmosphere_profile: afglms
  solar_spectrum: NewGuey2003
EOF

Quick Start

import pyradtran  # Registers the .pyradtran xarray accessor
import xarray as xr
import pandas as pd
from pathlib import Path

# Create an input dataset describing the simulation geometry
ds = xr.Dataset(
    coords={
        'time': pd.date_range('2025-04-04', periods=24, freq='h'),
        'latitude': ('time', [61.0] * 24),
        'longitude': ('time', [22.0] * 24),
        'altitude': ('altitude', [10]),
    }
)

# Run the simulation
ds_sim = ds.pyradtran.run(
    config_path=Path('config/spectral_config.yaml'),
)

# Explore the results
print(ds_sim)
ds_sim.edir.plot()

Tip: Always check your input file! Set cleanup_temp_files: false in your config to inspect the generated libRadtran .inp files in the working directory. See the documentation for debugging guidance.

Acknowledgments

  • Emde, C., Buras-Schnell, R., Kylling, A., Mayer, B., Gasteiger, J., Hamann, U., Kylling, J., Richter, B., Pause, C., Dowling, T., and Bugliaro, L.: The libRadtran software package for radiative transfer calculations (version 2.0.1), Geosci. Model Dev., 9, 1647–1672, https://doi.org/10.5194/gmd-9-1647-2016, 2016.
  • B. Mayer and A. Kylling. Technical note: The libRadtran software package for radiative transfer calculations - description and examples of use. Atmos. Chem. Phys., 5: 1855-1877, 2005.
  • Hoyer, S. & Hamman, J. (2017). xarray: N-D labeled Arrays and Datasets in Python. Journal of Open Research Software, 5(1), p.10. DOI: https://doi.org/10.5334/jors.148

License

Please checkout libradtrans license! The pyRadtran project is licensed under the MIT License — see the LICENSE file for details.

Read the rest on GitHub

Scan report · 2026-09-18
  • Prohibited terms or links
  • Repository eligibility
  • slopscore.md paperwork
  • Content policy
  • Risk review

0 comments

log in to comment.

report this listinglog in to report