08.06.2013 Views

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

19.6 User Scripts<br />

the Perl variables $sess and $sess30 contain the identifier of the current session and of 30<br />

sessions earlier respectively. After the call<br />

my $sess = $bpe->getKeys(’$S+-’);<br />

the variable $sess contains the list of sessions within the V MINUS and V PLUS ranges around<br />

the current session as a list delimited by a newline character.<br />

The method RUNBPE::getKey may be used to get the values of one keyword from one<br />

specified program input file. In distinction to the method RUNBPE::getKeys the input file<br />

has to be specified, e.g., $$bpe{U}/INP/<strong>GPS</strong>EST.INP:<br />

$bpe->getKey(inputFileName, keyword);<br />

If the string FILNAM is added as the (optional) third parameter the paths and extensions<br />

are stripped from the results (if applicable). If the string FILEXT is specified as the third<br />

parameter the paths are stripped from the results (but not the extensions). Examples:<br />

my $sampl = $bpe->getKey("$$bpe{U}/INP/<strong>GPS</strong>EST.INP","SAMPLE");<br />

my $lstFil = $bpe->getKey("$$bpe{U}/INP/HELMR1.INP","LISTFIL","FILEXT");<br />

Note that in the examples the panels are accessed in the subdirectory INP in the BPE<br />

temporary directory. The panels are available in the subdirectory INP after the execution<br />

of the program with all menu variables replaced by their values according to the current<br />

session and campaign (see Section 19.7.1).<br />

Another useful method is RUNBPE::putKey which may be used to set a specific value for<br />

a keyword in a program input file. It is called with three arguments to set one value for a<br />

keyword<br />

or with five arguments<br />

$bpe->putKey(inputFileName, keyword, value);<br />

$bpe->putKey(inputFileName, keyword, value, action, selectionFileName);<br />

where “action” is one of REPLACE, APPEND, or PREPEND. The method replaces (appends<br />

or prepends) the selection list of the specified keyword by the content of the file “selectionFileName”.<br />

The “value” is usually “SELECTED”. Note that a script ${X}/EXE/NPUTKEY is<br />

available to perform the same task outside of a BPE user script. Examples:<br />

$bpe->putKey("$$bpe{U}/PAN/CODXTR.INP","FILLST",$$bpe{SYSOUT});<br />

$bpe->putKey("$$bpe{U}/PAN/<strong>GPS</strong>EST.INP","PSFILES",<br />

"SELECTED","REPLACE",$selFil);<br />

<strong>Bernese</strong> <strong>GPS</strong> <strong>Software</strong> <strong>Version</strong> <strong>5.0</strong> Page 403

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!