# Basic Radiative Transfer Calculation with Disco¶

In this example we will calculate radiances from 340 nm to 700 nm in 1 nm steps using SASKTRAN-Disco. The geometry will be configured to be TEMPO looking at the ARG office on June 2 2017 at 3:14 PM and the atmosphere will be configured to consider Rayleigh scattering, O3, and NO2.

[31]:

%matplotlib inline

[32]:

import sasktran as sk
import numpy as np
import matplotlib.pyplot as plt

[33]:

""" Geometry configuration.
First we need to configure our sk.Geometry object. This object specifies the
line of sight vectors as well as the solar position (based on mean mjd).
"""

# make the look vector from TEMPO to the ARG office
tempo = sk.Geodetic()
tempo.from_lat_lon_alt(0, -100, 35786000)
geometry.from_lat_lon(
lats=52.131638,
lons=-106.633873,
elevations=0,
mjd=57906.843,
observer=tempo
)

[34]:

""" Atmosphere configuration.
Next we need to configure our sk.Atmosphere object. This object specifies all
atmospheric and surface properties to the engine.
"""
atmosphere = sk.Atmosphere()

atmosphere['rayleigh'] = sk.Species(sk.Rayleigh(), sk.MSIS90())
atmosphere['o3'] = sk.Species(sk.O3OSIRISRes(), sk.Labow())
atmosphere['no2'] = sk.Species(sk.NO2OSIRISRes(), sk.Pratmo())

atmosphere.brdf = sk.Kokhanovsky()

[35]:

""" Radiance calculation.
We are now ready to perform the radiance calculation. Note that the engine can
be default constructed (with properties set after construction), or the
properties can be passed to the constructor.
"""
wavelengths = np.linspace(340,700, 361)
engine = sk.EngineDO(geometry=geometry, atmosphere=atmosphere, wavelengths=wavelengths)

[36]:

# Make plot