@@ -42,9 +42,7 @@ public class OlciSlstrOp extends BasisOp {
4242 private Product targetProduct ;
4343
4444 private boolean outputOlciRadiance ;
45- private boolean outputOlciRad2Refl ;
4645 private boolean outputSlstrRadiance ;
47- private boolean outputSlstrRad2Refl ;
4846
4947 @ Parameter (description = "The list of OLCI radiance bands to write to target product." ,
5048 label = "Select OLCI TOA radiances to write to the target product" ,
@@ -58,18 +56,6 @@ public class OlciSlstrOp extends BasisOp {
5856 defaultValue = "" )
5957 private String [] olciRadianceBandsToCopy ;
6058
61- @ Parameter (description = "The list of OLCI reflectance bands to write to target product." ,
62- label = "Select OLCI TOA reflectances to write to the target product" ,
63- valueSet = {
64- "Oa01_reflectance" , "Oa02_reflectance" , "Oa03_reflectance" , "Oa04_reflectance" , "Oa05_reflectance" ,
65- "Oa06_reflectance" , "Oa07_reflectance" , "Oa08_reflectance" , "Oa09_reflectance" , "Oa10_reflectance" ,
66- "Oa11_reflectance" , "Oa12_reflectance" , "Oa13_reflectance" , "Oa14_reflectance" , "Oa15_reflectance" ,
67- "Oa16_reflectance" , "Oa17_reflectance" , "Oa18_reflectance" , "Oa19_reflectance" , "Oa20_reflectance" ,
68- "Oa21_reflectance"
69- },
70- defaultValue = "" )
71- private String [] olciReflBandsToCopy ;
72-
7359 @ Parameter (description = "The list of SLSTR radiance bands to write to target product." ,
7460 label = "Select SLSTR TOA radiances to write to the target product" ,
7561 valueSet = {
@@ -81,22 +67,6 @@ public class OlciSlstrOp extends BasisOp {
8167 defaultValue = "" )
8268 private String [] slstrRadianceBandsToCopy ;
8369
84- @ Parameter (description = "The list of SLSTR reflectance bands to write to target product." ,
85- label = "Select SLSTR TOA reflectances to write to the target product" ,
86- valueSet = {
87- "S1_reflectance_an" , "S2_reflectance_an" , "S3_reflectance_an" ,
88- "S4_reflectance_an" , "S5_reflectance_an" , "S6_reflectance_an" ,
89- "S4_reflectance_bn" , "S5_reflectance_bn" , "S6_reflectance_bn" ,
90- "S4_reflectance_cn" , "S5_reflectance_cn" , "S6_reflectance_cn"
91- },
92- defaultValue = "" )
93- private String [] slstrReflBandsToCopy ;
94-
95- @ Parameter (defaultValue = "false" ,
96- label = " Copy cloud-related SLSTR flag bands to the target product" ,
97- description = " If applied, cloud-related SLSTR flag bands and masks are copied to the target product " )
98- private boolean copySlstrCloudFlagBands ;
99-
10070 @ Parameter (defaultValue = "false" ,
10171 label = " Write NN value to the target product" ,
10272 description = " If applied, write NN value to the target product " )
@@ -119,7 +89,6 @@ public class OlciSlstrOp extends BasisOp {
11989 private Product postProcessingProduct ;
12090
12191 private Product olciRad2reflProduct ;
122- private Product slstrRad2reflProduct ;
12392 private Product ctpProduct ;
12493 private Product waterMaskProduct ;
12594
@@ -135,10 +104,8 @@ public void initialize() throws OperatorException {
135104 }
136105
137106 outputOlciRadiance = olciRadianceBandsToCopy != null && olciRadianceBandsToCopy .length > 0 ;
138- outputOlciRad2Refl = olciReflBandsToCopy != null && olciReflBandsToCopy .length > 0 ;
139107
140108 outputSlstrRadiance = slstrRadianceBandsToCopy != null && slstrRadianceBandsToCopy .length > 0 ;
141- outputSlstrRad2Refl = slstrReflBandsToCopy != null && slstrReflBandsToCopy .length > 0 ;
142109
143110 preProcess ();
144111
@@ -148,9 +115,7 @@ public void initialize() throws OperatorException {
148115 olciSlstrIdepixProduct .setName (sourceProduct .getName () + "_IDEPIX" );
149116 olciSlstrIdepixProduct .setAutoGrouping ("Oa*_radiance:Oa*_reflectance:S*_radiance:S*_reflectance" );
150117
151- if (copySlstrCloudFlagBands ) {
152- OlciSlstrUtils .copySlstrCloudFlagBands (sourceProduct , olciSlstrIdepixProduct );
153- }
118+ OlciSlstrUtils .copySlstrCloudFlagBands (sourceProduct , olciSlstrIdepixProduct );
154119
155120 if (computeCloudBuffer || computeCloudShadow ) {
156121 postProcess (olciSlstrIdepixProduct );
@@ -186,18 +151,10 @@ private Product createTargetProduct(Product idepixProduct) {
186151 IdepixIO .addRadianceBands (sourceProduct , targetProduct , olciRadianceBandsToCopy );
187152 }
188153
189- if (outputOlciRad2Refl ) {
190- OlciSlstrUtils .addOlciRadiance2ReflectanceBands (olciRad2reflProduct , targetProduct , olciReflBandsToCopy );
191- }
192-
193154 if (outputSlstrRadiance ) {
194155 IdepixIO .addRadianceBands (sourceProduct , targetProduct , slstrRadianceBandsToCopy );
195156 }
196157
197- if (outputSlstrRad2Refl ) {
198- OlciSlstrUtils .addSlstrRadiance2ReflectanceBands (slstrRad2reflProduct , targetProduct , slstrReflBandsToCopy );
199- }
200-
201158 if (outputSchillerNNValue ) {
202159 ProductUtils .copyBand (IdepixConstants .NN_OUTPUT_BAND_NAME , idepixProduct , targetProduct , true );
203160 }
@@ -207,7 +164,6 @@ private Product createTargetProduct(Product idepixProduct) {
207164
208165 private void preProcess () {
209166 olciRad2reflProduct = OlciSlstrUtils .computeRadiance2ReflectanceProduct (sourceProduct , Sensor .OLCI );
210- slstrRad2reflProduct = OlciSlstrUtils .computeRadiance2ReflectanceProduct (sourceProduct , Sensor .SLSTR_500m );
211167
212168 HashMap <String , Object > waterMaskParameters = new HashMap <>();
213169 waterMaskParameters .put ("resolution" , IdepixConstants .LAND_WATER_MASK_RESOLUTION );
@@ -230,7 +186,6 @@ private void setClassificationInputProducts() {
230186 classificationInputProducts = new HashMap <>();
231187 classificationInputProducts .put ("l1b" , sourceProduct );
232188 classificationInputProducts .put ("reflOlci" , olciRad2reflProduct );
233- classificationInputProducts .put ("reflSlstr" , slstrRad2reflProduct );
234189 classificationInputProducts .put ("waterMask" , waterMaskProduct );
235190 }
236191
0 commit comments