This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorials:tool_quick_reference_card [2016/06/28 17:57] marcus.williams [TOOL commands] |
tutorials:tool_quick_reference_card [2019/02/21 02:53] marcus.williams [S] |
||
---|---|---|---|
Line 39: | Line 39: | ||
which matches up element names in Y with those in X. | which matches up element names in Y with those in X. | ||
+ | {{ :howtos:toolcoding:mappingtemplate.xls |Mapping Template}} | ||
==== N ==== | ==== N ==== | ||
**norm()** examples: | **norm()** examples: | ||
Line 55: | Line 56: | ||
a[s,t] = sum (b[s->c,t]; dim=stateCOcounty@state) | a[s,t] = sum (b[s->c,t]; dim=stateCOcounty@state) | ||
a[] = sum (b[s,a]; dim=all) | a[] = sum (b[s,a]; dim=all) | ||
+ | </code> | ||
+ | |||
+ | **shrink()** examples: | ||
+ | <code> | ||
+ | a[t] = shrink (b[byrs,a]) | ||
+ | a[t] = shrink (b[byrs,a]; time) | ||
</code> | </code> | ||
Line 320: | Line 327: | ||
kingLear | kingLear | ||
</file> | </file> | ||
+ | |||
+ | Or creation with category definition using parameters: | ||
+ | |||
+ | <code> | ||
+ | localinformant vwcCOvpshd[] = create (; object=category, groups=vehWeightClass, members=vehPowerSrcHD, \ | ||
+ | 4_5andUnder="ICE_Gas ICE_Diesel ICE_NGL", \ | ||
+ | 4_5-14_9="ICE_Gas ICE_Diesel", \ | ||
+ | 15andOver="ICE_Diesel") | ||
+ | </code> | ||
**mapcat()** syntax: | **mapcat()** syntax: | ||
Line 356: | Line 372: | ||
</code> | </code> | ||
- | Variable types: ''integer, real, boolean, string'' | + | Variable types: ''integer'', ''real'', ''boolean'', ''string'' |
+ | TOOL operators by order of precedence: | ||
+ | <code> | ||
+ | * / | ||
+ | + - | ||
+ | > < >= <= | ||
+ | == != | ||
+ | AND OR | ||
+ | assign | ||
+ | </code> | ||
===== Object Display ===== | ===== Object Display ===== | ||
Line 401: | Line 426: | ||
where objectTypes are: ''view, creview, localview'' | where objectTypes are: ''view, creview, localview'' | ||
- | [List reserved TOOL variables] | + | Reserved TOOL variables: ''$numScns'', ''$numVars'', ''$scnNumbers[]'', ''$scnNames[]'', ''$scnColours[]'', ''$scnDescs[]'', ''$createView'', ''$history'', ''$background'' |
**quit()** is called as ''quit (return code)'' | **quit()** is called as ''quit (return code)'' |