Ejemplo n.º 1
0
  /**
   * Set up attenuation relationship object, and tables for tests.
   *
   * @throws Exception
   */
  @Before
  public final void setUp() throws Exception {
    ca03AttenRel = new Campbell_2003_AttenRel(this);
    ca03AttenRel.setParamDefaults();

    stdTotalTable = new double[TABLE_NUM_ROWS][TABLE_NUM_COL_STD];
    AttenRelTestHelper.readNumericTableWithHeader(
        new File(ClassLoader.getSystemResource(SIGMA_TOTAL_HARD_ROCK_TABLE).toURI()),
        stdTotalTable,
        TABLE_HEADER_STD);
    medianHardRockTable = new double[TABLE_NUM_ROWS][TABLE_NUM_COL_MEDIAN];
    AttenRelTestHelper.readNumericTableWithHeader(
        new File(ClassLoader.getSystemResource(MEDIAN_HARD_ROCK_TABLE).toURI()),
        medianHardRockTable,
        TABLE_HEADER_MEDIAN);
  }
Ejemplo n.º 2
0
 /**
  * Set up attenuation relationship object, and tables for tests.
  *
  * @throws Exception
  */
 @Before
 public final void setUp() throws Exception {
   ab2003AttenRel = new AB_2003_AttenRel(this);
   ab2003AttenRel.setParamDefaults();
   pgaInterfaceTable = new double[INTERFACE_TABLE_NUM_ROWS][TABLE_NUM_COL];
   AttenRelTestHelper.readNumericTable(
       new File(ClassLoader.getSystemResource(PGA_INTERFACE_TABLE_FILE).toURI()),
       pgaInterfaceTable);
   saInterfaceTable = new double[INTERFACE_TABLE_NUM_ROWS][TABLE_NUM_COL];
   AttenRelTestHelper.readNumericTable(
       new File(ClassLoader.getSystemResource(SA_INTERFACE_TABLE_FILE).toURI()), saInterfaceTable);
   pgaIntraSlabTable = new double[INTRA_SLAB_TABLE_NUM_ROWS][TABLE_NUM_COL];
   AttenRelTestHelper.readNumericTable(
       new File(ClassLoader.getSystemResource(PGA_INTRASLAB_TABLE_FILE).toURI()),
       pgaIntraSlabTable);
   saIntraSlabTable = new double[INTRA_SLAB_TABLE_NUM_ROWS][TABLE_NUM_COL];
   AttenRelTestHelper.readNumericTable(
       new File(ClassLoader.getSystemResource(SA_INTRASLAB_TABLE_FILE).toURI()), saIntraSlabTable);
 }
Ejemplo n.º 3
0
  /** Set up attenuation relationship object, and tables for tests. */
  @Before
  public final void setUp() throws Exception {

    ll08AttenRel = new LL_2008_AttenRel(this);
    ll08AttenRel.setParamDefaults();

    stdRockTable = new double[TABLE_NUM_ROWS][TABLE_NUM_COL_STD];
    AttenRelTestHelper.readNumericTableWithHeader(
        new File(ClassLoader.getSystemResource(SIGMA_TOTAL_ROCK_TABLE).toURI()),
        stdRockTable,
        TABLE_HEADER_STD);

    stdSoftTable = new double[TABLE_NUM_ROWS][TABLE_NUM_COL_STD];
    AttenRelTestHelper.readNumericTableWithHeader(
        new File(ClassLoader.getSystemResource(SIGMA_TOTAL_SOFT_TABLE).toURI()),
        stdSoftTable,
        TABLE_HEADER_STD);

    medianInslabRockTable = new double[TABLE_NUM_ROWS][TABLE_NUM_COL];
    AttenRelTestHelper.readNumericTableWithHeader(
        new File(ClassLoader.getSystemResource(MEDIAN_INSLAB_ROCK_TABLE).toURI()),
        medianInslabRockTable,
        TABLE_HEADER_MEDIAN);

    medianInslabSoftTable = new double[TABLE_NUM_ROWS][TABLE_NUM_COL];
    AttenRelTestHelper.readNumericTableWithHeader(
        new File(ClassLoader.getSystemResource(MEDIAN_INSLAB_SOFT_TABLE).toURI()),
        medianInslabSoftTable,
        TABLE_HEADER_MEDIAN);

    medianInterfaceRockTable = new double[TABLE_NUM_ROWS][TABLE_NUM_COL];
    AttenRelTestHelper.readNumericTableWithHeader(
        new File(ClassLoader.getSystemResource(MEDIAN_INTERFACE_ROCK_TABLE).toURI()),
        medianInterfaceRockTable,
        TABLE_HEADER_MEDIAN);

    medianInterfaceSoftTable = new double[TABLE_NUM_ROWS][TABLE_NUM_COL];
    AttenRelTestHelper.readNumericTableWithHeader(
        new File(ClassLoader.getSystemResource(MEDIAN_INTERFACE_SOFT_TABLE).toURI()),
        medianInterfaceSoftTable,
        TABLE_HEADER_MEDIAN);
  }