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. <strong>Bernese</strong> Processing Engine (BPE)<br />

The slave script on its turn gets the name of one selection file. It may then put the list<br />

of files in that file as file selection list into the program panel using a command like (see<br />

Section 19.6.5.1)<br />

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

10: "SELECTED","REPLACE",$$bpe{PARAM1});<br />

In order to pass BPE parameters to the slave script their values may be added to<br />

CONTROL FILE as a blank-delimited list by replacing line 15 in the master script example<br />

above by, e.g.,<br />

15: print TMP "$file $$bpe{PARAM2} $$bpe{PARAM3}\n";<br />

In the slave script the values of the parameters is then accessible through the variables<br />

$$bpe{PARAM2} and $$bpe{PARAM3} (while $$bpe{PARAM1} contains the name of the baseline).<br />

The <strong>Bernese</strong> <strong>GPS</strong> <strong>Software</strong> provides utilities allowing file-wise or cluster-wise parallelization<br />

in an easy way. See Section 19.6.5.2 for details or check the example user scripts delivered<br />

with the software in the directory ${X}/USERSCPT and copied during the installation to the<br />

user’s environment of ${U}/SCRIPT.<br />

19.6.5 Useful Utilities for User Scripts<br />

The example in Section 19.6.3 shows how the methods defined in ${BPE}/RUNBPE.pm can<br />

be used in user scripts that inherit the RUNBPE behavior. The general syntax is<br />

$bpe->functionName(list_of_arguments);<br />

In addition useful functions can be found in the Perl module ${BPE}/bpe util.pm. Several<br />

of them are just shortcuts that simplify the usage of methods.<br />

19.6.5.1 Accessing Variables and Program Panels<br />

In Section 19.6.3 one particularly useful method – RUNBPE::getKeys – has been introduced.<br />

This method can be used to read a list of keyword values from menu input files<br />

(${U}/PAN/MENU VAR.INP, ${U}/PAN/MENU EXT.INP, etc.) and may, e.g., be used to get<br />

menu time variables or path and extensions of specific file types. It takes one or more keyword<br />

names as its arguments and returns an array of all relevant keyword values. The special<br />

feature of this method is that all menu variables (see Section 18.5) are correctly expanded.<br />

I.e., variables that depend on the currently processed campaign or session are correctly set.<br />

E.g., after the call<br />

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

Page 402 AIUB

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

Saved successfully!

Ooh no, something went wrong!