next up previous contents index
Next: 17.2 NORHEAD, making a Up: 17. Reports and statistics Previous: 17. Reports and statistics   Contents   Index


17.1 REPORT, extract data from CAT file

The program extracts parameter data from all header lines in a CAT file and rearranges the data in a table. In additions, there is an option to rearrange order and location of magnitudes on the header line. Below is an example of a run where the input CAT file is called collect.out :


report collect.out

Below is shown parameters which can be chosen for output.
 A return will chose all, placing any character under a field
 will chose that parameter in the output. Each field starts
 with a capital letter and ends within the following blank.
 The order of the output can be changed by placing a number
 under the field and fields will be written out in the order
 of the numbers. E after time, lat, lon and dep are errors,
 L E is distance and event id s, F is both fix flags and A is
 agency for magnitude.
 The following example shows that Mc, Depth(Dep) and Time with
 error are selected and written out in given order.
Date TimeE L E LatE LonE Dep E F Aga Nsta Rms Gap McA MlA MbA MsA MwA Fp Spec 
     30  45              20                       10

Date TimeE L E LatE LonE Dep E F Aga Nsta Rms Gap McA MlA MbA MsA MwA Fp Spec 
x               x    x    x            x       x                       x
 Number of output fields            8

 Number of events                                     12
 Number of events with spectra:                        1
 Number of events with fault plane solution:           3
 Number of events with error estimates:               16
 Number of events with mc             :               10
 Number of events with ml             :               10
 Number of events with mb             :                8
 Number of events with ms             :                5
 Number of events with mw             :               12

 Output report file is report.out
 Output nordic file is report_n.out
 Output of choices used in report.inp

The report.inp is a file with the choices used. Report can use that file (or a file with the same format and a different name) as second argument:

report collect.out report.inp

in order to use a fixed set of choices.

Content of report.out


 Year Date Latitud Longitud Depth NST GAP   Ml STRIK  DIP RAKE
 1996  6 3  47.776  153.222   0.1  12 348                                      
 1996  6 6  62.652    4.940  15.0  13 270  2.9    28   61  -41
 1996  6 6  62.634    5.068  15.0  13      2.9                
 1996  6 6  62.652    4.940  15.0  13 270  2.9    28   61  -41
 1996  6 7  59.841    5.127  12.0  12      1.9     8   41   75
 1996  610 -13.481  167.130 200.1 301                                          
 1996  625  61.656    3.363  14.9  35      3.2                
 1996  7 5  61.282    4.825   7.1  10      2.0                
 1996  713  61.416    3.870  12.1   9      1.5                
 1996  718  60.156    2.070  15.0   9      1.8                
 1996  718  51.438  157.737  29.9  18                         
 1996  726  61.755    2.293  22.1   9      1.8

The file report_n.out contains the input data with the only difference that the magnitudes have been moved around on the header line. This can be practical for later plotting with EPIMAP. If no magnitude selection has been made, the magnitudes will come in the order Mc, Ml and Mb. If no magnitude of that type is available, the output field is blank. The magnitude selected is the first to occur of the corresponding type. If other magnitudes are to be selected, numbers can be used to select any 3 magnitudes in any order. If it is important to select magnitudes by agency also, use program MAG. REPORT can also give a numbered output by adding the second or third argument -n.


next up previous contents index
Next: 17.2 NORHEAD, making a Up: 17. Reports and statistics Previous: 17. Reports and statistics   Contents   Index
Peter Voss : Mon Feb 27 10:16:12 UTC 2017