User Tools

Site Tools


howtos:toolcoding:mapex2

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:toolcoding:mapex2 [2011/06/13 21:58]
chris.strashok
howtos:toolcoding:mapex2 [2011/06/13 22:13] (current)
chris.strashok
Line 32: Line 32:
 </​code>​ </​code>​
  
 +===== source data from one element to many elements in the model with and without splits =====
 +
 +<​code>​
 +localinformant fuelType_DB[] = create (; object=set, delimiter=",",​ \
 + allowDuplicate=on,​ \
 + elemNamesFromColNum=1,​ firstLine=2,​ \
 + lastLine=4,​ \
 + file=$fullFileName)
 +
 +localinformant emission[] = create (; object=set, delimiter=",",​ \
 + allowDuplicate=on,​ \
 + elemNamesFromLineNum=1,​ firstCol=2, \
 + lastCol=4, \
 + file=$fullFileName)
 +
 +local fuelEm_DB[fTypeDB,​em] = create (; dim=fuelType_DB,​ dim=emission,​ \
 + dataFormat="​odometer",​ \
 + delimiter=",",​ \
 + firstLine=2,​ firstCol=2, \
 + ignoreExtraLines=on,​ \
 + ignoreExtraCols=on,​ \
 + file=$fullFileName)
 +
 +localinformant fuelType_model[] = create (; object=set, \ (note what is in this informant instead of showing the code to construct it)
 + desc="​fuel types in the simulation model",​ \
 + elemName1="​Gasoline",​ \
 + elemName2="​Diesel",​ \
 + elemName3="​IFO",​ \
 + elemName4="​HFO"​)
 +</​code>​
howtos/toolcoding/mapex2.1308002336.txt.gz ยท Last modified: 2011/06/13 21:58 by chris.strashok