I'm trying to follow the Orfeo Toolbox Top-of-atmosphere Reflectance to Surface Reflectance workflow. Their equations (12.10, 12.11) for calculating the ground reflectance list the upward and downward transmittance. I'm trying to map these values to what Py6S outputs, but I'm not sure I'm grabbing the correct outputs. Below is what I have. Am I correct? Note: OTB's spherical albedo should be Sx (typo on their part).
OTB Documentation
#Run the Atmosphere
sixS.run()
#Get Atmospheric output
Sx = sixS.outputs.spherical_albedo
rho_atmos = sixS.outputs.atmospheric_intrinsic_reflectance
tGas = sixS.outputs.total_gaseous_transmittance
#TODO Check to see if these are the correct Tup and Tdown Values I need
Tup = sixS.outputs.transmittance_global_gas.upward
Tdown = sixS.outputs.transmittance_global_gas.downward
#TOA Reflectance to Surface Reflectance Calculation
A = np.divide(dataOut - rho_atmos,Tup * Tdown * tGas)
dataOut = np.divide(A,1 + Sx * A)
Thanks,
Craig