Skip to content

cwdaily

Writes one row per player per game. Generated from cwdaily -h and cwdaily -d.

Options

cwdaily generates files suitable for use by dBase or Lotus-like programs
Each record describes one game.
Usage: cwdaily [options] eventfile...
options:
  -h        print this help
  -i id     only process game given by id
  -y year   Year to process (for teamyyyy and aaayyyy.ros).
  -D dir    Directory to find team and roster files (default is current directory)
  -s start  Earliest date to process (mmdd).
  -e end    Last date to process (mmdd).
  -a        generate Ascii-delimited format files (default)
  -ft       generate Fortran format files
  -f flist  give list of fields to output
              Default is 0-153
  -d        print list of field numbers and descriptions
  -Q        operate quietly; do not output progress messages
  -n        print field names in first row of output

Fields

These are the available fields and the numbers to use with the -f option
to name them.  All are included by default.

number  field
------  -----
0       game id
1       date
2       game number (0 = no double header)
3       apperance date
4       team id
5       player id
6       player slot in batting order
7       sequence in batting order slot
8       home flag
9       opponent id
10      park id
11      B_G:   games played
12      B_PA:  plate appearances
13      B_AB:  at bats
14      B_R:   runs
15      B_H:   hits
16      B_TB:  total bases
17      B_2B:  doubles
18      B_3B:  triples
19      B_HR:  home runs
20      B_HR4: grand slams
21      B_RBI: runs batted in
22      B_GW:  game winning RBI
23      B_BB:  walks
24      B_IBB: intentional walks
25      B_SO:  strikeouts
26      B_GDP: grounded into DP
27      B_HP:  hit by pitch
28      B_SH:  sacrifice hits
29      B_SF:  sacrifice flies
30      B_SB:  stolen bases
31      B_CS:  caught stealing
32      B_XI:  reached on interference
33      B_G_DH: games as DH
34      B_G_PH: games as PH
35      B_G_PR: games as PR
36      P_G:   games pitched
37      P_GS:  games started
38      P_CG:  complete games
39      P_SHO: shutouts
40      P_GF:  games finished
41      P_W:  wins
42      P_L:  losses
43      P_SV:  saves
44      P_OUT: outs recorded (innings pitched times 3)
45      P_TBF: batters faced
46      P_AB:  at bats
47      P_R:   runs allowed
48      P_ER:  earned runs allowed
49      P_H:   hits allowed
50      P_TB:  total bases allowed
51      P_2B:  doubles allowed
52      P_3B:  triples allowed
53      P_HR:  home runs allowed
54      P_HR4:  grand slams allowed
55      P_BB:  walks allowed
56      P_IBB: intentional walks allowed
57      P_SO:  strikeouts
58      P_GDP: grounded into double play
59      P_HP:  hit batsmen
60      P_SH:  sacrifice hits against
61      P_SF:  sacrifice flies against
62      P_XI:  reached on interference
63      P_WP:  wild pitches
64      P_BK:  balks
65      P_IR:  inherited runners
66      P_IRS: inherited runners scored
67      P_GO:  ground outs
68      P_AO:  air outs
69      P_PITCH:  pitches
70      P_STRIKE: strikes
71      F_P_G:    games at P
72      F_P_GS:   games started at P
73      F_P_OUT:  outs recorded at P (innings fielded times 3)
74      F_P_TC:   total chances at P
75      F_P_PO:   putouts at P
76      F_P_A:    assists at P
77      F_P_E:    errors at P
78      F_P_DP:   double plays at P
79      F_P_TP:   triple plays at P
80      F_C_G:    games at C
81      F_C_GS:   games started at C
82      F_C_OUT:  outs recorded at C (innings fielded times 3)
83      F_C_TC:   total chances at C
84      F_C_PO:   putouts at C
85      F_C_A:    assists at C
86      F_C_E:    errors at C
87      F_C_DP:   double plays at C
88      F_C_TP:   triple plays at C
89      F_C_PB:   passed balls at C
90      F_C_IX:   catcher's interference at C
91      F_1B_G:   games at 1B
92      F_1B_GS:  games started at 1B
93      F_1B_OUT: outs recorded at 1B (innings fielded times 3)
94      F_1B_TC:  total chances at 1B
95      F_1B_PO:  putouts at 1B
96      F_1B_A:   assists at 1B
97      F_1B_E:   errors at 1B
98      F_1B_DP:  double plays at 1B
99      F_1B_TP:  triple plays at 1B
100     F_2B_G:   games at 2B
101     F_2B_GS:  games started at 2B
102     F_2B_OUT: outs recorded at 2B (innings fielded times 3)
103     F_2B_TC:  total chances at 2B
104     F_2B_PO:  putouts at 2B
105     F_2B_A:   assists at 2B
106     F_2B_E:   errors at 2B
107     F_2B_DP:  double plays at 2B
108     F_2B_TP:  triple plays at 2B
109     F_3B_G:   games at 3B
110     F_3B_GS:  games started at 3B
111     F_3B_OUT: outs recorded at 3B (innings fielded times 3)
112     F_3B_TC:  total chances at 3B
113     F_3B_PO:  putouts at 3B
114     F_3B_A:   assists at 3B
115     F_3B_E:   errors at 3B
116     F_3B_DP:  double plays at 3B
117     F_3B_TP:  triple plays at 3B
118     F_SS_G:    games at SS
119     F_SS_GS:  games started at SS
120     F_SS_OUT: outs recorded at SS (innings fielded times 3)
121     F_SS_TC:  total chances at SS
122     F_SS_PO:  putouts at SS
123     F_SS_A:   assists at SS
124     F_SS_E:   errors at SS
125     F_SS_DP:  double plays at SS
126     F_SS_TP:  triple plays at SS
127     F_LF_G:   games at LF
128     F_LF_GS:  games started at LF
129     F_LF_OUT: outs recorded at LF (innings fielded times 3)
130     F_LF_TC:  total chances at LF
131     F_LF_PO:  putouts at LF
132     F_LF_A:   assists at LF
133     F_LF_E:   errors at LF
134     F_LF_DP:  double plays at LF
135     F_LF_TP:  triple plays at LF
136     F_CF_G:   games at CF
137     F_CF_GS:  games started at CF
138     F_CF_OUT: outs recorded at CF (innings fielded times 3)
139     F_CF_TC:  total chances at CF
140     F_CF_PO:  putouts at CF
141     F_CF_A:   assists at CF
142     F_CF_E:   errors at CF
143     F_CF_DP:  double plays at CF
144     F_CF_TP:  triple plays at CF
145     F_RF_G:   games at RF
146     F_RF_GS:  games started at RF
147     F_RF_OUT: outs recorded at RF (innings fielded times 3)
148     F_RF_TC:  total chances at RF
149     F_RF_PO:  putouts at RF
150     F_RF_A:   assists at RF
151     F_RF_E:   errors at RF
152     F_RF_DP:  double plays at RF
153     F_RF_TP:  triple plays at RF