Can't get GPT to accept sourcefile

I have a graph XML which I’m trying to run using GPT, but no matter what I try I can’t get the program to successfully feed the source file to the graph.

The XML starts like this:

<graph id="Graph">
  <node id="Read">
    <parameters class="com.bc.ceres.binding.dom.XppDomElement">

But when I try to call gpt with gpt resample.xml data/S2A[...].SAFE it prints a bunch of errors as it tries to use different plugins, and exits with

Error: [NodeId: Read] No product reader found for file ${source}

Which looks like it’s just not substituting the ${source} target in the XML file with the path to the source, despite this looking like the way I’ve seen gpt used in the documentation.

I’ve tried calling it as gpt resample.xml -Ssource=S2A... as well, but it fails as well, giving the following error message

Error: [NodeId: Read] No product reader found for file ReadOp@source

which doesn’t look like exactly the same problem but is still clearly not working.

Any help would be much appreciated.

Use gpt resample.xml -Psource=S2A...

You can use the -S-option when you don’t have an explicit ReadOp and use the automatic read capabilities of gpt.
In your case you use it as a parameter and thus you have to use the -P-option.

Fantastic! Thanks for saving the day again, Marco