|
Developer Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox/io getConfigValue.pro
getConfigValue |
function getConfigValue(name, [defaultValue=string], [configFile=string]) |
Parse a GBT config file (typically system.conf).
Adapted from the getConfigValue.py used in sparrow. This is needed by gbtidl so that the SDFITS_DATA value that the online sdfits daemon uses to decide where to write the sdfits files is the same as that used by GBTIDL to find the online sdfits files.
Returns the value of the named parameter as found in an environment variable having the same name, the config file, or the supplied default value (in that order).
Note : the name value is always converted to upper case before any comparisons are made.
Note : if the path in configFile starts with a / then it is
assumed to be the full path. If it starts with any other character
than the full path to the config file is
Parameters
name
The parameter name.
Produced by IDLdoc 1.6 on Sun Oct 22 03:20:24 2017