Skip to content

Commit

Permalink
Remove unnecessary computing_meta handling in crefl
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Apr 12, 2022
1 parent ca3c144 commit 6dbb75e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions satpy/modifiers/_crefl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,19 +404,15 @@ def _space_mask_height(lon, lat, avg_elevation):
return height


def _run_crefl(refl, mus, muv, phi, height, sensor_name, *coeffs, computing_meta=False):
if computing_meta:
return refl
def _run_crefl(refl, mus, muv, phi, height, sensor_name, *coeffs):
atm_vars_cls = _VIIRSAtmosphereVariables if sensor_name.lower() == "viirs" else _MODISAtmosphereVariables
atm_vars = atm_vars_cls(mus, muv, phi, height, *coeffs)
sphalb, rhoray, TtotraytH2O, tOG = atm_vars()
return _correct_refl(refl, tOG, rhoray, TtotraytH2O, sphalb)


def _run_crefl_abi(refl, mus, muv, phi, solar_zenith, sensor_zenith, height,
*coeffs, computing_meta=False):
if computing_meta:
return refl
*coeffs):
a_O3 = [268.45, 0.5, 115.42, -3.2922]
a_H2O = [0.0311, 0.1, 92.471, -1.3814]
a_O2 = [0.4567, 0.007, 96.4884, -1.6970]
Expand Down

0 comments on commit 6dbb75e

Please sign in to comment.