<div>If you want to do data analysis and plotting then your best bet would probably be GNU R: <a href="http://www.r-project.org">www.r-project.org</a>. </div>
<div> </div>
<div>It has a steeper learning curve than Python, but it's really dedicated to doing stats. </div>
<div> </div>
<div>Issac</div>
<div><br> </div>
<div><span class="gmail_quote">On 5/3/07, <b class="gmail_sendername">Dylan Beaudette</b> <<a href="mailto:dylan.beaudette@gmail.com">dylan.beaudette@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi everyone,<br><br>I have a rather interesting problem, that i would like to solve with awk or<br>bash scripting - but if all else fails then I will switch to python.
<br><br>here is the idea:<br><br>i have a set of files, each with 30 columns - coming from a set of 10 data<br>loggers. each file represents the output from a single datalogger. the<br>ordering of the columns is consistant, and maps to a soil-pit id and moisture
<br>probe id. I need to create a look-up table to index ids to column numbers.<br>Then, looping over the dimensions of the look-up table would allow me to<br>process the file line-by line, column-by column accordingly:<br>
<br>do bash or awk support these type of data structures?<br><br>this is how i would envision it in something like python / php:<br><br># a multi-dimensional hash for each datalogger:<br># referencing the sensors assigned to a pit
<br># and the row number in which the sensor values exist in the output file<br>datalogger_1[<br>pit_1[<br>sensor_1 => 4<br>sensor_2 => 5<br>sensor_3 => 6<br>sensor_4 => 7<br>],<br>pit_2[<br>sensor_1 => 8<br>
sensor_2 => 9<br>sensor_3 => 10<br>sensor_4 => 11<br>sensor_5 => 12<br>],<br>...<br>]<br><br><br># the logic of the program would be :<br>iterate over the pits in the datalogger hash<br> iterate over the sensors in each pit hash
<br> lookup the column number for each sensor<br> do cool stuff<br> end<br>end<br><br>any ideas ? or should I just stick with python for this?<br><br>cheers,<br><br>--<br>Dylan Beaudette<br>
Soils and Biogeochemistry Graduate Group<br>University of California at Davis<br>530.754.7341<br>_______________________________________________<br>vox-tech mailing list<br><a href="mailto:vox-tech@lists.lugod.org">vox-tech@lists.lugod.org
</a><br><a href="http://lists.lugod.org/mailman/listinfo/vox-tech">http://lists.lugod.org/mailman/listinfo/vox-tech</a><br></blockquote></div><br>