amp 
Logical Entity Name  amp 
Default Table Name  amp 
Definition  Summary information on an amplitude reading 

amp Attributes 
Attribute/Logical Rolename  Domain  Datatype  NULL  Definition 
ampid(PK)    NUMERIC(15, 0)  NO  Amplitude identification. Each amplitude is assigned a unique positive integer identifying it. This number is used in the AssocAmO relation along with the origin identifier to link Amp and Origin. This number is used also in the AssocAmM relation along with the magnitude identifier to link Amp and Netmag 
commid    NUMERIC(15, 0)  YES  Comment identification. This is a key used to point to free-form comments entered in the Remark relation. These comments store additional information about a tuple in another relation. Within the Remark relation, there may be many tuples with the same commid and different lineno, but the same commid will appear in only one other tuple among the rest of the relations in the database 
datetime    NUMERIC(25, 10)  YES  The date of associated with information in the record, in true epoch format

* In the current real time system, we know the exact amplitude time as well as the window.
Therefore, we can set values for the datetime, wstart & duration fields.

* In the case where we know only the time of the amplitude but not the window, we set:
datetime = [AMPLITUDE TIME]
wstart = [AMPLITUDE TIME]
duration = 0

* In the case where we do not know the amplitude time nor the window, we set:
datetime = NULL
wstart = [ORIGIN TIME]
duration = NULL
 
sta    VARCHAR(6)  NO  Station code. This is the common code-name of a seismic observatory. Generally only three or four characters are used 
net    VARCHAR(8)  YES  Unique network identifier. This character string is the name of a seismic network 
auth    VARCHAR(15)  NO  The auth field specifies the source of the information. This may be a network identifier (FDSN or otherwise), or any other string indicating the source of the information in the record 
subsource    VARCHAR(8)  YES  A second identifier to specify the system or process that derived the data. e.g., the origin's AUTH is CI, but the subsource (the solution) was computed by JIGGLE 
channel    VARCHAR(8)  YES  Channel name 
channelsrc    VARCHAR(8)  YES  Domain for channel. This specifies what naming convention is used for the channel name (i.e. SEED, USGS, etc.) 
seedchan    VARCHAR(3)  YES  SEED channel name. The first character denotes the band code, the second for the instrument code and the third represents the component code 
location    VARCHAR(2)  YES  Describes the individual sites on an array station, operated by the same network operator 
iphase    VARCHAR(8)  YES  Reported phase. This eight-character field holds the name initially given to a seismic phase. Standard seismological labels for the types of signals (or phases) are used (e.g., P, PKP, PcP, pP). Both upper and lower case letters are available and should be used when appropriate, for example, pP or PcP 
amplitude    DOUBLE PRECISION  NO  Amplitude in appropriate units for type 
amptype    VARCHAR(8)  YES  Amplitude type 
units    VARCHAR(4)  NO  Units of amplitude 
ampmeas    VARCHAR(1)  YES  Amplitude measure 
eramp    NUMERIC(5, 3)  YES  Uncertainty in amplitude measurement 
flagamp    VARCHAR(4)  YES  This attribute is a flag to indicate whether amplitude is over P packet, S packet, entire waveform, etc 
per    NUMERIC(10, 4)  YES  Signal period. This attribute is the period of the signal described by the amplitude record 
snr    DOUBLE PRECISION  YES  Signal-to-noise ratio. This is an estimate of the signal relative to that of the noise immediately preceding it 
tau    NUMERIC(9, 4)  YES  Coda duration (F-P time) 
quality    NUMERIC(2, 1)  YES  This attribute describes the completeness of the time window of data. A complete time window is 1.0, an incomplete time window is 0.0. If an incomplete time window has been human-reviewed and the analyst is confident that the peak amplitude was recorded and properly computed despite the presence of data gaps, the value is set to 0.5 to indicate the window contains data gaps, but is usable 
rflag    VARCHAR(2)  YES  This flag describes whether an observation was generated automatically, by a human, or has been finalized 
cflag    VARCHAR(2)  YES  This flag indicates whether the amplitude value is below noise, on scale or clipped 
wstart    DOUBLE PRECISION  NO  Start of time window of amplitude measurement

* In the current real time system, we know the exact amplitude time as well as the window.
Therefore, we can set values for the datetime, wstart & duration fields.

* In the case where we know only the time of the amplitude but not the window, we set:
datetime = [AMPLITUDE TIME]
wstart = [AMPLITUDE TIME]
duration = 0

* In the case where we do not know the amplitude time nor the window, we set:
datetime = NULL
wstart = [ORIGIN TIME]
duration = NULL
 
duration    DOUBLE PRECISION  YES  Duration of amplitude reading

* In the current real time system, we know the exact amplitude time as well as the window.
Therefore, we can set values for the datetime, wstart & duration fields.

* In the case where we know only the time of the amplitude but not the window, we set:
datetime = [AMPLITUDE TIME]
wstart = [AMPLITUDE TIME]
duration = 0

* In the case where we do not know the amplitude time nor the window, we set:
datetime = NULL
wstart = [ORIGIN TIME]
duration = NULL
 
lddate    DATE  YES  Load date. Date and time that the record was created, in Oracle date datatype 

amp Keys 
Key Name  Key Type  Keys 
ampkey01  PrimaryKey  ampid 

amp Relationships 
Parent Relationships: 
Entity Name  Type  Cardinality  Business Name  VerbPhrase  InversePhrase  Foreign Keys  Is Supertype 
remark  Non-Specific            NO 
Child Relationships: 
Entity Name  Type  Cardinality  Business Name  VerbPhrase  InversePhrase  Foreign Keys  Is Subtype 
ampset  Identifying  One To Zero or More          NO 
assocamm  Identifying  One To Zero or More          NO 
assocamo  Identifying  One To Zero or More          NO 

amp Check Constraints 
Check Constraint Name  CheckConstraint 
amp01  ampid > 0 
amp02  amplitude > 0 
amp03  ampmeas in ('0','1') 
amp04  amptype in ('C','WA','WAS','WASF','PGA','PGV','PGD','WAC','WAU','IV2','SP.3','SP1.0','SP3.0','ML100','ME100','EGY','M0') 
amp06  eramp >= 0.0 
amp07  flagamp in ('P','S','R','PP','ALL','SUR') 
amp08  per > 0.0 
amp09  tau > 0.0 
amp10  units in ('c','s','mm','cm','m','ms','mss','cms','cmss','mms','mmss','mc','nm','e','cmcms','none','dycm') 
amp11  quality >= 0.0 and quality <= 1.0 
amp12  rflag in ('a','h','f','A','H','F') 
amp13  cflag in ('bn', 'os','cl','BN','OS','CL')