User Tools

Site Tools


howtos:importing_informant_definitions_-_sets_and_categories

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:importing_informant_definitions_-_sets_and_categories [2016/03/01 14:34]
marcus.williams [Element names - characters to avoid]
howtos:importing_informant_definitions_-_sets_and_categories [2024/03/14 10:21] (current)
Line 3: Line 3:
 List the ways set informants can be defined: List the ways set informants can be defined:
   * manually in Documenter   * manually in Documenter
-  * copy-and-paste from one Documenter .dmm file to another ​+  * copy-and-paste from one Documenter .dmm file to another
   * from an informant definition file within Documenter (set or category)   * from an informant definition file within Documenter (set or category)
     * sets definition files can be created from the source data with a TOOL script     * sets definition files can be created from the source data with a TOOL script
-  + 
-Sequence informants are defined in the Documenter dialogue box. +Sequence informants are defined in the Documenter dialogue box.
  
 ====== Creating a Set Object ====== ====== Creating a Set Object ======
Line 143: Line 143:
 corn corn seed crop corn corn seed crop
 barley barley seed crop} barley barley seed crop}
-===== +=====
 Specifying an Object Description ===== Specifying an Object Description =====
  
Line 170: Line 170:
 It is highly reccomended that whitespace and other non-alphanumeric characters be avoided in element names. It is highly reccomended that whitespace and other non-alphanumeric characters be avoided in element names.
  
-[Describe the searchElemName and replaceElemName parameters in the create tool. Provide examples.] FIXME+Here is an example:
  
 <​code>​ <​code>​
 localinformant employmentSector_d[] = create (; object=set, delimiter=",",​ \ localinformant employmentSector_d[] = create (; object=set, delimiter=",",​ \
- allowDuplicate=off,​ \ +        ​allowDuplicate=off,​ \ 
- elemNamesFromColNum=1,​ firstLine=1,​ \ +        elemNamesFromColNum=1,​ firstLine=1,​ \ 
- searchElemName1=",",​ replaceElemName1="",​ \ +        searchElemName1=",",​ replaceElemName1="",​ \ 
- searchElemName2="​.",​ replaceElemName2="​_",​ \ +        searchElemName2="​.",​ replaceElemName2="​_",​ \ 
- searchElemName3="&",​ replaceElemName3="​and",​ \ +        searchElemName3="&",​ replaceElemName3="​and",​ \ 
- searchElemName4="/",​ replaceElemName4="​_",​ \ +        searchElemName4="/",​ replaceElemName4="​_",​ \ 
- searchElemName5="​(",​ replaceElemName5="",​ \ +        searchElemName5="​(",​ replaceElemName5="",​ \ 
- searchElemName6="​)",​ replaceElemName6="",​ \ +        searchElemName6="​)",​ replaceElemName6="",​ \ 
- searchElemName7="​]",​ replaceElemName7="",​ \ +        searchElemName7="​]",​ replaceElemName7="",​ \ 
- searchElemName8="​[",​ replaceElemName8="",​ \ +        searchElemName8="​[",​ replaceElemName8="",​ \ 
- searchElemName9="​-",​ replaceElemName9="​_",​ \ +        searchElemName9="​-",​ replaceElemName9="​_",​ \ 
- searchElemName10="'",​ replaceElemName10="",​ \ +        searchElemName10="'",​ replaceElemName10="",​ \ 
- searchElemName11="​$",​ replaceElemName11="​dlr",​ \ +        searchElemName11="​$",​ replaceElemName11="​dlr",​ \ 
- searchElemName12="​%",​ replaceElemName12="​pct",​ \ +        searchElemName12="​%",​ replaceElemName12="​pct",​ \ 
- searchElemName13=":",​ replaceElemName13="",​ \ +        searchElemName13=":",​ replaceElemName13="",​ \ 
- stripLeadingWhiteSpace=off,​ \ +        stripLeadingWhiteSpace=off,​ \ 
- replaceWhiteSpaceInElemName="​_"​ , \ +        replaceWhiteSpaceInElemName="​_"​ , \ 
- file=$fileName)+        file=$fileName)
 </​code>​ </​code>​
  
Line 202: Line 202:
 <​code>​ <​code>​
 localinformant egtCOfte_nr[] = create (; object=category,​ \ localinformant egtCOfte_nr[] = create (; object=category,​ \
- desc="​elecGenTech category of fuelTypeElec",​ \ +        ​desc="​elecGenTech category of fuelTypeElec",​ \ 
- groups = elecGenTech,​ \ +        groups = elecGenTech,​ \ 
- members = fuelTypeElec,​ \ +        members = fuelTypeElec,​ \ 
- delimiter = ",",​ \ +        delimiter = ",",​ \ 
- "​combSteamSF"​ = "​coal,​heavyOil,​petroleumCoke,​naturalGas",​ \ +        "​combSteamSF"​ = "​coal,​heavyOil,​petroleumCoke,​naturalGas",​ \ 
- "​combTurbineSF"​ = "​coal,​heavyOil,​petroleumCoke,​naturalGas",​ \ +        "​combTurbineSF"​ = "​coal,​heavyOil,​petroleumCoke,​naturalGas",​ \ 
- "​combineCycleSF"​ = "​coal,​heavyOil,​petroleumCoke,​naturalGas",​ \ +        "​combineCycleSF"​ = "​coal,​heavyOil,​petroleumCoke,​naturalGas",​ \ 
- "​nucLWSteam"​ = "​urainium",​ \ +        "​nucLWSteam"​ = "​urainium",​ \ 
- "​nucHWSteam"​ = "​urainium",​ \ +        "​nucHWSteam"​ = "​urainium",​ \ 
- "​combSteamMF"​ = "​multiFuel",​ \ +        "​combSteamMF"​ = "​multiFuel",​ \ 
- "​combTurbineMF"​ = "​multiFuel",​ \ +        "​combTurbineMF"​ = "​multiFuel",​ \ 
- "​combineCycleMF"​ = "​multiFuel",​ \ +        "​combineCycleMF"​ = "​multiFuel",​ \ 
- "​industrialSector"​ = "​nonSpecifiedFuel",​ \ +        "​industrialSector"​ = "​nonSpecifiedFuel",​ \ 
- "​commercialSector"​ = "​nonSpecifiedFuel"​)+        "​commercialSector"​ = "​nonSpecifiedFuel"​)
 </​code>​ </​code>​
 +
howtos/importing_informant_definitions_-_sets_and_categories.1456842863.txt.gz · Last modified: 2016/03/01 14:34 by marcus.williams