Processing from the Command Line

Running a Graph

First, create a graph using the Graph Builder in the DAT. The graph does not need any particular source products for the readers as you will be specifying the input products from the command line. Save the graph to a file.

Next, from the command line (DOS prompt in Windows or terminal in Linux) type gpt.bat -h or gpt.sh -h to display the help message.

This tutorial will use the command gpt but you may need to specify gpt.bat in Windows or gpt.sh in Linux.

If the help does not appear, then it may indicate that your environment variables are not setup. Please refer to the installation FAQ.

In order to run a single reader graph type:

gpt graphFile.xml inputProduct

This will process the graph graphFile.xml and use inputProduct as input. The output will be created in a file in the current directory called target.dim

To specify the output target product and location type:

gpt graphFile.xml inputProduct -t c:\output\targetProduct.dim

Terrain Correction

To terrain correct using the graph in the Graphs\Standard Graphs folder

gpt "graphs\Standard Graphs\Orthorectify.xml" "c:\data\input.N1"

Coregistration

To coregister you will need a graph with a ProductSet Reader that will help you specify a list of input products.

Using the Standard Graphs\Coregister.xml graph and an input folder containing all products we wish to coregister together, type:

gpt "graphs\Standard Graphs\Coregister.xml" -inFolder c:\data

Assuming all products are in relatively the same geolocation, this will coregister all product in folder c:\data into a coregistered stack