Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the solar spectrum code to use the included reference spectra #202

Merged
merged 2 commits into from
Nov 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions pyspectral/solar.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,21 @@ class SolarIrradianceSpectrum(object):
in units of W/m^2/micron
"""

def __init__(self, filename, **options):
def __init__(self, filename=TOTAL_IRRADIANCE_SPECTRUM_2000ASTM, **options):
"""Initialize the top of atmosphere solar irradiance spectrum object from file.

By default, this will use the following spectra:
2000 ASTM Standard Extraterrestrial Spectrum Reference E-490-00

To use a different spectra, specify the `filename` when initialising the class.

Input:
filename: Filename of the solar irradiance spectrum
filename: Filename of the solar irradiance spectrum (default: 2000 ASTM)
dlambda:
Delta wavelength: the step in wavelength defining the resolution on
which to integrate/convolute.


"""
self.wavelength = None
self.wavenumber = None
Expand Down
Loading