From d578f27ed5192d00bdc807c5780a5fbda1ff11fe Mon Sep 17 00:00:00 2001 From: Jose Gomez-Dans Date: Mon, 22 Feb 2016 16:27:46 +0000 Subject: [PATCH] Ensure that the soil reflectance spectra are different if the user doesn not provide one. This was a bug --- prosail/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prosail/__init__.py b/prosail/__init__.py index 51f48c9..b1c287e 100644 --- a/prosail/__init__.py +++ b/prosail/__init__.py @@ -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 ) @@ -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 )