Class FDSNSourceId

java.lang.Object
edu.sc.seis.seisFile.mseed3.FDSNSourceId

public class FDSNSourceId extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • parse

      public static FDSNSourceId parse(String sourceIdUrl) throws FDSNSourceIdException
      Throws:
      FDSNSourceIdException
    • fromNSLC

      public static FDSNSourceId fromNSLC(String networkCode, String stationCode, String locationCode, String channelCode) throws FDSNSourceIdException
      Throws:
      FDSNSourceIdException
    • createUnknown

      public static FDSNSourceId createUnknown(double sampleRate) throws FDSNSourceIdException
      Throws:
      FDSNSourceIdException
    • getNetworkCode

      public String getNetworkCode()
    • getStationCode

      public String getStationCode()
    • getLocationCode

      public String getLocationCode()
    • getBandCode

      public String getBandCode()
    • getSourceCode

      public String getSourceCode()
    • getSubsourceCode

      public String getSubsourceCode()
    • getChannelCode

      public String 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

      public String toString()
      Overrides:
      toString in class Object
    • 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 negative
      response_lb - response lower bound in Hz if positive, period if negative
      Returns:
      Throws:
      FDSNSourceIdException