Skip to content

Commit

Permalink
implement Robledano et al. 2023 (B=n2)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentwilder committed Sep 4, 2024
1 parent d6bbfea commit dade7fd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/snow.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from scipy import interpolate


def art(ssa, c, lwc, cos_sza, cos_vza, theta, sensor_wavelengths,
g=0.75, b=1.6, pollutant='Dust'):
def art(ssa, c, lwc, cos_sza, cos_vza, theta, sensor_wavelengths, pollutant='Dust'):
'''
https://doi.org/10.3389/fenvs.2021.644551
Expand All @@ -32,6 +31,7 @@ def art(ssa, c, lwc, cos_sza, cos_vza, theta, sensor_wavelengths,
# Adjust wavelengths
wavelengths = sensor_wavelengths*1e-9


# Ensure optimization stays in bounds
if ssa<= 0.0 or c < 0.0 or lwc < 0.0 or cos_sza <= 0.0 :
# This will give a very wild result but just scipy optimization will turn around
Expand All @@ -50,6 +50,10 @@ def art(ssa, c, lwc, cos_sza, cos_vza, theta, sensor_wavelengths,
# Get ice and soot imag indices
r_ice,k_ice = refice2016(wavelengths)

# Set snow optical shapes
g = 0.82 # Middle range of Robledano et al. 2023
b = r_ice**2 #B=n2 from Robledano et al. 2023

# Load in Segelstein 81 water data
water_path = './data/segelstein81_index.csv'
if not os.path.exists(water_path):
Expand Down Expand Up @@ -229,4 +233,4 @@ def refsoot_imag(wavelengths):

################################
# BORROWED CODE HERE FROM TARTES
################################
################################

0 comments on commit dade7fd

Please sign in to comment.