Class StationAv

java.lang.Object
  |
  +--StationAv

public class StationAv
extends java.lang.Object

This class defines the availability for one station/component

Variables which can be defined in the format file are:
StName (String): Station name
StComp (String): Cahnnel id (FDSN-code)
AutoDRM (String): AutoDRM mail address
StLat (float): Station latitude (north positive, south negative)
StLon (float): Station longitude (east positive, west negative)
StAvail (float): Station availability value (see Waves4U)
Distance (float): Distance from epicentre (calculated internally)
Azimuth (float): Azimuth from epicentre (calculated internally)
RequestID (String): the stations request ID logged in *.requested.list


Field Summary
 java.lang.String AutoDRM
          AutoDRM e-mail address, variable name used in format file '*.fmt'
 float Azimuth
           
 java.lang.String delayAutoDRM
          delayAutoDRM delay time befor sending request, variable name used in format file '*.fmt'
 float Distance
           
 java.lang.String RequestID
          Station request id, variable name used in format file '*.fmt'
 java.lang.String st1
           
 java.lang.String st2
           
 float StAvail
          Station availability, variable name used in format file '*.fmt' (see also Waves4U)
 java.lang.String StComp
          Station channel name, variable name used in format file '*.fmt'
 float StLat
          Station latitude (N > 0, S < 0 ), variable name used in format file '*.fmt'
 float StLon
          Station longitude (E > 0, W < 0 ), variable name used in format file '*.fmt'
 java.lang.String StName
          Station name, variable name used in format file '*.fmt'
 
Constructor Summary
StationAv()
          default constructor inistializes internal parameters
StationAv(StationAv s1, StationAv s2)
          constructor for one station when comparing to entries
s1 station 1 s2 station 2
 
Method Summary
 void addComponent(java.lang.String comp)
          concats a channel with previous ones (comma seperated)
 void addDelay(java.lang.String delay)
          delay time for AutoDRM request
 void addDelAz(float la1, float lo1)
          compute distance and azimuth from epicenter lat/lon in la1 and lo1 to the station coordinates
 void addTime(java.lang.String st1, java.lang.String st2)
          convert start and end time of signal from string to internal representation
 boolean autoDrmCheck()
          check for AutoDRM mail address
 void calcTauTime(TimeObj o, TravelTime tt)
          calculate arrival times for the epicentral distance based on the origin time 'o' and travel time TauP table 'tt'
 void calcTtime(TimeObj o, TravelTime tt)
          calculate the arrival times for the epicentral distance based on the origin time 'o' and travel time table 'tt'
 boolean channelCheck()
          check FDSN channel code, returns true when compatible, otherwise returns false
 void display()
          display station entry
 void doRequest()
          define this station to be requested
static void main(java.lang.String[] args)
          for class testing
 void readSt(java.lang.String input, java.lang.String key, com.braju.beta.format.FormatString format)
          read the station entry from 'input' according to 'key' with format in 'format'
 void readSt(java.lang.String input, java.lang.String key, java.lang.String format)
          read the station entry from 'input' according to 'key' with format in 'format'
 void readSt(java.lang.String input, java.util.Vector vkey, com.braju.beta.format.FormatString format)
          read the station entry from 'input' according to 'vkey' with format in 'format'
 void setRequested()
          define this station as allready requested
 java.lang.String toString()
          return this entry as a formatted string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

StName

public java.lang.String StName
Station name, variable name used in format file '*.fmt'

StComp

public java.lang.String StComp
Station channel name, variable name used in format file '*.fmt'

AutoDRM

public java.lang.String AutoDRM
AutoDRM e-mail address, variable name used in format file '*.fmt'

delayAutoDRM

public java.lang.String delayAutoDRM
delayAutoDRM delay time befor sending request, variable name used in format file '*.fmt'

StLat

public float StLat
Station latitude (N > 0, S < 0 ), variable name used in format file '*.fmt'

StLon

public float StLon
Station longitude (E > 0, W < 0 ), variable name used in format file '*.fmt'

StAvail

public float StAvail
Station availability, variable name used in format file '*.fmt' (see also Waves4U)

RequestID

public java.lang.String RequestID
Station request id, variable name used in format file '*.fmt'

Distance

public float Distance

Azimuth

public float Azimuth

st1

public java.lang.String st1

st2

public java.lang.String st2
Constructor Detail

StationAv

public StationAv()
default constructor inistializes internal parameters

StationAv

public StationAv(StationAv s1,
                 StationAv s2)
constructor for one station when comparing to entries
s1 station 1 s2 station 2
Method Detail

readSt

public void readSt(java.lang.String input,
                   java.lang.String key,
                   java.lang.String format)
read the station entry from 'input' according to 'key' with format in 'format'

readSt

public void readSt(java.lang.String input,
                   java.lang.String key,
                   com.braju.beta.format.FormatString format)
read the station entry from 'input' according to 'key' with format in 'format'

readSt

public void readSt(java.lang.String input,
                   java.util.Vector vkey,
                   com.braju.beta.format.FormatString format)
read the station entry from 'input' according to 'vkey' with format in 'format'

display

public void display()
display station entry

channelCheck

public boolean channelCheck()
check FDSN channel code, returns true when compatible, otherwise returns false

autoDrmCheck

public boolean autoDrmCheck()
check for AutoDRM mail address

toString

public java.lang.String toString()
return this entry as a formatted string
Overrides:
toString in class java.lang.Object

addTime

public void addTime(java.lang.String st1,
                    java.lang.String st2)
convert start and end time of signal from string to internal representation

addDelay

public void addDelay(java.lang.String delay)
delay time for AutoDRM request

addDelAz

public void addDelAz(float la1,
                     float lo1)
compute distance and azimuth from epicenter lat/lon in la1 and lo1 to the station coordinates

setRequested

public void setRequested()
define this station as allready requested

doRequest

public void doRequest()
define this station to be requested

addComponent

public void addComponent(java.lang.String comp)
concats a channel with previous ones (comma seperated)

calcTauTime

public void calcTauTime(TimeObj o,
                        TravelTime tt)
calculate arrival times for the epicentral distance based on the origin time 'o' and travel time TauP table 'tt'

calcTtime

public void calcTtime(TimeObj o,
                      TravelTime tt)
calculate the arrival times for the epicentral distance based on the origin time 'o' and travel time table 'tt'

main

public static void main(java.lang.String[] args)
for class testing