rowingdata package

Submodules

rowingdata.copystats module

rowingdata.copystats.main()

rowingdata.crewnerdplot module

rowingdata.crewnerdplot.main()

rowingdata.crewnerdplottime module

rowingdata.crewnerdplottime.main()

rowingdata.painsled_desktop_plot module

rowingdata.painsled_desktop_plot.main()

rowingdata.painsled_desktop_toc2 module

rowingdata.painsled_desktop_toc2.main()

rowingdata.painsledplot module

rowingdata.painsledplot.main()

rowingdata.painsledplottime module

rowingdata.painsledplottime.main()

rowingdata.painsledtoc2 module

rowingdata.painsledtoc2.main()

rowingdata.roweredit module

rowingdata.roweredit.main()

rowingdata.rowingdata module

class rowingdata.rowingdata.RowProParser(RPfile='RPtest.csv', skiprows=14, skipfooter=24, row_date='04/06/16 09:45:42')

Parser for reading CSV files created by RowPro

Use: data = rowingdata.RowProParser(“RPdata.csv”)

data.write_csv(“RPdata_out.csv”)
write_csv(writeFile='example.csv')

Exports RowPro data to the CSV format that I use in rowingdata

class rowingdata.rowingdata.TCXParser(tcx_file)

Parser for reading TCX files, e.g. from CrewNerd

Use: data = rowingdata.TCXParser(“crewnerd_data.tcx”)

data.write_csv(“crewnerd_data_out.csv”)
activity_starttime()
all_values()
distance_values()
hr_values()
lat_values()
long_values()
spm_values()
time_values()
write_csv(writeFile='example.csv', window_size=20)

Exports TCX data to the CSV format that I use in rowingdata

write_nogeo_csv(writeFile='example.csv', window_size=5)

Exports TCX data without position data (indoor) to the CSV format that I use in rowingdata

rowingdata.rowingdata.copytocb(s)

Copy to clipboard for pasting into blog

Doesn’t work on Mac OS X

rowingdata.rowingdata.dorowall(readFile='testdata', window_size=20)

Used if you have CrewNerd TCX and summary CSV with the same file name

Creates all the plots and spits out a text summary (and copies it to the clipboard too!)

rowingdata.rowingdata.format_dist_tick(x, pos=None)
rowingdata.rowingdata.format_pace(x, pos=None)
rowingdata.rowingdata.format_pace_tick(x, pos=None)
rowingdata.rowingdata.format_time(x, pos=None)
rowingdata.rowingdata.format_time_tick(x, pos=None)
rowingdata.rowingdata.geo_distance(lat1, lon1, lat2, lon2)

Approximate distance between two points defined by lat1,lon1 and lat2,lon2 This is a slight underestimate but is close enough for our purposes, We’re never moving more than 10 meters between trackpoints

rowingdata.rowingdata.getrower(fileName='defaultrower.txt')

Read a rower object

rowingdata.rowingdata.getrowtype()
rowingdata.rowingdata.interval_string(nr, totaldist, totaltime, avgpace, avgspm, avghr, maxhr, avgdps, separator='|')

Used to create a nifty text string with the data for the interval

rowingdata.rowingdata.main()
rowingdata.rowingdata.movingaverage(interval, window_size)
class rowingdata.rowingdata.painsledDesktopParser(sled_file='sled_test.csv')

Parser for reading CSV files created by Painsled (desktop version)

Use: data = rowingdata.painsledDesktopParser(“sled_data.csv”)

data.write_csv(“sled_data_out.csv”)
time_values()

Converts painsled style time stamps to Unix time stamps

write_csv(writeFile='example.csv')

Exports Painsled (desktop) data to the CSV format that I use in rowingdata

rowingdata.rowingdata.read_obj(filename)

Read an object (e.g. your rower, including passwords) from a file Usage: john = rowingdata.read_obj(“john.txt”)

class rowingdata.rowingdata.rower(hrut2=142, hrut1=146, hrat=160, hrtr=167, hran=180, hrmax=192, c2username='', c2password='', weightcategory='hwt')

