NEW OKLAHOMA GEOLOGICAL SURVEY EARTHQUAKE CATALOG FORMAT INTRODUCED 1999 JULY

There are 80 columns numbered 0 to 79. The first column is zero
for convenience of programming in perl and other languages.

columns   variable          format    example(s)
0-3       year              %4.0f     1999
                                      2004 (not null)

4         blank             " "       

5-7       3 letter month    %3s       JAN FEB MAR APR MAY JUN JUL AUG
          abbreviation                SEP OCT NOV DEC "   "=null
          in English

8         blank             " "

9-10      day of month      %02.0f    01 08 14 23 31 "  "=null

11        blank

12-13     UTC/GMT hour      %02.0f    00 01 11 18 23 "  "=null
          of origin

14        blank

15-16     minute of         %02.0f    00 01 15 38 59 "  "=null
          origin

17        blank             " "

18-22     second of origin  %05.2     00.23 18.14 59.00 "     "=null
                                      60.15 possible during
                                      leap seconds

23        blank, optionally
          may be used to
          extend second
          eg 10.123

24-35     county, wide      %-12s     COAL LE FLORE
          enough for any              COMANCHE (not null)
          Oklahoma County             County with over 12 letters and
          Counties                    spaces will be truncated, not
          MC CLAIN,                   abbreviated. If earthquake
          LE FLORE,                   occurred before 1999 boundaries
          MC INTOSH,                  in effect, 1999 boundaries used
          ROGER MILLS,                (not null) (left justified)
          MC CURTAIN 
          will have a space

36-37     Two-letter state  %2s       OK MO KS TX AR NM CO LA IA NE
          abbreviation                If county has 12 letters/spaces
                                      there will be no blank between
                                      county and state. If earthquake
                                      occurred before 1999 boundaries
                                      in effect, 1999 boundaries used
                                      (not null)

38-39     Maximum MM        %2.0f     1 2 8 9 10 12
          intensity                   (right justified) "  "=null
                                      For MM 10 11 12 there will be
                                      no space between state and MM

40        blank             " "       minus used only for negative
          or minus                    m3hz

41-43     m3Hz              %03.1     0.8 1.5 2.7 3.0 5.5 "   "=null

44        blank             " "       minus used only for negative
          or minus                    mbLg

45-47     mbLg              %03.1     0.8 1.5 2.7 3.0 5.5 "   "=null

48        blank           " "         minus used only for negative
          or minus                    MDUR

49-51     MDUR              %03.1     0.8 1.5 2.7 3.0 5.5 "   "=null

52        blank             " "

53-59     latitude          %-7.4f    35.1 34.123 33.5231 (not null)
                                      (left justified)

60        blank             " "

61-69     longitude         %-9.4f    -96.00 -95.1 -98.123 -97.1234
                                      -102.3789 West longitude negative
                                       (not null) (right justified to line
                                       up decimal point in eg 101.2345 and
                                       95.9874)
                                       NOTE: ON WWW PAGES THE HEADING READS "deg(W)
                                       IF "W" and "-" ARE BOTH APPLIED, THIS COULD
                                       IMPLY THAT THE LONGITUDES ARE EAST WHICH IS NOT
                                       INTENDED. 

70        blank             " "

71-75     depth in km       %5.2f     (not null) (right justified)

76        R or blank        %1s       (R for restrained depth)

77        blank             " "

78        agency            %1s       O=Oklahoma Geological Survey

79        earth model       %1s       N=Nuttli
          used in                     C=Chelsea
          location


PERL WRITE STATEMENTS:

$f1 = '%4.0f %3s %02.0f %02.0f %02.0f %05.2 %-12s%2s%2.0f ';
$f2 = '%03.1 %03.1 %03.1 %-7.4f %9.4f %5.2f%1s %1s%1s';

printf STDOUT "$f1$f2",
    $year, $month, $day, $hour, $minute, $second,
    $county, $state, $mm, $m3hz, $mblg, $MDUR,
    $lat, $lon, $depth, $restrained_depth, $agency, $model;