![]() ![]() ![]() Gillespy: A python package for stochastic model building and simulation. H., Drawert, B., Hellander, A., & Petzold, L. The data file that results from my processing looks like this.Abel, J. The impression I get is that the wire angle is more dependent on theĪmount of wire in the water than the speed of the ship. These results may possibly have a couple bad points that I still need to get rid of. Relationship between wireout, layback and speed. Jenna has done just over 50 layback calculations for one cracks cruise The code for the processing of the excel data from Jenna is in cracks_cruise_layback.py.htmlįinally a quick calculation from the Santa Barbara Cruise. 415.848028016Īfter creating two data files for gnuplot, I end up with plots that That made a simple linear fit to the data. 1, 32 ) param, error = leastSquaresFit ( linear, initial, wireoutAngle ) print " - WIREOUT TO ANGLE - " print param, error print 130, 130 * param + param print 300, 300 * param + param # initial = ( 0, 22 ) param, error = leastSquaresFit ( linear, initial, speedAngle ) print " - SPEED TO ANGLE - " print param, error print 3.4, 3.4 * param + param print 4.8, 4.8 * param + param LeastSquares import leastSquaresFit def linear ( parameters, values ) : a, b = parameters x = values return ( a * x + b ) # initial = (. append ( ( float ( fields ), float ( fields ) ) ) # from Scientific. append ( ( float ( fields ), float ( fields ) ) ) speedAngle. readline ( ) wireoutAngle = speedAngle = for line in dataFile. #!/usr/bin/env python # FIT a line to the data dataFile = open ( 'results.dat', 'r' ) dataFile. That all the layback points I used have there speed from within a few I went through the cracks data a little more this morning and verified
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |