Package edu.sc.seis.seisFile.mseed3
Class FDSNSourceId
java.lang.Object
edu.sc.seis.seisFile.mseed3.FDSNSourceId
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
static final String
static final String
static final String
static final String
static final String
static final String
protected String
protected String
static final String
protected String
static final Pattern
static final String
protected String
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
bandCodeForRate
(Double sampRate, Double response_lb) Calculates the band code for the given sample rate.static FDSNSourceId
createUnknown
(double sampleRate) static FDSNSourceId
If band, source and subsource are all length 1, returns a 3-char channel code like BHZ.static FDSNSourceId
toString()
-
Field Details
-
FDSN_PREFIX
- See Also:
-
SEP
- See Also:
-
sourceIdRegExString
- See Also:
-
sourceIdRegEx
-
DEFAULT_SOURCE_CODE
- See Also:
-
DEFAULT_NETWORK_CODE
- See Also:
-
DEFAULT_STATION_CODE
- See Also:
-
DEFAULT_LOCATION_CODE
- See Also:
-
DEFAULT_SUBSOURCE_CODE
- See Also:
-
networkCode
-
stationCode
-
locationCode
-
bandCode
-
sourceCode
-
subsourceCode
-
-
Constructor Details
-
FDSNSourceId
-
-
Method Details
-
parse
- Throws:
FDSNSourceIdException
-
fromNSLC
public static FDSNSourceId fromNSLC(String networkCode, String stationCode, String locationCode, String channelCode) throws FDSNSourceIdException - Throws:
FDSNSourceIdException
-
createUnknown
- Throws:
FDSNSourceIdException
-
getNetworkCode
-
getStationCode
-
getLocationCode
-
getBandCode
-
getSourceCode
-
getSubsourceCode
-
getChannelCode
If band, source and subsource are all length 1, returns a 3-char channel code like BHZ. Otherwise, return separated by '_' like B_XY_Z.- Returns:
- combination of band, source and subsource code
-
toString
-
bandCodeForRate
public static String bandCodeForRate(Double sampRate, Double response_lb) throws FDSNSourceIdException Calculates the band code for the given sample rate. Optionally taking into account the lower bound of the response, response_lb, to distinguish broadband from short period in the higher sample rates, where 0.1 hertz/10 seconds is the boundary. Use of negative values implies period in seconds, while positive implies Hz. See http://docs.fdsn.org/projects/source-identifiers/en/v1.0/channel-codes.html#band-code- Parameters:
sampRate
- sample rate, Hz if positive, period in seconds if negativeresponse_lb
- response lower bound in Hz if positive, period if negative- Returns:
- Throws:
FDSNSourceIdException
-