This class contains all the personal data about the rower

  • HR threshold values
  • C2 logbook username and password
  • weight category
write(fileName)
rowingdata.rowingdata.roweredit(fileName='defaultrower.txt')

Easy editing or creation of a rower file. Mainly for using from the windows command line

class rowingdata.rowingdata.rowingdata(readFile='testdata.csv', rower=<rowingdata.rowingdata.rower instance at 0x0695A7B0>, rowtype='Indoor Rower')

This is the main class. Read the data from the csv file and do all kinds of cool stuff with it.

Usage: row = rowingdata.rowingdata(“testdata.csv”,rowtype = “Indoor Rower”)
row.plotmeters_all()

The default rower looks for a defaultrower.txt file. If it is not found, it reverts to some arbitrary rower.

allstats(separator='|')

Creates a nice text summary, both overall summary and a one line per interval summary

Works for painsled (both iOS and desktop)

Also copies the string to the clipboard (handy!)

getvalues(keystring)

Just a tool to get a column of the row data as a numpy array

You can also just access row.df[keystring] to get a pandas Series

intervalstats(separator='|')

Used to create a nifty text summary, one row for each interval

Also copies the string to the clipboard (handy!)

Works for painsled (both iOS and desktop version) because they use the lapIdx column

plotmeters_erg()

Creates two images containing interesting plots

x-axis is distance

Used with painsled (erg) data

plotmeters_otw()

Creates two images containing interesting plots

x-axis is distance

Used with OTW data (no Power plot)

plottime_erg()

Creates two images containing interesting plots

x-axis is time

Used with painsled (erg) data

plottime_hr()

Creates a HR vs time plot

plottime_otw()

Creates two images containing interesting plots

x-axis is time

Used with OTW data (no Power plot)

summary(separator='|')

Creates a nifty text string that contains the key data for the row and copies it to the clipboard

uploadtoc2(comment='uploaded by rowingdata tool\n', rowerFile='defaultrower.txt')

Upload your row to the Concept2 logbook

Will ask for username and password if not known Will offer to store username and password locally for you. This is not mandatory

This just fills the online logbook form. It may break if Concept2 changes their website. I am waiting for a Concept2 Logbook API

class rowingdata.rowingdata.speedcoachParser(sc_file='sc_test.csv', row_date='04/06/16 09:45:42')

Parser for reading CSV files created by SpeedCoach

Use: data = rowingdata.speedcoachDesktopParser(“sled_data.csv”)

data.write_csv(“speedcoach_data_out.csv”)
write_csv(writeFile='example.csv')

Exports Painsled (desktop) data to the CSV format that I use in rowingdata

class rowingdata.rowingdata.summarydata(readFile)

This is used to create nice summary texts from CrewNerd’s summary CSV

Usage: sumd = rowingdata.summarydata(“crewnerdsummary.CSV”)

sumd.allstats()

sumd.shortstats()

allstats(separator='|')
shortstats()
rowingdata.rowingdata.summarystring(totaldist, totaltime, avgpace, avgspm, avghr, maxhr, avgdps, readFile='', separator='|')

Used to create a nifty string summarizing your entire row

rowingdata.rowingdata.write_obj(obj, filename)

Save an object (e.g. your rower) to a file

rowingdata.speedcoachplot module

rowingdata.speedcoachplot.main()

rowingdata.speedcoachplottime module

rowingdata.speedcoachplottime.main()

rowingdata.speedcoachtoc2 module

rowingdata.speedcoachtoc2.main()

rowingdata.tcxplot module

rowingdata.tcxplot.main()

rowingdata.tcxplot_nogeo module

rowingdata.tcxplot_nogeo.main()

rowingdata.tcxplottime module

rowingdata.tcxplottime.main()

rowingdata.tcxplottime_nogeo module

rowingdata.tcxplottime_nogeo.main()

rowingdata.tcxtoc2 module

rowingdata.tcxtoc2.main()

Module contents