Update modtran.py
a little bug. Used the variable wid instead of the vector 'widths'. This won't have a big impact on AVNG type instruments because there isn't a lot of difference in FWHM between the bands. But for multispectral instrument with large variations in FWHM it would have a big impact.
@@ -324,8 +324,8 @@ class ModtranRT(TabularRT):
global_flux_no_surface = global_flux_1*(1.-rfl_1 * sphalbs)
diffuse_flux_no_surface = global_flux_no_surface - direct_flux_radiance * coszen
- t_down_dirs = (direct_flux_radiance * coszen / wid / np.pi) / TOA_Irad
- t_down_difs = (diffuse_flux_no_surface / wid / np.pi) / TOA_Irad
+ t_down_dirs = (direct_flux_radiance * coszen / widths / np.pi) / TOA_Irad
+ t_down_difs = (diffuse_flux_no_surface / widths / np.pi) / TOA_Irad
# total transmittance
transms = (t_down_dirs + t_down_difs) * (t_up_dirs + t_up_difs)
