User Tools

Site Tools


howtos:workwithdata:export_quick_reference

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:workwithdata:export_quick_reference [2011/06/02 14:52]
marcus.williams
howtos:workwithdata:export_quick_reference [2013/01/31 16:52] (current)
marcus.williams
Line 4: Line 4:
  
 <​code>​ <​code>​
-string $exportDir= $home + "/​exportData"​+string $exportDir= $modelHome ​+ "/​exportData"​
 </​code>​ </​code>​
  
Line 16: Line 16:
  
 ===== tab delimited text odometer (block) format ===== ===== tab delimited text odometer (block) format =====
 +This format is useful for migrating data between models in a human-readable format, as opposed to binary //​tool//​-format files. Note the use of ''​expForm''​ and ''​decimals''​ parameters to preserve precision.
  
 <​code>​ <​code>​
Line 22: Line 23:
  file=$exportDir/​immigration.txt)  file=$exportDir/​immigration.txt)
 </​code>​ </​code>​
 +
 +produces the following (header not shown):
  
 <​file>​ <​file>​
 ! sex=male ! sex=male
-! 0 1 2 3 4 5 +! 0 1 2
 "​1977"​ 1.049407e+02 1.314661e+02 1.317941e+02 "​1977"​ 1.049407e+02 1.314661e+02 1.317941e+02
 "​1978"​ 9.129648e+01 1.133035e+02 1.212180e+02 "​1978"​ 9.129648e+01 1.133035e+02 1.212180e+02
Line 31: Line 34:
 "​1980"​ 9.673356e+01 9.806976e+01 9.806976e+01 "​1980"​ 9.673356e+01 9.806976e+01 9.806976e+01
 </​file>​ </​file>​
 +
 +See the [[howtos:​workwithdata:​import_quick_reference#​tab_delimited_text_odometer_block_format|corresponding import call]].
  
 ===== TOOL format ===== ===== TOOL format =====
howtos/workwithdata/export_quick_reference.1307026329.txt.gz · Last modified: 2011/06/02 14:52 by marcus.williams