Whenever selective search and extraction is wanted SELECT is used. The program can run on the CAT database, single CAT files (Nordic or Nordic compact) or the S-file data base. The output file, select.out, will also be in Nordic format. Since the input CAT database can contain both normal and compact files, the output will always be a normal file with blank lines between events. If however the input is one compact file, the output will also be a compact file. Note: If SELECT is used on the CAT database (normal operation), you need to UPDATE your S-file database in order to transfer changes from the S-files to the CAT database. Select can work with input in 3 different ways:
POSSIBLE INPUT IS: STANDARD CAT DATABASE: RETURN ALTERNATIVE DATABASE, GIVE 1-5 LETTER CODE: FILENAME FOR ONE FILE, MUST BE 6 OR MORE CHARACTERS: Type of base: CAT (Return) or Sfiles (s): Updating database TEST_ ! standard base The database TEST_ has 10 files The first file starts: 199309 The last file starts: 199909 Start time (blank is 1980), yyyymmddhhmmss: 199309! time range End time, enter for 2015 : 199607 PARAMETERS 1 - Fault Plane Solution 2 - Earthquake Felt 3 - Magnitude Type(s) 4 - Distance ID(s) 5 - Event ID(s) 6 - Magnitude Limits 7 - Latitude Limits 8 - Longitude Limits 9 - Depth Limits 10 - RMS Limits 11 - Number of Stations Limits 12 - Hypocenter Errors Latitude Limits 13 - Hypocenter Errors Longitude Limits 14 - Hypocenter Errors Depth Limits 15 - Minimum Number of Polarities 16 - Hypocenter Agencies 17 - Magnitude Agencies 18 - Station Codes, components and distance range 19 - Polygon 20 - Use all header lines 21 - Look for wave form file names 22 - Gap range 23 - Phases 24 - Volcanic subclasses SELECT NUMBER TO CHANGE PARAMETER, RETURN TO SEARCH: 6 Minimum Magnitude, return for default: 5 Maximum Magnitude, return for default: 7 PARAMETERS 1 - Fault Plane Solution 2 - Earthquake Felt 3 - Magnitude Type(s) 4 - Distance ID(s) 5 - Event ID(s) 6 - Magnitude Limits 5.0 7.0 7 - Latitude Limits 8 - Longitude Limits 9 - Depth Limits 10 - RMS Limits 11 - Number of Stations Limits 12 - Hypocenter Errors Latitude Limits 13 - Hypocenter Errors Longitude Limits 14 - Hypocenter Errors Depth Limits 15 - Minimum Number of Polarities 16 - Hypocenter Agencies 17 - Magnitude Agencies 18 - Station Codes, components and distance range 19 - Polygon 20 - Use all header lines 21 - Look for wave form file names 22 - Gap range 23 - Phases 24 - Volcanic subclasses Ok. Input realized successfully. SELECT NUMBER TO CHANGE PARAMETER, RETURN TO SEARCH: 199309.CAT No of events: 1 Selected: 1 Selected total: 1 199406.CAT No of events: 1 Selected: 1 Selected total: 2 199410.CAT No of events: 1 Selected: 0 Selected total: 2 199508.CAT No of events: 1 Selected: 0 Selected total: 2 199511.CAT No of events: 1 Selected: 0 Selected total: 2 199606.CAT No of events: 6 Selected: 3 Selected total: 5 199607.CAT No of events: 5 Selected: 1 Selected total: 6 TOTAL NUMBER OF EVENTS IN TIME INTERVAL 16 NUMBER OF DISTANT EVENTS - - - - - 7 NUMBER OF REGIONAL EVENTS - - - - - 0 NUMBER OF LOCAL EVENTS - - - - - 9 --------------------------------------------------- NUMBER OF EVENTS SELECTED ************* 6 NUMBER OF WAVEFORM FILES SELECTED 9 NUMBER OF INDEXES SELECTED 6 SELECTED EARTHQUAKES ARE IN FILE: select.out LOCAL INDEX FILE IN: index.out NAMES FOR WAVEFORM FILES IN FILE: waveform_names.out SELECT COMMANDS IN FILE: select.inp
Note above, that the second time the menu is shown, the choice of magnitude limits is shown. For each CAT file in the catalog, the number of events in file, number of events selected from that file and the accumulated number are listed. The last file might not show the correct number of events in file since SELECT might stop before reading the whole file if the end time is in the middle of the file. If start time is blank, 1980 is used. The end time can also be blank, and 2015 is used. This option is useful when selection on whole data base or whole file. Input parameters:
In the input database (or file) a time window must always be given. If no more selection is done, all data in time window is selected. Further selection can be done by choosing a number and giving parameters. The chosen parameters are then shown on the next parameter selection menu as shown above for magnitude. Parameters can be reentered. Parameters not entered will have no influence in the selection. If several parameters (numbered selections below) are entered, conditions for all must be true for the event to be selected. Within each numbered selection, usually only one of the entered conditions must be fulfilled for the event to be selected. If e.g. Ml and Mb are selected, events, which have either magnitude, will be selected. When no more parameters are desired, press enter.
A special option is to make a file used for input to CODAQ. The station name CODAQ is selcted and all stations present within the specified distance range are seleted and the output is written in file index.codaq which then contains the event-station combinations used as input to CODAQ. For componet selection, only the orientation code can be used. In addtion to to Z, N or E, also A can be used. This will select all 3 components for a selected station. In example below, all components for stations with 100 km are selected.
STAT CO Mindis Maxdis Phas All stat hdist->FF CODAQ A 0 100
Historical data: When working with historical data, it can be useful to work with catalogs of several centuries. The century is available in the Nordic Format, so catalogs can go back to year 0. Output:
select.out: A CAT-file or compact file (depending on input) of selected events.
index.out: A list of event id's of selected events can be used with EEV or other programs accepting index files. This could be used e.g. to work on only distant events in the database by first selecting all distant events and then working with these directly in the database using command EEV index.out. Index files can have any name (must contain a `.') so different subsets can be available with different index files.
Waveform_names.out: A list of corresponding waveform files. It is mainly intended for copying to or from tape specific waveform files. It has the format of the filenr.lis files and can be used directly with e.g. MULPLT. See also program get_wav for selecting waveform files from the database.
select.inp: A file with all the parameters used for the run. The file can be renamed, edited and used as input for select. This is particularly an advantage if a complex set of selection parameters are used and the selection is wanted again with just a small change. An example file is shown below
Base or file name : TEST_ Start time : 19930300000000 End time : 19961231235959 Minimum number of stations : 0 Maximum number of stations : 999 Minimum latitude : -90.000 Maximum latitude : 90.000 Minimum longitude : -360.000 Maximum longitude : 360.000 Minimum magnitude : 5.000 Maximum magnitude : 7.000 Magnitude agencies : Hypocenter agencies : Minimum rms : 0.000 Maximum rms : 999.000 Minimum depth : -99.000 Maximum depth : 99999.000 Minimum error in latitude : 0.000 Maximum error in latitude : 99999.000 Minimum error in longitude : 0.000 Maximum error in longitude : 99999.000 Minimum error in depth : -99.000 Maximum error in depth : 99999.000 Magnitude types (L,C,B,S,W) : Distance (ID) types (L,R,D) : Event types (e.g. E,V,P) : Minimum number of polarities : 0 Felt earthquakes : F Fault plane solution : F Check all header lines : F Waveform files to check : Minimum gap : 0.000 Maximum gap : 360.000 Phases : P SSS PP Volcanic subclasses : Stat., comp. dist range, phase (1x,a5,a2,2i7,1x,a4) one pr line, end blank line: STAT CO Mindis Maxdis Phas All stat hdist->TT BER SZ 1 999 P Polygon points (lat,lon), one pair pr line, end with blank line :
Note: The TT at STAT line indicates that all stations must be present (True) and hypocentral distance is used (True)
Select with input from the prompt line
This option is particular useful when using select with automated operations and has been made specifically to deal with extracting data out of the data bases using WEB based software. This option do not have all of the above options. The following are implemented:
|-base :||5 letter data base|
|-seisweb:||if set, WEB output parameters|
|-time :||time interval (2 variables)|
|-web_out:|| complete path to where data is placed, only
active if seisweb set. 3 files are made:
|-area :||lat-lon grid, minlat,maxlat,minlon,maxlon|
|-depth :||depth range, mindepth,maxdepth|
|-mag :||magnitude range, minmag,maxmag|
|-nstat :||range of number of stations, min,max|
|-gap :||range of gap, min,max|
|-rms :||range of rms, min,max|
|-magtypes :||up to 5 mag types, one string, e.g L|
|-disttype :||distance type, e.g D|
|-eventtype :||event type, e.g. E|
Problems: An event might be found and listed in index.out, but when looking for it with EEV, it is not there. This can happen if an event has been deleted with EEV and no UPDATE has been made, so that the event is still present in the CAT part of the database.