Hi,
Using the script below, I can convert the virtual Chl-a band into a visible band and export it to the original product. But doing this bulk processing, it also changes the .dim product and I cannot apply bulk processing (some other process) on this .dim file. Kindly advise.
for folder in $(dir -d S2*.dim); do gpt chl.xml -t $folder -f BEAM-DIMAP $folder; done
<graph id="chl">
<version>1.0</version>
<node id="ch conc">
<operator>BandMaths</operator>
<sources>
<sourceProducts>${sourceProducts}</sourceProducts>
</sources>
<parameters>
<targetBands>
<targetBand>
<name>CHL</name>
<type>float32</type>
<expression>conc_chl</expression>
<description/>
<unit/>
<noDataValue>0.0</noDataValue>
</targetBand>
</targetBands>
</parameters>
</node>
</graph>