robintw / Py6S

A Python interface to the 6S Radiative Transfer Model
GNU Lesser General Public License v3.0
191 stars 105 forks source link

model error #44

Closed lizaoye closed 5 years ago

lizaoye commented 5 years ago

in early.ground_reflectance = GroundReflectance.HeterogeneousLambertian(GroundReflectance.GreenVegetation) TypeError: HeterogeneousLambertian() missing 2 required positional arguments: 'ro_target' and 'ro_env'

robintw commented 5 years ago

The HeterogeneousLambertian function takes three arguments giving the diameter of the target, the reflectance of the target and the reflectance of the environment around the target. You've only provided one argument, which is a single reflectance.

You might be wanting to use GroundReflectance.HomogeneousLambertian which just takes a single argument of the ground reflectance.

lizaoye commented 5 years ago

The HeterogeneousLambertian function takes three arguments giving the diameter of the target, the reflectance of the target and the reflectance of the environment around the target. You've only provided one argument, which is a single reflectance.

You might be wanting to use GroundReflectance.HomogeneousLambertian which just takes a single argument of the ground reflectance.

Thank you very much for you reply, I am know study the "case study", and the program you you provide is "early.ground_reflectance = GroundReflectance.HeterogeneousLambertian(GroundReflectance.GreenVegetation)" at line 19, can you help me ,thank you very much

lizaoye commented 5 years ago

I am sorry , I am a new student in this field, so please help me , when I run the case study , it has some error I can not solve them, and I am a question about: I just copy the case study and run it ? or Do I have to change some parameters to run it ?

thank you very much

all my best wishes

lizaoye commented 5 years ago

sorry to disturb you , very very sorry , my error because I write a error function name (I write ' HeterogeneousLambertian', but the correct function is 'HomegeneousLambertian')