Skip to main content

Models for solar flux density at 1 AU

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rms_solar-2.0.2.tar.gz (521.3 kB view details)

Uploaded Source

Built Distribution

rms_solar-2.0.2-py3-none-any.whl (509.1 kB view details)

Uploaded Python 3

File details

Details for the file rms_solar-2.0.2.tar.gz.

File metadata

  • Download URL: rms_solar-2.0.2.tar.gz
  • Upload date:
  • Size: 521.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for rms_solar-2.0.2.tar.gz
Algorithm Hash digest
SHA256 2317fc5f15eeb54ac62d56bdbe69d8e964663a9daefef714986930cd76a0dd45
MD5 88b1a56d24b7f53f923b77bddd2dcefd
BLAKE2b-256 a0c6fbcf4ca6dc4733302589a74991dad8b7b4237d9d0f1fe7ffd8072a355b5c

See more details on using hashes here.

File details

Details for the file rms_solar-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: rms_solar-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 509.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for rms_solar-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4dcd56fc80cca3d78b07efff3e2fdd5d8848dcf1f44de6ba2f816b405e7bfdc
MD5 1c4248bd43a7453205c1a63351fe0691
BLAKE2b-256 40f0e1d977cbdb168b621a123ddffb6f365cfb5f10a3786c2f7b671147b12026

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page