Hey all,
I’m trying to subset a .dim file, created with C2RCC, to specific GeoTiff’s containing just one band from the original .dim file.
See the GPT graph below:
<graph id="2018-04-06 10:36:58">
<version>1.0</version>
<node id="Reader">
<operator>Read</operator>
<sources/>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>Landsat8\preprocessed\classified\C2RCC\LC08_L1TP_198024_20140205_20170426_01_T1.tar.dim</file>
</parameters>
</node>
<node id="Subset">
<operator>Subset</operator>
<sources>
<sourceProduct refid="Reader"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<bandNames>iop_agelb</bandNames>
<copyMetadata>true</copyMetadata>
</parameters>
</node>
<node id="Writer">
<operator>Write</operator>
<sources>
<sourceProduct refid="Subset"/>
</sources>
<parameters class="com.bc.ceres.binding.dom.XppDomElement">
<file>Landsat8\IoP\LC08_L1TP_198024_20140205_20170426_01_T1\iop_agelb.tif</file>
<formatName>GeoTIFF+XML</formatName>
</parameters>
</node>
</graph>
However, when I execute this graph, I get the following error message:
Error: The Product ‘Subset_LC08_L1TP_198024_20140205_20170426_01_T1.tar’ already contains a raster data node with the name ‘iop_agelb’.
This is weird, since I do not define the file ‘Subset_LC08_L1TP_198024_20140205_20170426_01_T1.tar’ anywhere.
Anyone sees what i’m doing wrong here?