By default, the GFE uses a configuration file called gfeConfig.GFECONFIG. This is provided as an installed file in BASE, and can be overridden by the site or individual users. At no time should the files that are sent with the software release or install be modified directly. These will be overwritten with the next upgrade.
The technique to modify or create new gfe configuration files is through the GFE -- not by hand editing.
Sites will need to create alternative GFE configuration files for use with the ifpIMAGE program. That program uses the GFE in background mode to generate Portable Network Graphics imagery.
The format of the GFE configuration file is documented here.
The technique for the GFE to pick up configuration files uses the standard BASE, SITE, USER concept. With this concept, files can be merged using the Python "import statement" since GFE configuration files contain Python code.
The basic rule is that using the same name as an existing file "up the tree", e.g., from SITE or USER, will result in a complete override of the definitions "up the tree". If your site or user files are of a different name, then you can import the symbols from the site or base files with the result that your configuration file simply contains overrides.
The method you use to place files at the SITE and USER level is to start the GFE and supply either a user name or "SITE" for the SITE administrator. You then access the define gfe configuration file through the main menu entry GFE->Define Config and ifpIMAGE files. Please do not modify the files directly in the server directories; instead use the GFE.
The illustration shows how the access is performed:
In the above picture, configuration file "d" imports "c" which imports "b". Only a few items need to be overridden in files "c" and "d" to result in a gfe configuration file that resembles b+c+d. File "a" in the USER imports "b" in the BASE so the result is a+b. Note that since there is a file "a" in the USER that it completely hides the "a" in BASE.
The following examples illustrates this merging concept for configration file "d". Only portions of the configuration files are shown.
.....
DefaultSamples = ['DefaultSamples']
MapBackgrounds_default = ['CWA','States']
T_defaultColorTable="midrange enhanced"
....
from b import *
DefaultSamples = ['CitySamples','ObsSamples']
Td_defaultColorTable="mid temp enhanced"
from c import *
MapBackgrounds_default = ['CWA_Zones']
Contour_font = 4
The following shows the effective composite configuration file for the USER (keeping in mind there are other entries in the BASE file that are not shown):
DefaultSamples = ['DefaultSamples']
MapBackgrounds_default = ['CWA','States']
T_defaultColorTable="midrange enhanced"
DefaultSamples = ['CitySamples','ObsSamples']
Td_defaultColorTable="mid temp enhanced"
MapBackgrounds_default = ['CWA_Zones']
Contour_font = 4
which simplifies to:
T_defaultColorTable="midrange enhanced"
DefaultSamples = ['CitySamples','ObsSamples']
Td_defaultColorTable="mid temp enhanced"
MapBackgrounds_default = ['CWA_Zones']
Contour_font = 4
File Purpose | Part of Std. Rel. | RPP File Location, directory
(~/release/data/databases...) |
AWIPS File Location, directory
(/data/adapt/ifps/databases...) |
Base gfe configuration files |
|
/BASE/TEXT/GFECONFIG/ | /BASE/TEXT/GFECONFIG/ |
Site modified gfe configuration files | NO | /SITE/TEXT/GFECONFIG/ | /SITE/TEXT/GFECONFIG/ |
Customized user gfe configuration files | NO | /user/TEXT/GFECONFIG/ | /user/TEXT/GFECONFIG/ |