Closed fnemina closed 5 years ago
@QiaoFeng0419 I moved your issue here because it will be more related to code here.
Just change this line
rho_t, tau = RunWavelengths(s, wl/1000, view, taur=True)/np.cos(np.pi*view/180.0)
to
taur = ray.getTaur()
rho_t, tau = RunWavelengths(s, wl/1000, view, taur=taur)/np.cos(np.pi*view/180.0)
and it should work.
Also, the getRadiance for Rayleigh that I coded doesn't returns normalized radiances. So you should normalize it too, by dividing by np.cos(np.pi*view/180.0)
, or you should not normalize the radiances calculated by the OSOAA. Both options are fine but you should be consistent. Here are some plots for comparison.
No normalization applied to OSOAA results
Normalization only applied to OSOAA results
Here is the code I used modifying yours.
Best regards Fran
I think the biggest problem with the errors is that the results of getRadiance are not normalized.
The normalized results are much better.
Thank you.
Can your boss let you share the code that generates the lookup table?
Hello Qiao Feng, As long as both radiances are normalized or not normalized it's ok. I didn't normalize the getRadiance function because I am following the implementation of the seadas-L2Gen code and was going to do it at the end.
About the other code. We are evaluating it. The code is not yet in a stage to make it public. But I'll write back to you as soon as we can share it.
I use the method you mentioned to compare NASA Seawifs Rayleigh lookup table with OSOAA Rayleigh scattering. But there are some differences between my results and yours. My results:
Relative error is as high as 10%.
My code is here
So, i have some question:
The
tau
which in NASA Seawifs Rayleigh lookup table cannot be used to calculate transmittance because OSOAA has its own Tau.What is the step size of the parameters in the Rayleigh scattering lookup table you generated? Can you share your code?
Originally posted by @QiaoFeng0419 in https://github.com/fnemina/AtmosphericCorrection/issues/1#issuecomment-512065537