The Rural Technology Initiative ceased operations in 2011. This site is maintained as an archive of works from RTI collaborators from 2000 to 2011 and is no longer updated. RTI's successor and remaining staff can be found at NRSIG.org


     
 
   
Search the RTI Website
 
Click to go to the Precision Forestry Cooperative website
Click to go to the RTI Home page
Click to go to the About RTI page
Click to go to the RTI Projects page
Click to go to the RTI Publications page
Click to go to the RTI Tools page
Click to go to the RTI Geographic Information Systems page
Click to go to the RTI Streaming Video Directory
Click to go to the RTI Training page
Click to go to the RTI Contacts page
Click to go to the RTI Image Archive
Click to go to the RTI Site Map
Click to go to the RTI Links page


Appendix D

TXT2TIN.AML

This is the file that creates the first TIN, triangulated surface from the point data, which will be used in the rest of the Virtual deforestation process. Run this aml through Arc in the directory that has the last return txt and txt_l files. The script automatically selects all of the files and converts them into tins with the [name]_l and no extension. When viewed in the windows browser they will show up as folders.

/* Following segment was added by Matthew Walsh
/* 13 March 2003
/* Allowed the automation of many tin files in one directory
/* Update of origonal files from Ralph Haugerud of USGS

&sv file [filelist *.txt last.list -file]

/* opens file list
& sv fileunit [open last.list openstat -read]
& if %openstat% ne 0 &then
&return Problem opening file

/* reads file list
& sv tilefull [read %fileunit% readstat]
& if %readstat% ne 0 &then
&return Problem reading file

&do &while %readstat% = 0
&sv tile [entryname %tilefull% -noext]
&if [exists %tile%_l -tin] &then kill %tile%_l all
createtin %tile%_l 0.01 0.01
generate %tile%.txt_l
end
&sv tilefull [read %fileunit% readstat]
& end

/* closes file
& if [close %fileunit%] ne 0 &then
&return Cannot close file

/* deletes file
& sv delstat [delete last.list -file]
& return

 
School of Environmental and Forest Sciences
USDA Forest Service State & Private Forestry
WSU Cooperative Extension
The Rural Technology Home Page is provided by the College of Forest Resources. For more information, please contact the Rural Technology Initiative, University of Washington Box 352100 Seattle, WA 98195, (206) 543-0827. © 2000-2004, University of Washington, Rural Technology Initiative, including all photographs and images unless otherwise noted. To view the www.ruraltech.org privacy policy, click here.
Last Updated 10/13/2022 12:34:38 PM