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.

03: BRZM<br />

04: FFMA<br />

05: FFZI<br />

06: PTZM<br />

07: VIZM<br />

19.6 User Scripts<br />

It is sent to the BPE server to initialize seven parallel runs of the slave script. Each<br />

parallel running slave script gets one line of the control file through the variable<br />

$$bpe{CONTROL FILE LINE}. That means the first script gets the baseline abbreviationBRFF<br />

as the first (and in our example only) element of the CONTROL FILE LINE that is assigned<br />

to the parameter $$bpe{PARAM1}:<br />

01: # Set an user variable to the baseline ID<br />

02: # ---------------------------------------<br />

03: my $tmp = $ENV{U}/WORK/var.tmp<br />

04:<br />

05: open (TMP,"> $tmp");<br />

06: print TMP "\"FFFF\" \"$$bpe{PARAM1}\"\n";<br />

07: close TMP;<br />

08:<br />

09: $bpe->putKey("$ENV{U}/PAN/MENU_VAR.INP","USERVAR",<br />

10: "SELECTED","PREPEND",$tmp);<br />

11:<br />

12: unlink($tmp);<br />

13:<br />

14: # Run program<br />

15: # -----------<br />

16: my $PGMNAM = "<strong>GPS</strong>EST";<br />

17: $bpe->RUN_PGMS($PGMNAM);<br />

In line 6 this script writes the string "FFFF" "BRFF" to a temporary file. This file is then<br />

used to define a menu user variable with name $(FFFF) and value BRFF by prepending<br />

it to the list of menu user variables in panel “Variables Available in the Menu for Interactive<br />

and Automatic Processing 1” (see Section 18.5.2) using the $bpe–>putKey command (lines 9<br />

and 10). In program panels the baseline abbreviation is thus available through the variable<br />

$(FFFF). That means in the panel “<strong>GPS</strong>EST 1.1: Input Files 1” in the script’s option directory<br />

(see Section 19.7) the name of the phase file to be processed may be specified with the string<br />

$(FFFF)$S+0 which is independent on the particular baseline.<br />

In a similar way the master script could group files to clusters. For each cluster it may write<br />

the individual filenames to a selection file (e.g., with name yydddnnn.BPE in the campaign’s<br />

BPE directory with nnn being the cluster number). The name of these cluster-specific files<br />

are written as separate lines to the control file (Note that ${P} will be replaced by the path<br />

to the campaign in practice):<br />

Control file contains: Cluster file ${P}/EXAMPLE/BPE/02143001.BPE:<br />

01: ${P}/EXAMPLE/BPE/02143001.BPE 01: ${P}/EXAMPLE/OBS/BRFF1430.PSH<br />

02: ${P}/EXAMPLE/BPE/02143002.BPE 02: ${P}/EXAMPLE/OBS/BRON1430.PSH<br />

03: ${P}/EXAMPLE/OBS/BRZM1430.PSH<br />

04: ${P}/EXAMPLE/OBS/FFMA1430.PSH<br />

Cluster file ${P}/EXAMPLE/BPE/02143002.BPE:<br />

01: ${P}/EXAMPLE/OBS/FFZI1430.PSH<br />

02: ${P}/EXAMPLE/OBS/PTZM1430.PSH<br />

03: ${P}/EXAMPLE/OBS/VIZM1430.PSH<br />

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

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

Saved successfully!

Ooh no, something went wrong!