cwgame¶
Writes one row per game. Generated from cwgame -h and cwgame -d.
Options¶
cwgame generates files suitable for use by dBase or Lotus-like programs
Each record describes one game.
Usage: cwgame [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-84
-x flist give list of extended fields to output
Default is none
-d print list of field numbers and descriptions
The -dxx switches choose a date format for the gamedate field.
-dsf slashes, full year: mm/dd/yyyy
-dsp slashes, partial year: mm/dd/yy
-dnf no slashes, full year: yyyymmdd (the default)
-dnp no slashes, partial year: yymmdd
-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 day of week
4 start time
5 DH used flag
6 day/night flag
7 visiting team
8 home team
9 game site
10 vis. starting pitcher
11 home starting pitcher
12 home plate umpire
13 first base umpire
14 second base umpire
15 third base umpire
16 left field umpire
17 right field umpire
18 attendance
19 PS scorer
20 translator
21 inputter
22 input time
23 edit time
24 how scored
25 pitches entered?
26 temperature
27 wind direction
28 wind speed
29 field condition
30 precipitation
31 sky
32 time of game
33 number of innings
34 visitor final score
35 home final score
36 visitor hits
37 home hits
38 visitor errors
39 home errors
40 visitor left on base
41 home left on base
42 winning pitcher
43 losing pitcher
44 save for
45 GW RBI
46 visitor batter 1
47 visitor position 1
48 visitor batter 2
49 visitor position 2
50 visitor batter 3
51 visitor position 3
52 visitor batter 4
53 visitor position 4
54 visitor batter 5
55 visitor position 5
56 visitor batter 6
57 visitor position 6
58 visitor batter 7
59 visitor position 7
60 visitor batter 8
61 visitor position 8
62 visitor batter 9
63 visitor position 9
64 home batter 1
65 home position 1
66 home batter 2
67 home position 2
68 home batter 3
69 home position 3
70 home batter 4
71 home position 4
72 home batter 5
73 home position 5
74 home batter 6
75 home position 6
76 home batter 7
77 home position 7
78 home batter 8
79 home position 8
80 home batter 9
81 home position 9
82 visiting finisher (NULL if complete game)
83 home finisher (NULL if complete game)
84 official scorer
85 game type
These additional fields are available in this version of cwgame.
These are specified using the -x option, and appear in the output
after all fields specified with -f. By default, none of these
fields are output.
number field
------ -----
0 visiting team league
1 home team league
2 visiting team game number
3 home team game number
4 length of game in outs
5 information on completion of game
6 information on forfeit of game
7 information on protest of game
8 visiting team linescore
9 home team linescore
10 visiting team AB
11 visiting team 2B
12 visiting team 3B
13 visiting team HR
14 visiting team RBI
15 visiting team SH
16 visiting team SF
17 visiting team HP
18 visiting team BB
19 visiting team IBB
20 visiting team SO
21 visiting team SB
22 visiting team CS
23 visiting team GDP
24 visiting team reach on interference
25 number of pitchers used by visiting team
26 visiting team individual ER allowed
27 visiting team team ER allowed
28 visiting team WP
29 visiting team BK
30 visiting team PO
31 visiting team A
32 visiting team PB
33 visiting team DP
34 visiting team TP
35 home team AB
36 home team 2B
37 home team 3B
38 home team HR
39 home team RBI
40 home team SH
41 home team SF
42 home team HP
43 home team BB
44 home team IBB
45 home team SO
46 home team SB
47 home team CS
48 home team GDP
49 home team reach on interference
50 number of pitchers used by home team
51 home team individual ER allowed
52 home team team ER allowed
53 home team WP
54 home team BK
55 home team PO
56 home team A
57 home team PB
58 home team DP
59 home team TP
60 home plate umpire name
61 first base umpire name
62 second base umpire name
63 third base umpire name
64 left field umpire name
65 right field umpire name
66 visitors manager ID
67 visitors manager name
68 home manager ID
69 home manager name
70 winning pitcher name
71 losing pitcher name
72 save pitcher name
73 batter with goahead RBI ID
74 batter with goahead RBI
75 visitor batter 1 name
76 visitor batter 2 name
77 visitor batter 3 name
78 visitor batter 4 name
79 visitor batter 5 name
80 visitor batter 6 name
81 visitor batter 7 name
82 visitor batter 8 name
83 visitor batter 9 name
84 home batter 1 name
85 home batter 2 name
86 home batter 3 name
87 home batter 4 name
88 home batter 5 name
89 home batter 6 name
90 home batter 7 name
91 home batter 8 name
92 home batter 9 name
93 additional information
94 acquisition information
95 scheduled length of game in innings
96 tiebreaker rule type in use