Getting nan resoult from the pixel reflectnace

55 views
Skip to first unread message

Saeed Ojaghi

unread,
Nov 2, 2020, 11:50:22 PM11/2/20
to Py6S
Hi 
I run the 6s ode and for  the many of the wavelength like as 0.861 I recive the nan.
I don not knoe what is the problem

from Py6S import *
s1 = SixS()
# Atmospheric constituents
s1.atmos_profile = AtmosProfile.UserWaterAndOzone(3.6,0.9)
s1.aero_profile = AeroProfile.Continental
s1.aot550 =0.5
s1.altitudes.set_sensor_satellite_level()
s1.altitudes.set_target_custom_altitude(km)
s1.wavelength = Wavelength(0.861)
s1.run()

Robin Wilson

unread,
Nov 3, 2020, 4:05:50 AM11/3/20
to py...@googlegroups.com
Hi,

Are you only receiving this error for some wavelengths? There is a known issue with the underlying 6S model that gives NaN results for some specific wavelengths - see https://github.com/robintw/Py6S/issues/65 and the graph shown there for more details.

Running for a wavelength of 0.862 works fine for me.

I'm sorry I can't be more help - this seems to be an underlying 6S model issue, and I am not the author of the original 6S model.

Best regards,

Robin
--
You received this message because you are subscribed to the Google Groups "Py6S" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py6s+uns...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/py6s/23026766-d5d4-4e00-afaa-a776ad32ba23n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages