This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
howtos:workwithdata:a_simple_import_view [2011/06/01 19:55] marcus.williams |
howtos:workwithdata:a_simple_import_view [2011/06/23 20:41] (current) chris.strashok |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== A Simple Import View ====== | ====== A Simple Import View ====== | ||
- | Mention that import views can be created out of documenter. FIXME | + | Update this when I finish the view templates article. FIXME |
- | + | ||
- | Update this when I finish the view templates article. | + | |
This simple view shows the import of three commonly used formats - tab-delimited text, comma-separated value (.csv) and the native //tool// format: | This simple view shows the import of three commonly used formats - tab-delimited text, comma-separated value (.csv) and the native //tool// format: | ||
Line 34: | Line 32: | ||
mortality[s,ts1,a][$index] = import (; format=tool, dataFile=$importDir/mortality) | mortality[s,ts1,a][$index] = import (; format=tool, dataFile=$importDir/mortality) | ||
</code> | </code> | ||
+ | |||
+ | ===== Automated Import View ===== | ||
+ | |||
+ | Import views can also be automatically created out of Documenter. To do this: | ||
+ | |||
+ | - Select View Scripts -> Import from the SAMM menu | ||
+ | - Activate the control checkbox (fixed variables cannot be changes and therefore are not relevant to import views) | ||
+ | - Click OK and then specify the location to save the .v and .t files. | ||
+ | |||
+ | Note: | ||
+ | * This process does not capture the file path that indicates the location(s) of the data source(s) nor does it specify the correct [[howtos:workwithdata:data_format_vs_file_format|data format(s)]] needed to read the data into the model. This all must be done manually. | ||
+ | * The file generated will represent the node currently selected in Documenter. If the root node is selected all of the control variables will be included in the import view. If a calculator is selected only the variables associated with that calculator will be used. | ||
+ | |||
+ |