Skip to content

Commit

Permalink
Ensure that the soil reflectance spectra are different if the user do…
Browse files Browse the repository at this point in the history
…esn not provide one. This was a bug
  • Loading branch information
Jose Gomez-Dans committed Feb 22, 2016
1 parent 843bcc5 commit d578f27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prosail/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run_prosail (n,cab,car,cbrown,cw,cm,lai,lidfa,lidfb,rsoil,psoil,hspot,
if soil_spectrum2 is not None:
assert ( len(soil_spectrum1) == 2101 )
else:
soil_spectrum2 = spectral_libs.rsoil1
soil_spectrum2 = spectral_libs.rsoil2

rho = prosail (n,cab,car,cbrown,cw,cm,lai,lidfa,lidfb,rsoil,psoil,hspot,
tts,tto,psi,typelidf, soil_spectrum1, soil_spectrum2 )
Expand Down Expand Up @@ -130,7 +130,7 @@ def run_sail (refl,trans,lai,lidfa,lidfb,rsoil,psoil,hspot,tts,tto,psi,typelidf,
if soil_spectrum2 is not None:
assert ( len(soil_spectrum1) == 2101 )
else:
soil_spectrum2 = spectral_libs.rsoil1
soil_spectrum2 = spectral_libs.rsoil2

rho = sail (refl,trans,lai,lidfa,lidfb,rsoil,psoil,hspot,tts,tto,psi,typelidf,
soil_spectrum1, soil_spectrum2 )
Expand Down

0 comments on commit d578f27

Please sign in to comment.