Skip to content

Commit 4805f15

Browse files
committed
Initial File Upload
1 parent 73d182d commit 4805f15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+14730
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Chadwick is written by Ted Turocy (drarbiter at gmail.com)
2+
3+
Thanks to the following contributors who have contributed patches:
4+
5+
* Mat Kovach (finishing pitchers columns for cwgame)

retrosheet(x64)/common/programs/copying.txt

Lines changed: 340 additions & 0 deletions
Large diffs are not rendered by default.
251 KB
Binary file not shown.
152 KB
Binary file not shown.
Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
2+
Chadwick expanded event descriptor, version 0.5.2
3+
Type 'C:\Retrosheet\common\programs\cwevent -h' for help.
4+
This is free software, subject to the terms of the GNU GPL license.
5+
6+
7+
These are the available fields and the numbers to use with the -f option
8+
to name them. The default fields are marked with an asterisk (*).
9+
10+
number field
11+
------ -----
12+
0 game id*
13+
1 visiting team*
14+
2 inning*
15+
3 batting_team*
16+
4 outs*
17+
5 balls*
18+
6 strikes*
19+
7 pitch sequence
20+
8 vis score*
21+
9 home score*
22+
10 batter
23+
11 batter hand
24+
12 res batter*
25+
13 res batter hand*
26+
14 pitcher
27+
15 pitcher hand
28+
16 res pitcher*
29+
17 res pitcher hand*
30+
18 catcher
31+
19 first base
32+
20 second base
33+
21 third base
34+
22 shortstop
35+
23 left field
36+
24 center field
37+
25 right field
38+
26 first runner*
39+
27 second runner*
40+
28 third runner*
41+
29 event text*
42+
30 leadoff flag*
43+
31 pinchhit flag*
44+
32 defensive position*
45+
33 lineup position*
46+
34 event type*
47+
35 batter event flag*
48+
36 ab flag*
49+
37 hit value*
50+
38 SH flag*
51+
39 SF flag*
52+
40 outs on play*
53+
41 double play flag
54+
42 triple play flag
55+
43 RBI on play*
56+
44 wild pitch flag*
57+
45 passed ball flag*
58+
46 fielded by
59+
47 batted ball type
60+
48 bunt flag
61+
49 foul flag
62+
50 hit location
63+
51 num errors*
64+
52 1st error player
65+
53 1st error type
66+
54 2nd error player
67+
55 2nd error type
68+
56 3rd error player
69+
57 3rd error type
70+
58 batter dest* (5 if scores and unearned, 6 if team unearned)
71+
59 runner on 1st dest* (5 if scores and unearned, 6 if team unearned)
72+
60 runner on 2nd dest* (5 if scores and unearned, 6 if team unearned)
73+
61 runner on 3rd dest* (5 if scores and unearned, 6 if team unearned)
74+
62 play on batter
75+
63 play on runner on first
76+
64 play on runner on second
77+
65 play on runner on third
78+
66 SB for runner on 1st flag
79+
67 SB for runner on 2nd flag
80+
68 SB for runner on 3rd flag
81+
69 CS for runner on 1st flag
82+
70 CS for runner on 2nd flag
83+
71 CS for runner on 3rd flag
84+
72 PO for runner on 1st flag
85+
73 PO for runner on 2nd flag
86+
74 PO for runner on 3rd flag
87+
75 Responsible pitcher for runner on 1st
88+
76 Responsible pitcher for runner on 2nd
89+
77 Responsible pitcher for runner on 3rd
90+
78 New Game Flag
91+
79 End Game Flag
92+
80 Pinch-runner on 1st
93+
81 Pinch-runner on 2nd
94+
82 Pinch-runner on 3rd
95+
83 Runner removed for pinch-runner on 1st
96+
84 Runner removed for pinch-runner on 2nd
97+
85 Runner removed for pinch-runner on 3rd
98+
86 Batter removed for pinch-hitter
99+
87 Position of batter removed for pinch-hitter
100+
88 Fielder with First Putout (0 if none)
101+
89 Fielder with Second Putout (0 if none)
102+
90 Fielder with Third Putout (0 if none)
103+
91 Fielder with First Assist (0 if none)
104+
92 Fielder with Second Assist (0 if none)
105+
93 Fielder with Third Assist (0 if none)
106+
94 Fielder with Fourth Assist (0 if none)
107+
95 Fielder with Fifth Assist (0 if none)
108+
96 event num
109+
110+
These additional fields are available in this version of cwevent.
111+
These are specified using the -x option, and appear in the output
112+
after all fields specified with -f. By default, none of these
113+
fields are output.
114+
115+
number field
116+
------ -----
117+
0 home team id
118+
1 batting team id
119+
2 fielding team id
120+
3 half inning (differs from batting team if home team bats first
121+
4 start of half inning flag
122+
5 end of half inning flag
123+
6 score for team on offense
124+
7 score for team on defense
125+
8 runs scored in this half inning
126+
9 number of plate appearances in game for team on offense
127+
10 number of plate appearances in inning for team on offense
128+
11 start of plate appearance flag
129+
12 truncated plate appearance flag
130+
13 base state at start of play
131+
14 base state at end of play
132+
15 batter is starter flag
133+
16 result batter is starter flag
134+
17 pitcher is starter flag
135+
18 result pitcher is starter flag
136+
19 defensive position of runner on first
137+
20 lineup position of runner on first
138+
21 event number on which runner on first reached base
139+
22 defensive position of runner on second
140+
23 lineup position of runner on second
141+
24 event number on which runner on second reached base
142+
25 defensive position of runner on third
143+
26 lineup position of runner on third
144+
27 event number on which runner on third reached base
145+
28 Responsible catcher for runner on 1st*
146+
29 Responsible catcher for runner on 2nd*
147+
30 Responsible catcher for runner on 3rd*
148+
31 number of balls in plate appearance
149+
32 number of called balls in plate appearance*
150+
33 number of intentional balls in plate appearance
151+
34 number of pitchouts in plate appearance
152+
35 number of pitches hitting batter in plate appearance*
153+
36 number of other balls in plate appearance
154+
37 number of strikes in plate appearance
155+
38 number of called strikes in plate appearance
156+
39 number of swinging strikes in plate appearance
157+
40 number of foul balls in plate appearance
158+
41 number of balls in play in plate appearance*
159+
42 number of other strikes in plate appearance
160+
43 number of runs on play
161+
44 id of player fielding batted ball
162+
45 force play at second flag
163+
46 force play at third flag
164+
47 force play at home flag
165+
48 batter safe on error flag
166+
49 fate of batter (base ultimately advanced to)
167+
50 fate of runner on first
168+
51 fate of runner on second
169+
52 fate of runner on third
170+
53 runs scored in half inning after this event
171+
54 fielder with sixth assist
172+
55 fielder with seventh assist
173+
56 fielder with eighth assist
174+
57 fielder with ninth assist
175+
58 fielder with tenth assist
176+
59 unknown fielding credit flag
177+
60 uncertain play flag
218 KB
Binary file not shown.
179 KB
Binary file not shown.
238 KB
Binary file not shown.
157 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This is Chadwick, a library and toolset for baseball play-by-play and statistics.
2+
3+
Chadwick is Open Source software. The library (src/cwlib) is distributed under the GNU Lesser GPL, and tools (src/cwtools) are distributed under the GNU GPL.
4+
5+
For more information about the Chadwick project, please visit the website at http://chadwick.sourceforge.net.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2015 2015*.ev* > C:\Retrosheet\data\parsed\all2015.csv
2+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2014 2014*.ev* > C:\Retrosheet\data\parsed\all2014.csv
3+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2013 2013*.ev* > C:\Retrosheet\data\parsed\all2013.csv
4+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2012 2012*.ev* > C:\Retrosheet\data\parsed\all2012.csv
5+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2011 2011*.ev* > C:\Retrosheet\data\parsed\all2011.csv
6+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2010 2010*.ev* > C:\Retrosheet\data\parsed\all2010.csv
7+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2009 2009*.ev* > C:\Retrosheet\data\parsed\all2009.csv
8+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2008 2008*.ev* > C:\Retrosheet\data\parsed\all2008.csv
9+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2007 2007*.ev* > C:\Retrosheet\data\parsed\all2007.csv
10+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2006 2006*.ev* > C:\Retrosheet\data\parsed\all2006.csv
11+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2005 2005*.ev* > C:\Retrosheet\data\parsed\all2005.csv
12+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2004 2004*.ev* > C:\Retrosheet\data\parsed\all2004.csv
13+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2003 2003*.ev* > C:\Retrosheet\data\parsed\all2003.csv
14+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2002 2002*.ev* > C:\Retrosheet\data\parsed\all2002.csv
15+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2001 2001*.ev* > C:\Retrosheet\data\parsed\all2001.csv
16+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 2000 2000*.ev* > C:\Retrosheet\data\parsed\all2000.csv
17+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1999 1999*.ev* > C:\Retrosheet\data\parsed\all1999.csv
18+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1998 1998*.ev* > C:\Retrosheet\data\parsed\all1998.csv
19+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1997 1997*.ev* > C:\Retrosheet\data\parsed\all1997.csv
20+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1996 1996*.ev* > C:\Retrosheet\data\parsed\all1996.csv
21+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1995 1995*.ev* > C:\Retrosheet\data\parsed\all1995.csv
22+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1994 1994*.ev* > C:\Retrosheet\data\parsed\all1994.csv
23+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1993 1993*.ev* > C:\Retrosheet\data\parsed\all1993.csv
24+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1992 1992*.ev* > C:\Retrosheet\data\parsed\all1992.csv
25+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1991 1991*.ev* > C:\Retrosheet\data\parsed\all1991.csv
26+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1990 1990*.ev* > C:\Retrosheet\data\parsed\all1990.csv
27+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1989 1989*.ev* > C:\Retrosheet\data\parsed\all1989.csv
28+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1988 1988*.ev* > C:\Retrosheet\data\parsed\all1988.csv
29+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1987 1987*.ev* > C:\Retrosheet\data\parsed\all1987.csv
30+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1986 1986*.ev* > C:\Retrosheet\data\parsed\all1986.csv
31+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1985 1985*.ev* > C:\Retrosheet\data\parsed\all1985.csv
32+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1984 1984*.ev* > C:\Retrosheet\data\parsed\all1984.csv
33+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1983 1983*.ev* > C:\Retrosheet\data\parsed\all1983.csv
34+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1982 1982*.ev* > C:\Retrosheet\data\parsed\all1982.csv
35+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1981 1981*.ev* > C:\Retrosheet\data\parsed\all1981.csv
36+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1980 1980*.ev* > C:\Retrosheet\data\parsed\all1980.csv
37+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1979 1979*.ev* > C:\Retrosheet\data\parsed\all1979.csv
38+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1978 1978*.ev* > C:\Retrosheet\data\parsed\all1978.csv
39+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1977 1977*.ev* > C:\Retrosheet\data\parsed\all1977.csv
40+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1976 1976*.ev* > C:\Retrosheet\data\parsed\all1976.csv
41+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1975 1975*.ev* > C:\Retrosheet\data\parsed\all1975.csv
42+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1974 1974*.ev* > C:\Retrosheet\data\parsed\all1974.csv
43+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1973 1973*.ev* > C:\Retrosheet\data\parsed\all1973.csv
44+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1972 1972*.ev* > C:\Retrosheet\data\parsed\all1972.csv
45+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1971 1971*.ev* > C:\Retrosheet\data\parsed\all1971.csv
46+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1970 1970*.ev* > C:\Retrosheet\data\parsed\all1970.csv
47+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1969 1969*.ev* > C:\Retrosheet\data\parsed\all1969.csv
48+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1968 1968*.ev* > C:\Retrosheet\data\parsed\all1968.csv
49+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1967 1967*.ev* > C:\Retrosheet\data\parsed\all1967.csv
50+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1966 1966*.ev* > C:\Retrosheet\data\parsed\all1966.csv
51+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1965 1965*.ev* > C:\Retrosheet\data\parsed\all1965.csv
52+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1964 1964*.ev* > C:\Retrosheet\data\parsed\all1964.csv
53+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1963 1963*.ev* > C:\Retrosheet\data\parsed\all1963.csv
54+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1962 1962*.ev* > C:\Retrosheet\data\parsed\all1962.csv
55+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1961 1961*.ev* > C:\Retrosheet\data\parsed\all1961.csv
56+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1960 1960*.ev* > C:\Retrosheet\data\parsed\all1960.csv
57+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1959 1959*.ev* > C:\Retrosheet\data\parsed\all1959.csv
58+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1958 1958*.ev* > C:\Retrosheet\data\parsed\all1958.csv
59+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1957 1957*.ev* > C:\Retrosheet\data\parsed\all1957.csv
60+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1956 1956*.ev* > C:\Retrosheet\data\parsed\all1956.csv
61+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1955 1955*.ev* > C:\Retrosheet\data\parsed\all1955.csv
62+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1954 1954*.ev* > C:\Retrosheet\data\parsed\all1954.csv
63+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1953 1953*.ev* > C:\Retrosheet\data\parsed\all1953.csv
64+
C:\Retrosheet\common\programs\cwevent -f 0-96 -x 0-60 -y 1952 1952*.ev* > C:\Retrosheet\data\parsed\all1952.csv

0 commit comments

Comments
 (0)