21 #ifndef otbRadiometryCorrectionParametersToAtmosphericRadiativeTerms_h
22 #define otbRadiometryCorrectionParametersToAtmosphericRadiativeTerms_h
51 unsigned int NbBand = WavelengthSpectralBandVector->Size();
53 radTermsOut->ValuesInitialization(NbBand);
55 double atmosphericReflectance(0.);
56 double atmosphericSphericalAlbedo(0.);
57 double totalGaseousTransmission(0.);
58 double downwardTransmittance(0.);
59 double upwardTransmittance(0.);
60 double upwardDiffuseTransmittance(0.);
61 double upwardDirectTransmittance(0.);
62 double upwardDiffuseTransmittanceForRayleigh(0.);
63 double upwardDiffuseTransmittanceForAerosol(0.);
65 for (
unsigned int i = 0; i < NbBand; ++i)
67 atmosphericReflectance = 0.;
68 atmosphericSphericalAlbedo = 0.;
69 totalGaseousTransmission = 0.;
70 downwardTransmittance = 0.;
71 upwardTransmittance = 0.;
72 upwardDiffuseTransmittance = 0.;
73 upwardDirectTransmittance = 0.;
74 upwardDiffuseTransmittanceForRayleigh = 0.;
75 upwardDiffuseTransmittanceForAerosol = 0.;
76 SIXSTraits::ComputeAtmosphericParameters(
122 radTermsOut->SetIntrinsicAtmosphericReflectance(i, atmosphericReflectance);
123 radTermsOut->SetSphericalAlbedo(i, atmosphericSphericalAlbedo);
124 radTermsOut->SetTotalGaseousTransmission(i, totalGaseousTransmission);
125 radTermsOut->SetDownwardTransmittance(i, downwardTransmittance);
126 radTermsOut->SetUpwardTransmittance(i, upwardTransmittance);
127 radTermsOut->SetUpwardDiffuseTransmittance(i, upwardDiffuseTransmittance);
128 radTermsOut->SetUpwardDirectTransmittance(i, upwardDirectTransmittance);
129 radTermsOut->SetUpwardDiffuseTransmittanceForRayleigh(i, upwardDiffuseTransmittanceForRayleigh);
130 radTermsOut->SetUpwardDiffuseTransmittanceForAerosol(i, upwardDiffuseTransmittanceForAerosol);
131 radTermsOut->SetWavelengthSpectralBand(i, paramAcqui->
GetWavelengthSpectralBand()->GetNthElement(i)->GetCenterSpectralValue());