Class Response
java.lang.Object
edu.sc.seis.seisFile.fdsnws.stationxml.Response
public class Response
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Response(java.util.List<ResponseStage> responseStageList, InstrumentSensitivity instrumentSensitivity, InstrumentPolynomial instrumentPolynomial)
Response(javax.xml.stream.XMLEventReader reader)
-
Method Summary
Modifier and Type Method Description static void
checkResponse(Response resp)
ResponseStage
getFirstStage()
InstrumentPolynomial
getInstrumentPolynomial()
InstrumentSensitivity
getInstrumentSensitivity()
java.lang.String
getResourceId()
java.util.List<ResponseStage>
getResponseStageList()
static boolean
isValid(InstrumentSensitivity sens)
static boolean
isValid(Response resp)
static void
repairResponse(Response resp)
Checks for nonsense sensitivity (overall gain of -1) and trys to repair by multiplying the gains of the individual stages.
-
Constructor Details
-
Response
public Response(java.util.List<ResponseStage> responseStageList, InstrumentSensitivity instrumentSensitivity, InstrumentPolynomial instrumentPolynomial) -
Response
public Response(javax.xml.stream.XMLEventReader reader) throws javax.xml.stream.XMLStreamException, StationXMLException- Throws:
javax.xml.stream.XMLStreamException
StationXMLException
-
-
Method Details
-
isValid
-
isValid
-
checkResponse
- Throws:
InvalidResponse
-
repairResponse
Checks for nonsense sensitivity (overall gain of -1) and trys to repair by multiplying the gains of the individual stages. This only works if all the frequencys are either the same or zero. We assume a frequency of zero means that there is no frequnecy dependence for this stage.- Throws:
InvalidResponse
-
getFirstStage
-
getResponseStageList
-
getInstrumentSensitivity
-
getInstrumentPolynomial
-
getResourceId
public java.lang.String getResourceId()
-