<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ocotal.iarc.uaf.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=137.229.92.163&amp;*</id>
	<title>IARC 207 Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://ocotal.iarc.uaf.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=137.229.92.163&amp;*"/>
	<link rel="alternate" type="text/html" href="http://ocotal.iarc.uaf.edu/index.php?title=Special:Contributions/137.229.92.163"/>
	<updated>2026-05-12T21:52:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://ocotal.iarc.uaf.edu/index.php?title=LI7700_Data_Parser&amp;diff=1639</id>
		<title>LI7700 Data Parser</title>
		<link rel="alternate" type="text/html" href="http://ocotal.iarc.uaf.edu/index.php?title=LI7700_Data_Parser&amp;diff=1639"/>
		<updated>2011-10-21T20:08:13Z</updated>

		<summary type="html">&lt;p&gt;137.229.92.163: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
Option Explicit&lt;br /&gt;
Const ForWriting As Integer = 2&lt;br /&gt;
&lt;br /&gt;
Public Sub main()&lt;br /&gt;
    ' Declare a few variables&lt;br /&gt;
    Dim input_directory As String&lt;br /&gt;
    Dim output_directory As String&lt;br /&gt;
    Dim fso, Folder, Files, file, filearray, filename&lt;br /&gt;
    Dim infile, outfile&lt;br /&gt;
    Dim templine, temparray&lt;br /&gt;
    Dim outfilestring&lt;br /&gt;
    &lt;br /&gt;
    ''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    '''                              '''&lt;br /&gt;
    ''' set the input output stuff.  '''&lt;br /&gt;
    '''                              '''&lt;br /&gt;
    ''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    input_directory = &amp;quot;c:\uaf\active_projects\osp\li7700-ch4\raw\&amp;quot;&lt;br /&gt;
    output_directory = &amp;quot;c:\uaf\active_projects\osp\li7700-ch4\clipped\&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    '''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    '''                                         '''&lt;br /&gt;
    ''' List all of the files in the directory  '''&lt;br /&gt;
    '''                                         '''&lt;br /&gt;
    '''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    Set fso = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;br /&gt;
    If fso.FolderExists(input_directory) And fso.FolderExists(output_directory) Then      ' Path is a directory&lt;br /&gt;
        Set Folder = fso.GetFolder(input_directory)&lt;br /&gt;
        Set Files = Folder.Files&lt;br /&gt;
        &lt;br /&gt;
        '''''''''''''''''''''''''''''''''''&lt;br /&gt;
        '''                             '''&lt;br /&gt;
        ''' Open and analyze each file  '''&lt;br /&gt;
        '''                             '''&lt;br /&gt;
        '''''''''''''''''''''''''''''''''''&lt;br /&gt;
        For Each file In Files&lt;br /&gt;
            ' Get the name of the input file&lt;br /&gt;
            filearray = Split(file, &amp;quot;\&amp;quot;)&lt;br /&gt;
            filename = filearray(UBound(filearray))&lt;br /&gt;
            '''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
            '''                                       '''&lt;br /&gt;
            ''' create a name for the output file...  '''&lt;br /&gt;
            ''' if you'd prefer a different name,     '''&lt;br /&gt;
            ''' change this line.                     '''&lt;br /&gt;
            '''                                       '''&lt;br /&gt;
            '''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
            outfilestring = output_directory &amp;amp; &amp;quot;clip_&amp;quot; &amp;amp; filename&lt;br /&gt;
            ' open the input and output files for reading writing&lt;br /&gt;
            Set infile = fso.opentextfile(file)&lt;br /&gt;
            Set outfile = fso.opentextfile(outfilestring, ForWriting, True)&lt;br /&gt;
            ' loop through the lines of data in the input file&lt;br /&gt;
            Do While infile.atendofstream &amp;lt;&amp;gt; True&lt;br /&gt;
                templine = infile.readline&lt;br /&gt;
                temparray = Split(templine, Chr(9))  ' split each line based on tabs&lt;br /&gt;
                ' just a way to skip over the lines at the top&lt;br /&gt;
                If UBound(temparray) &amp;gt; 9 Then&lt;br /&gt;
                    ' if not numeric it's a header to skip.&lt;br /&gt;
                    If IsNumeric(temparray(8)) Then&lt;br /&gt;
                        ' at this point we should have a valid data point to check.&lt;br /&gt;
                        If CDbl(temparray(8)) &amp;gt;= 30 Then&lt;br /&gt;
                            '' Good data, save it to the output file.&lt;br /&gt;
                            outfile.writeline templine&lt;br /&gt;
                        End If&lt;br /&gt;
                    End If&lt;br /&gt;
                End If&lt;br /&gt;
            Loop&lt;br /&gt;
            infile.Close&lt;br /&gt;
            outfile.Close&lt;br /&gt;
        Next&lt;br /&gt;
    End If&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>137.229.92.163</name></author>
		
	</entry>
	<entry>
		<id>http://ocotal.iarc.uaf.edu/index.php?title=Excel_Macros&amp;diff=466</id>
		<title>Excel Macros</title>
		<link rel="alternate" type="text/html" href="http://ocotal.iarc.uaf.edu/index.php?title=Excel_Macros&amp;diff=466"/>
		<updated>2011-10-21T20:07:31Z</updated>

		<summary type="html">&lt;p&gt;137.229.92.163: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Handy Code Snippets ==&lt;br /&gt;
This page contains links to several Excel Macros.  Feel free to use or add additional ones.&lt;br /&gt;
* [[Save Macros in Excel]]-- a brief How-To&lt;br /&gt;
* [[Tool Bar Button|Create a Toolbar button]] -- a brief How-To (useful with some macros)&lt;br /&gt;
* [[Julian to regular date converter]] &lt;br /&gt;
* [[Regular Date to Julian Converter]]&lt;br /&gt;
* [[Calculate Daily Averages / Sums from hourly data| MicroMet Format Daily Averages]]&lt;br /&gt;
* [[Daily Averages 2| General Daily average Macro]]&lt;br /&gt;
* [[Freezing / Thawing Indices]] &lt;br /&gt;
* [[Double Line Delete| Line Deleter for going through online data from shand]]&lt;br /&gt;
* [[Cell Wrap]] -- Useful for long column headers in data spreadsheets.&lt;br /&gt;
* [[Data Split]] -- Short Macro for splitting comma &amp;amp; tab separated data such as when you open a .txt file in Excel&lt;br /&gt;
* [[LI7700 Data Parser]] -- Short Macro for junking bad data on a quick first cut for a LI-7700 Open Path CH4 Analyzer&lt;/div&gt;</summary>
		<author><name>137.229.92.163</name></author>
		
	</entry>
</feed>