This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
concepts:tool [2009/11/05 14:17] shona.weldon |
concepts:tool [2010/11/12 15:52] (current) marcus.williams |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Tool On Objects Language ====== | ====== Tool On Objects Language ====== | ||
- | Tools-On-Objects Language, is an interactive language for manipulating structured data objects including multi-dimensioned arrays, sets and geometric objects. TOOL is the only language needed throughout the whatIf? platform. | + | Tools-On-Objects Language, is an interactive language for manipulating structured data objects including multi-dimensioned arrays, sets and geometric objects. TOOL is the only ((Occasionally, for complex source data files, a pre-processor script written in another language (e.g. AWK, Perl, R) may be used.)) language needed throughout the whatIf? platform. |
===== One Language to Rule Them All ===== | ===== One Language to Rule Them All ===== | ||
Line 52: | Line 52: | ||
===== Multidimensional Support ===== | ===== Multidimensional Support ===== | ||
- | TOOL handles multidimensional arrays (objects) in a way that makes the math as simple as working with single value variables. For example to multiply a population stock variable which is broken down by region(reg), gender(gen), time(t) and age(a) by a survival rate by only region time and age the math is simply: | + | TOOL handles multidimensional arrays (objects) in a way that makes the math as simple as working with single-value (i.e. scalar) variables. For example to multiply a population stock variable which is broken down by region(reg), gender(gen), time(t) and age(a) by a survival rate by only region time and age the math is simply: |
<code> | <code> | ||
survivors[reg,gen,t,a] = population[reg,gen,t,a] * survivalRate[reg,t,a] | survivors[reg,gen,t,a] = population[reg,gen,t,a] * survivalRate[reg,t,a] | ||
Line 83: | Line 83: | ||
===== Import/Export channels ===== | ===== Import/Export channels ===== | ||
- | TOOL is used to read and write data external to the model and it supports various formats and file types: | + | TOOL is used to read and write data external to the model and it supports various formats and file types as described in the following article: |
- | Formats: | + | [[howtos:workwithdata:Data Format vs File Format]] |
- | * Record | + | |
- | * Coordinate | + | |
- | * Odometer | + | |
- | File Types: | ||
- | * CSV files | ||
- | * Delimited files - any character but tab is most common | ||
- | * dbf | ||