Skip to main content

GitHub release; latest by date GitHub Release Date Test Status Documentation Status Code coverage
PyPI - Version PyPI - Format PyPI - Downloads PyPI - Python Version
GitHub commits since latest release GitHub commit activity GitHub last commit
Number of GitHub open issues Number of GitHub closed issues Number of GitHub open pull requests Number of GitHub closed pull requests
GitHub License Number of GitHub stars GitHub forks

Introduction

solar is a Python module that provides solar flux density from a variety of models. These models are currently supported:

Name Wavelength range (microns)
Colina 0.1195 to 2.5
Kurucz 0.15 to 300
Rieke 0.2 to 30
STIS 0.1195 to 2.7
STIS_Rieke 0.1195 to 30

solar is a product of the PDS Ring-Moon Systems Node.

Installation

The solar module is available via the rms-solar package on PyPI and can be installed with:

pip install rms-solar

Getting Started

The solar module provides five functions:

  • flux_density: Compute the flux density of a solar model in the specified units.
  • bandpass_flux_density: Compute the average solar flux density over a filter bandpass.
  • mean_flux_density: Compute average solar flux density over the bandpass of a "boxcar" filter.
  • bandpass_f: Compute the solar F averaged over a filter bandpass.
  • mean_f: Compute average solar F over the bandpass of a "boxcar" filter.

These functions take or return Tabulation objects. For more information on Tabulation objects see the rms-tabulation package.

Details of each function are available in the module documentation.

Here is an example that plots the solar flux density for the visual range of 400 to 700 nm using the Rieke model at 2 AU in units of nm for wavelength and W/m^2/nm for flux:

import matplotlib.pyplot as plt
import solar

flux = solar.flux_density(model='rieke', xunits='nm', units='W/m^2/nm', solar_range=2)
flux = flux.clip(400, 700)
plt.plot(flux.x, flux.y)
plt.show()

Contributing

Information on contributing to this package can be found in the Contributing Guide.

Links

Licensing

This code is licensed under the Apache License v2.0.

Metadata

Release files for rms-solar 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rms-solar 2.1.0
File Size Uploaded Provenance Actions
rms_solar-2.1.0.tar.gz 521.6 kB Without provenance Details for rms_solar-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rms-solar 2.1.0
File Interpreter ABI Platform Actions
rms_solar-2.1.0-py3-none-any.whl Python 3 none any Details for rms_solar-2.1.0-py3-none-any.whl

Total release size: 1.0 MB

Release files / rms_solar-2.1.0.tar.gz

Download URL rms_solar-2.1.0.tar.gz
Size 521.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f001b0c3a57092ae39368629da942a11a936c6122f250f119edae8f39bf76bc5
BLAKE2b-256 checksum
How to use checksums
a3ac6ec24172d975e04c5570d1abaec2f16948d38a316f5cd8c01ab0e1930a0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / rms_solar-2.1.0-py3-none-any.whl

Download URL rms_solar-2.1.0-py3-none-any.whl
Size 509.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82875e3be268f07f2514be12a71eaf423fb4c8fa0a11513f39fe9e6caf16270e
BLAKE2b-256 checksum
How to use checksums
dc81e6bf9eb07363489bff14c1d88c2c242a519d066d78e029077cd09da97826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for rms-solar 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page