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.

18. The Menu System<br />

18.5.3 System Environment Variables<br />

System environment variables that must be known to the Fortran programs have to be<br />

defined in option “ENVIRONMENT VARIABLES” (”Menu>Configure>Menu variables”, see Figure 18.3).<br />

At least the variables<br />

U path to user environment,<br />

T path to temporary data environment,<br />

X path to general files environment,<br />

P path to campaign drive, and<br />

USER user name<br />

have to be defined. The environment variables are not interpreted by the menu but made<br />

available to the Fortran programs using the hidden keyword ENVIRONMENT in the program<br />

input files (see Figure 18.4 in Section 18.9 for an example). The Fortran program may then<br />

replace these variables<br />

• before a filename is used for any disk-operation, or<br />

• when the title section of the program output file is generated (the variable ${USER}<br />

is used to print the user name).<br />

The environment variables are used in path names, e.g., in the panels ”Menu>Configure>Paths<br />

and extensions” defining the path names for the data files and ”Menu>Campaign>Edit list of campaigns”<br />

defining the path and names of the campaigns. This allows to cope with the limitation of<br />

filenames (including path and extension) to 32 characters in the <strong>Bernese</strong> <strong>GPS</strong> <strong>Software</strong>.<br />

Environment variables always have to be enclosed in curly brackets to be distinct from user<br />

variables (that are translated by the menu). Because the environment variables are handled<br />

by the menu and the Fortran programs their syntax is platform independent. Use the same<br />

notation also on Windows platforms.<br />

A message box “System variable not defined” indicates that an undefined environment<br />

variable is used in an input field. If the Fortran program cannot open a file and the error<br />

message looks like:<br />

### SR RPLENVAR: Variable X not resolved in: ${X}/GEN/CONST.<br />

*** SR OPNERR: OPEN FAILED<br />

FILE NAME : ${X}/GEN/CONST.<br />

PGM./SUBR.: DEFCON<br />

IOSTAT : 175<br />

FILE UNIT : 999<br />

The environment variable has to be added to the list of variables in option “ENVIRONMENT<br />

VARIABLES” in the first panel of ”Menu>Configure>Menu variables” displayed in Figure 18.3. Be<br />

aware that the variable has to be added to MENU VAR.INP in each BPE-option directory in<br />

${U}/OPT.<br />

Page 366 AIUB

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

Saved successfully!

Ooh no, something went wrong!