Did you follow the steps from some document for the LAI calculation? If so, it would be good to mention the document so any lack of clarity can be corrected. How was the graph_cal_lai.xml
file created? Do you have experience creating and running batch files?
The names of the input and output (GeoTIFF) data files appears to be embedded in the .xml
file. In that case, there is no need for a .bat
file. Try running:
<snap_install_dir>\bin\gpt -e <full_name_with_drive_and_directory_of_xmlfile>
A batch file may be useful if you want to do the same calculation for more than a few input files, but first you should verify that the processing works as needed with one example. The .xml
file is an ordinary text file, and can be edited with any editor to change the filenames or other settings, but many advanced editors have helpful modes for .xml
files.
Note that Microsoft has several command-line scripting programs: cmd
and powershell
are the most recent. If you have never written scripts for cmd
you may find powershell
is a better choice – it provides an integrated development environment (IDE) and more advanced tools for monitoring and controlling processes.