cwsub: Player substitution descriptor¶
cwsub extracts information about in-game player substitutions. It is designed to be used in conjunction with cwevent to mitigate a blind spot in the existing tools.
cwsub outputs up to 25 pieces of information about each substitution. All are included by default; which ones are generated is controlled by the -f switch.
The fields have the same interpretation those with the same name in cwevent. That is to say, you can think of cwsub as extending cwevent by treating substitutions as events in their own right. In particular, the count and pitch counts are cumulative counts for the plate appearance up to the point of the substitution.
Field number |
Description |
Header |
---|---|---|
0 |
Game ID |
|
1 |
Inning |
|
2 |
Batting team |
|
3 |
Substitute |
|
4 |
Team |
|
5 |
Lineup position |
|
6 |
Fielding position |
|
7 |
Removed player |
|
8 |
Position of removed player |
|
9 |
Event number |
|
10 |
Balls |
|
11 |
Strikes |
|
12 |
Pitch sequence |
|
13 |
number of balls in plate appearance |
|
14 |
number of called balls in plate appearance |
|
15 |
number of intentional balls in plate appearance |
|
16 |
number of pitchouts in plate appearance |
|
17 |
number of pitches hitting batter in plate appearance |
|
18 |
number of other balls in plate appearance |
|
19 |
number of strikes in plate appearance |
|
20 |
number of called strikes in plate appearance |
|
21 |
number of swinging strikes in plate appearance |
|
22 |
number of foul balls in plate appearance |
|
23 |
number of balls in play in plate appearance |
|
24 |
number of other strikes in plate appearance |
|