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.

0 commit comments

Comments
 (0)