Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 4.9
-
Fix Version/s: 4.10
-
Component/s: Graph Processing Framework
-
Labels:None
Description
It should be possible to use 'gpt' command line arguments as template variables in gpt's parameter files.
For example, it should be possible to use the command-line call:
gpt Binning -p param.xml -t CHL_10D.nc -PsuperSam=5 *.N1
And have a param.xml file that references the value of command-line arguments "-t CHL_10D.nc" and " -PsuperSam=5", e.g. as follows:
<parameters>
<startDate>2002-01-01</startDate>
<endDate>2002-01-10</endDate>
<binningConfig>
<numRows>180</numRows>
<superSampling>${superSam}</superSampling>
<maskExpr>true</maskExpr>
<aggregators>
<aggregator>
<type>AVG</type>
<varName>chl</varName>
<weightCoeff>1.0</weightCoeff>
<fillValue>NaN</fillValue>
</aggregator>
</aggregators>
</binningConfig>
<formatterConfig>
<outputType>Product</outputType>
<outputFile>${gpt.targetFile}</outputFile>
</formatterConfig>
</parameters>
For example, it should be possible to use the command-line call:
gpt Binning -p param.xml -t CHL_10D.nc -PsuperSam=5 *.N1
And have a param.xml file that references the value of command-line arguments "-t CHL_10D.nc" and " -PsuperSam=5", e.g. as follows:
<parameters>
<startDate>2002-01-01</startDate>
<endDate>2002-01-10</endDate>
<binningConfig>
<numRows>180</numRows>
<superSampling>${superSam}</superSampling>
<maskExpr>true</maskExpr>
<aggregators>
<aggregator>
<type>AVG</type>
<varName>chl</varName>
<weightCoeff>1.0</weightCoeff>
<fillValue>NaN</fillValue>
</aggregator>
</aggregators>
</binningConfig>
<formatterConfig>
<outputType>Product</outputType>
<outputFile>${gpt.targetFile}</outputFile>
</formatterConfig>
</parameters>
Issue Links
- see also
-
BEAM-1301
gpt should be able to load the configuration saved from the UI
-
- gpt.operator (given by the 'operator' argument)
- gpt.graphFile (given by the 'graph' argument)
- gpt.parametersFile (given by the -p option)
- gpt.targetFile (given by the -t option)
- gpt.targetFormat (given by the -f option)