# Configuration file read by iloc

#
#
# Station file (in $ILOCROOT/auxdata/Stations)
#    Station file is required for ISF input
#    If no full pathname is given the directory pathname is set to
#    $ILOCROOT/auxdata/Stations
#    Warning:
#        iloc isf  option expects isf_stalist
#        iloc isf2 option expects IR2_stalist
#
StationFile = isc_stalist        # IR station coordinates for isf option
#StationFile = IR2_stalist       # IR2 station coordinates for isf2 option
#
#
# RSTT (in $SLBMROOT/models)
#    If no full pathname is given the directory pathname is set to
#    $SLBMROOT/models
#
#RSTTmodel = rstt201404um.geotess # RSTT model name
RSTTmodel = pdu2020012Du.geotess # RSTT model name
UseRSTTPnSn = 1                  # use RSTT PnSn predictions?
UseRSTTPgLg = 1                  # use RSTT Pg/Lg predictions?
#
#
# Database
#
#
UpdateDB = 0                     # write results to database?
OutAgency = ILOC                 # author for new hypocentres and assocs
#
# Database connection parameters
#     MySQL: parameters are expected in $HOME/.my.cnf
#     Oracle: leave DBname empty if ORACLE_SID is set
#     PostgreSQL NIOB: provide DBuser, DBpasswd and DBname
#
#DBuser = geotool
#DBpasswd = geotool
#DBname = osdb
#DBuser = sysop
#DBpasswd = sysop
#DBname = seiscomp3
#
# Database accounts
#     If InputDB, OutputDB and NextidDB are undefined (default):
#         Data will be read and written from the account identified by DBuser
#     If InputDB, OutputDB and NextidDB are specified:
#         DBuser must have read permission to InputDB and read and write
#         permissions to OutputDB and NextidDB
#
#InputDB = bulletin               # read data from this account
#OutputDB = myaccount             # write results to this account
#NextidDB = seiscomp3             # get new unique ids from this account
#
# ISC specific database parameters
#
repid = 100                      # reporter id for new hypocentres and assocs
InAgency = BUD                   # author for input assocs
#
#
# Google Earth
#
#
#KMLBulletinFile = bulletin.kml  # Bulletin in KML file
KMLLatitude = 47.49833           # KML bulletin viewpoint latitude
KMLLongitude = 19.04045          # KML bulletin viewpoint longitude
#KMLLatitude = 39.7              # KML bulletin viewpoint latitude
#KMLLongitude = 24.45            # KML bulletin viewpoint longitude
KMLRange = 1000000               # KML bulletin viewpoint elevation
KMLHeading = 0                   # KML bulletin viewpoint azimuth
KMLTilt = 0                      # KML bulletin viewpoint tilt
ZipKML = 1                       # zip KML files and keep kmz only?
#
#
# Travel time tables (in $ILOCROOT/auxdata)
#
#
TTimeTable = ak135               # TT table prefix [ak135|jb]
#
#
# Local velocity model
#
#
MaxLocalTTDelta = 3.             # use local TT up to this distance
LocalTTfromRSTT = 0              # get local TT from RSTT model at epicentre
#LocalVmodelFile =               # pathname for local velocity model (non-RSTT)
#
#
# ETOPO parameters (in $ILOCROOT/auxdata/topo)
#     ETOPO5 (resampled to 5 x 5 minute resolution, ~ 19MB)
#
#
EtopoFile = etopo5_bed_g_i2.bin  # filename for ETOPO file
EtopoNlon = 4321                 # number of longitude samples in ETOPO
EtopoNlat = 2161                 # number of latitude samples in ETOPO
EtopoRes = 0.0833333             # cellsize in ETOPO
#
#
# agencies whose hypocenters not to be used in setting the initial hypocentre
#     UNK  - unknown agency
#     NIED - truncates origin time to the minute
#     HFS, NAO, LAO - single array locations
#
NohypoAgencies = UNK,NIED,HFS,HFS1,HFS2,NAO,LAO
#
#
# Neighbourhood Algorithm
#
#
DoGridSearch = 1                 # perform NA?
NAsearchRadius = 5.              # search radius (deg) around initial epicentre
NAsearchDepth = 300.             # search radius (km) around initial depth
NAsearchOT = 30.                 # search radius (s) around initial origin time
NAlpNorm = 1.                    # p-value for norm to compute misfit [1,2]
NAiterMax = 5                    # max number of iterations
NAcells = 25                     # number of cells to be resampled at each iter
#NAinitialSample = 1500          # size of initial sample
#NAnextSample = 150              # size of subsequent samples
NAinitialSample = 1000           # size of initial sample
NAnextSample = 100               # size of subsequent samples
#NAinitialSample = 3500          # size of initial sample (slow but exhaustive)
#NAnextSample = 200              # size of subsequent samples
iseed = 5590                     # random number seed
#
#
# Depth
#
#
MinDepthPhases = 3               # min number of depth phases for depdp
MindDepthPhaseAgencies = 1       # min number of agencies for depth resolution
MaxLocalDistDeg = 0.2            # max local distance [deg]
MinLocalStations = 1             # min number of local defining stations
MaxSPDistDeg = 2.                # max S-P distance [deg]
MinSPpairs = 3                   # min number of defining S-P phase pairs
MinCorePhases = 3                # min number of defining core reflection phases
DefaultDepth = 0.                # used if seed hypocentre depth is NULL
MaxShallowDepthError = 30.       # max depth error for crustal free-depth
MaxDeepDepthError  = 60.         # max depth error for deep free-depth
#
#
# Linearized inversion
#     Sigmathreshold: residuals that exceed abs(Sigmathreshold*PriorMeasError)
#         are made non-defining
#
SigmaThreshold = 6.              # used to exclude big residuals from solution
DoCorrelatedErrors = 1           # account for correlated errors?
AllowDamping = 1                 # allow damping of model vector?
MinIterations = 4                # min number of iterations
MaxIterations = 50               # max number of iterations
MinNdefPhases = 4                # min number of defining phases
ConfidenceLevel = 90.            # confidence level for uncertainties [90|95|98]
#
#
# Magnitudes
#
#
MinNetmagSta = 3                 # min number of stamags for netmag
MagnitudeRangeLimit = 2.2        # allowable range around network magnitude
#
# Body wave magnitudes
#
mbQtable = MB                    # magnitude correction table [GR|VC|MB|none]
BBmBMinDistDeg = 5.              # min distance for mB
BBmBMaxDistDeg = 105.            # max distance for mB
mbMinDistDeg = 21.               # min distance for mb
mbMaxDistDeg = 100.              # max distance for mb
mbMinPeriod = 0.                 # min period for mb
mbMaxPeriod = 3.                 # max period for mb
#
# Surface wave magnitudes
#
MSMinDistDeg = 20.               # min distance for MS
MSMaxDistDeg = 160.              # max distance for MS
MSMinPeriod = 10.                # min period for MS
MSMaxPeriod = 60.                # max period for MS
MSMaxDepth = 60.                 # max depth for MS
MSPeriodRange = 5                # MSH period tolerance around MSZ period
#
# Local magnitude
#
MLMaxDistkm = 1000.              # max distance (km) for ML
#
#
# Log and error files
#
#
logfile = stdout                 # default - overwritten by yyyymmv if given
errfile = stderr                 # for errors

