This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
howtos:workwithdata:export_views [2009/08/07 03:00] 127.0.0.1 external edit |
howtos:workwithdata:export_views [2009/11/13 17:41] marcus.williams |
||
---|---|---|---|
Line 4: | Line 4: | ||
<code> | <code> | ||
- | view HHFormRate[hs,hha,ts][] | ||
- | view DUDemoRate[m->pz,dt,ts][] | ||
if $history == false | if $history == false | ||
Line 17: | Line 15: | ||
say ("exporting") | say ("exporting") | ||
say (" HHFormRate[hs,hha,ts] to ",$exportDir,"/HHFormRate.txt") | say (" HHFormRate[hs,hha,ts] to ",$exportDir,"/HHFormRate.txt") | ||
+ | |||
export (HHFormRate[hs,hha,ts][1]; file=$exportDir/HHFormRate.txt, \ | export (HHFormRate[hs,hha,ts][1]; file=$exportDir/HHFormRate.txt, \ | ||
format=tab, expForm=on, decimals=6, shapeInfo=on) | format=tab, expForm=on, decimals=6, shapeInfo=on) | ||
- | say (" DUDemoRateAve[dt,ts] to ",$exportDir,"/DUDemoRateAve.txt") | + | |
- | local numNotZero[dt,ts] | + | |
- | numNotZero[dt,ts] = sum (boolne (DUDemoRate[m->pz,dt,ts][1], 0); dim=mCatOfpz) | + | |
- | local DUDemoRateAve[dt,ts] | + | |
- | DUDemoRateAve[dt,ts] = sum (DUDemoRate[m->pz,dt,ts][1]; dim=mCatOfpz) / numNotZero[dt,ts] | + | |
- | export (DUDemoRateAve[dt,ts]; file=$exportDir/DUDemoRateAve.txt, \ | + | |
- | format=tab, expForm=on, decimals=6, shapeInfo=on) | + | |
</code> | </code> | ||
+ | |||
+ | [Include the views.samm entry and .v file structure.] | ||
==== Sample files ==== | ==== Sample files ==== |