Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is this code not working for new version python? #23

Open
Dash-RSer opened this issue Apr 24, 2024 · 2 comments
Open

Why is this code not working for new version python? #23

Dash-RSer opened this issue Apr 24, 2024 · 2 comments

Comments

@Dash-RSer
Copy link

When work with python=3.7 or later, the code will sometimes give reflectance different from that in python =3.6. Why?

@jgomezdans
Copy link
Owner

jgomezdans commented May 2, 2024 via email

@Dash-RSer
Copy link
Author

Dash-RSer commented Jun 3, 2024

For example,
prosail.run_prosail(n=1.5, cab = 40, cbrown = 0, car = 8, cw = 0.01, cm = 0.01, lai = 2, lidfa = 60, hspot = 0.3, tts = 30, tto = 10, psi = 0, psoil = 0.2, rsoil = 0.8)
return
array([ 0.02534463, 0.02533004, 0.02530949, ..., 0.03163064, 0.03149598, 0.03150244])
with python = 3.6.8 but return all nan with python = 3.7.16.

Also, if set tto to be 0, the code return
array([ 0.02271773, 0.02270381, 0.02268457, ..., 0.02893265, 0.02880744, 0.02881312])
with python = 3.6.8 but return
array([0.02052408, 0.02048877, 0.02045012, ..., 0.03262565, 0.03253539, 0.03250874])
with python = 3.7.16, which is different from the above ref.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants