User Tools

Site Tools


howtos:workwithdata:a_simple_import_view

Differences

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

Link to this comparison view

Next revision
Previous revision
howtos:workwithdata:a_simple_import_view [2009/08/07 03:00]
127.0.0.1 external edit
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 ======
 +
 +Update this when I finish the view templates article. FIXME
  
 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 30: 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.
 +
 +
howtos/workwithdata/a_simple_import_view.1249614055.txt.gz ยท Last modified: 2011/06/01 19:55 (external edit)