Difference between revisions of "Command line running (Linux)"

From PlanarRad
Jump to navigation Jump to search
(Created page with " PlanarRad can be run from the command line without opening the GUI window, the run parameters are specified in a simple text file. The executable for command line running is ...")
 
Line 8: Line 8:
 
Assuming 'slabtool_free' is in your path. Note there are no spaces around the '='.
 
Assuming 'slabtool_free' is in your path. Note there are no spaces around the '='.
  
The GUI version of PlanarRad automatically builds files for 1) sky radiance distribution; 2) the air-water interface and 3) the phase function as determined from the settings. The command line version requires these files to be pre-built and the paths to them will be specified in the input text file. The easiest way to build these files is to run the GUI version of PlanarRad with required settings and the files can be found in the output directory.  
+
The GUI version of PlanarRad automatically builds files for 1) sky radiance distribution; 2) the air-water interface; and 3) the phase function as determined from the settings. The command line version requires these files to be pre-built and the paths to them will be specified in the input text file. The easiest way to build these files is to run the GUI version of PlanarRad with required settings and the files can be found in the output directory.  
  
 
For example, following the instructions here: [[BRDF of a material with isotropic phase function]] will gives rise to these files:
 
For example, following the instructions here: [[BRDF of a material with isotropic phase function]] will gives rise to these files:
  
 
<pre>
 
<pre>
 +
iface_rdd_HL18x24_1
 +
input_rd_HL18x24_1
 +
pf_rdd_HL18x24_1
 +
</pre>
  
</pre>
+
Which are binary files that tabulate the air-water interface, sky radiance and phase function.

Revision as of 19:35, 7 January 2015

PlanarRad can be run from the command line without opening the GUI window, the run parameters are specified in a simple text file. The executable for command line running is called "slabtool_free", and if the parameters are saved in the file 'params.txt' then under Linux it is run like this:

slabtool_free params=params.txt

Assuming 'slabtool_free' is in your path. Note there are no spaces around the '='.

The GUI version of PlanarRad automatically builds files for 1) sky radiance distribution; 2) the air-water interface; and 3) the phase function as determined from the settings. The command line version requires these files to be pre-built and the paths to them will be specified in the input text file. The easiest way to build these files is to run the GUI version of PlanarRad with required settings and the files can be found in the output directory.

For example, following the instructions here: BRDF of a material with isotropic phase function will gives rise to these files:

iface_rdd_HL18x24_1 
input_rd_HL18x24_1
pf_rdd_HL18x24_1

Which are binary files that tabulate the air-water interface, sky radiance and phase function.