<?php
  //use environmental variables for my path
// Works as of PHP 4.3.0
$home = getenv('WEB');
//error_log($home);
#home=$_ENV['WEB'];
set_include_path("$home/html/include");
// Works in all PHP versions
ini_set('include_path', "$home/html/include");


// Get a list of all agencies
# DB
$user = "web";
$pass = "webuser";
$host = getenv('PGHOSTADDR');
$port = "5432";
$dbne = "isc";

#Open database connection	
$dbh = pg_connect("host=$host port=$port dbname=$dbne user=$user password=$pass") or die("Could not connect") ;
pg_query($dbh, "set search_path to gtdb");

#Database command 
$cmd = "select min(extract(year from h.day)), max(extract(year from h.day)), count(distinct(h.isc_evid))
FROM gtdb.hypocenter h";
#Execute the query
$result = pg_query($dbh, $cmd);
$allagencies= array();
// fetch_row is supposed to be faster than fetch_array
$row = pg_fetch_row($result);

$startdate = $row[0];
$enddate   = $row[1];
$eventnum  = $row[2];

pg_close($dbh);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <title>IASPEI GT reference events</title>
    <link rel="icon" href="/images/favicon.ico" type="image/ico" />
    <link rel="stylesheet" type="text/css" href="/css/iscschema.css">
  </head>
   <body>
  <div id="container">
   <?php include("header.php"); ?>

   <div id="maingeneral">
	 <div id="content">
  <?php include("include/leftmenu.php"); ?>
    <div id="rightinner">
  <div id=lefttitle><h3>IASPEI Ground Truth (GT) reference events</h3></div>

  
  <p>The IASPEI reference events list is a database of earthquakes and explosions, for which hypocentral information (lat, lon, depth) is known with high confidence (to 10 km or better (GT10)) with seismic signals recorded at regional and/or teleseismic distances. The database is maintained at the International Seismological Centre and currently contains <?php print $eventnum; ?> events from <?php print $startdate; ?> to <?php print $enddate; ?>.</p>

<p style="color:red">The GT List remains available, but the ISC has temporarily suspended the addition of new events to the GT database due to forthcoming changes to the criteria used to identify GT events. This work will be discussed and finalised at the IASPEI Meeting in Lisbon in 2025 after which we shall make the newly updated GT database available here.</p>

  <p>The global effort of collecting and validating GT events was initiated by the <!--oldURL <a href="http://www.iaspei.org/commissions/CSOI.html#wgreil">--><a href="https://gfzpublic.gfz-potsdam.de/rest/items/item_43349/component/file_56126/content#:~:text=The%20IASPEI%20Commission%20on%20Seismic,events%20in%20the%20past%20decade."</a>CoSOI/IASPEI Working Group on Reference Events for Improved Locations</a> chaired by Bob Engdahl and Paul Richards. Events may now be <a href="/gtevents/submission/">submitted</a> to the ISC for validation.</p>

</div>
<div id=content>
<table>
 <tr valign=top>
   <td>
       </br><br>
<p>This database of a significantly large number of reference events facilitates better visualisation of the Earth structure, better modelling of velocities of seismic waves, more accurate travel time determinations and increased accuracy of event locations.</p>

<p>The events are coded by category GT0, GT1, GT2 or GT5,
  where the epicentre of a GT<i>X</i> event is known to within <i>X</i> km, to a
  95% confidence level. GT1 and GT2 events are typically explosions, mine blasts or rock bursts either associated to explosion phenomenology located upon overhead imagery with seismically determined origin times, or precisely located by in-mine seismic networks. GT1-2 events are assumed to be shallow, but depth is unknown. </p>
<p>
  The database consists of:
</p>
<ul>
 <li>nuclear explosions of GT0-5 quality, adopted from
  the Nuclear Explosion Database (Bennett et al, 2010);</li> 
  <li>GT0-5 chemical explosions, rock bursts, mine-induced events, as well as a few earthquakes, inherited from the reference event set by Bond&aacute;r et al (2004);</li> 
  <li>GT5 events (typically earthquakes with crustal depths) identified using either the method of Bond&aacute;r et al (2008) (2,275 events) or Bond&aacute;r and McLaughlin (2009), which are updated regularly from the EHB and ISC Bulletins.</li>
</ul>

<br/><br/>
<p> <a href="/gtevents/search/"><b>Search the IASPEI GT database</b></a><br/></p>
<p> <a href="/gtevents/stations/"><b>Search the station list for the IASPEI GT Bulletin</b></a><br/></p>
<p> <a href="/gtevents/submission/"><b>Nominate a reference event</b></a><br/></p> 
<p> <a href="http://download.isc.ac.uk/gt/bulletin.gz"><b>Download the IASPEI GT bulletin</b></a> (gzip file)<br/></p>
<p> <a href="http://download.isc.ac.uk/gt/catalogue.gz"><b>Download the IASPEI GT catalogue</b></a> (gzip file)<br/></p>
<p> <a href="http://download.isc.ac.uk/gt/stations_gt.gz"><b>Download station list for GT Bulletin</b></a> (gzip file)<br/></p>

<br/><br/>
 </td>
  <td>
     <table align=center>
       <tr>
         <td align=center><img width=500px  src="images/gt.events.png"><br/><br/></td>
       </tr>
       <tr valign=top>
<td align=center><img width=300px src="images/gt.type.png"></td>
       </tr>
<tr><td align=center> <img width=300px src="images/gt.stadist.png"></td>
</tr>
      </table>
   </td>
 </tr>
</table>
<br/>

<p><b>References:</b><br/>
<p>Bennett, T., V. Oancea, B. Barker, Y.-L. Kung, M. Bahavar, B. Kohl, J. Murphy, I.Bond&aacute;r (2010) The nuclear explosion database NEDB: a new database and web site for accessing nuclear explosion source information and waveforms, <i>Seismological Research Letters,</i> <b>Volume 81, doi:10.1785/gssrl.81.1.12</b>.</p>


<p>Bond&aacute;r, I. and K.L. McLaughlin (2009) A New Ground Truth Data Set For Seismic Studies, <i>Seismological Research Letters,</i> <b>Volume 80, Number 3, 465-472</b>.</p>

<p>Bond&aacute;r, E. Engdahl, X. Yang, H. Ghalib, A. Hofstetter, V. Kirichenko, R. Wagner, I. Gupta, G. Ekstr&ouml;m, E. Bergman, H. Israelsson, and K. McLaughlin (2004) Collection of a reference event set for regional and teleseismic location calibration, <i>Bulletin of the Seismological Society of America,</i> <b>Volume 94, 1528-1545</b>.</p>

<p>Bond&aacute;r, E. Bergman, E. Engdahl, B. Kohl, Y.-L. Kung, and K. McLaughlin (2008) A hybrid multiple event location technique to obtain ground truth event locations, <i>Geophys. Journal Int.,</i> <b>Volume 175, doi:10.1111/j.1365,246X.2008.03,867x</b>.</p>	

<p><b>Citation for data retrieved from the ISC web site:</b><br/>
<!--International Seismological Centre, Reference Event Bulletin, http://www.isc.ac.uk, Internatl. Seis. Cent., Thatcham, United Kingdom, 2008.</p>-->
International Seismological Centre (20XX), IASPEI Reference Event (GT) List, <a href="https://doi.org/10.31905/32NSJF7V">https://doi.org/10.31905/32NSJF7V</a></p>


</div>												     
  </div>

  </div> 
<?php include("footer.php"); ?>
   <?php 
//close the container div 
?>
</div>
</body>
</html>
