Skip to content

Commit

Permalink
bug on the subtract in memls_legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainp committed Feb 11, 2018
1 parent dac0986 commit 9de5576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smrt/utils/memls_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def run(sensor, snowpack, scattering_choice=ABORN, atmosphere=None, memls_path=N
print("Using MEMLS with substrate has not been tested. Provide feeback if it works (or not)")
if isinstance(sensor.frequency, collections.Sequence):
raise SMRTError("Sensor must be single frequency for runnning memls_legagcy")
m = snowpack.substrate.reflection_matrix(sensor.frequency, snowpack.layer[-1].permittivity, np.cos(sensor.theta))
m = snowpack.substrate.specular_reflection_matrix(sensor.frequency, snowpack.layer[-1].permittivity, np.cos(sensor.theta))
ground_reflH = m.diagonal()[1::2]
ground_reflV = m.diagonal()[0::2]

Expand Down

0 comments on commit 9de5576

Please sign in to comment.