From 48d540663900ba57c2347b65cb2c5f6b00beb138 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Fri, 30 Nov 2018 11:03:30 +0100 Subject: [PATCH] [Add] section describing the event info CSV file --- docs/gui.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/gui.md b/docs/gui.md index c8e71431..cb2bea41 100644 --- a/docs/gui.md +++ b/docs/gui.md @@ -12,6 +12,7 @@ - [Usage](#usage) - [Projects and Events](#projects-and-events) - [Event folder structure](#event-folder-structure) + - [Loading event information from CSV file](#loading-event-information-from-csv-file) - [Adding events to project](#adding-events-to-project) - [Saving projects](#saving-projects) - [Adding metadata](#adding-metadata) @@ -157,6 +158,29 @@ PyLoT expects the following folder structure for seismic data: Picks are saved in a file with the same filename as the event folder with ``PyLoT_`` prepended. * The file ``notes.txt`` is used for saving analysts comments. Everything saved here will be displayed in the 'Notes' column of the eventlist. +### Loading event information from CSV file + +Event information can be saved in a ``.csv`` file located in the rootpath. The file is made from one header line, which is followed by one or multiple data lines. Values are separated by comma, while a dot is used as a decimal separator. +This information is then shown in the table in the [Eventlist tab](#Eventlist). + +One example header and data line is shown below. +```event,Date,Time,Magnitude,Lat,Long,Depth,Region,Basis Lat,Basis Long,Distance [km],Distance [rad],Distance [deg]``` +```e0001.024.16,24/01/16,10:30:30,7.1,59.66,-153.45,128,Southern Alaska,46.62,10.26,8104.65,1.27,72.89,7.1``` + +The meaning of the header entries is: + +Header | description +--- | --- +event | Event id, has to be the same as the folder name in which waveform data for this event is kept. +Data | Origin date of the event, format DD/MM/YY or DD/MM/YYYY. +Time | Origin time of the event. Format HH:MM:SS. +Lat, Long | Origin latitude and longitude in decimal degrees. +Region | Flinn-Engdahl region name. +Basis Lat, Basis Lon | Latitude and longitude of the basis of the station network in decimal degrees. +Distance [km] | Distance from origin coordinates to basis coordinates in km. +Distance [rad] | Distance from origin coordinates to basis coordinates in rad. + + ### Adding events to project PyLoT GUI starts with an empty project. To add events, use the add event data button. Select one or multiple folders containing events.