Ejemplo n.º 1
0
 def test_readViaModule(self):
     """
     Read files via obspy.datamark.core.readDATAMARK function.
     """
     filename = os.path.join(self.path, '10030302.00')
     # 1
     st = readDATAMARK(filename)
     st.verify()
     self.assertEqual(len(st), 2)
     self.assertEqual(st[0].stats.starttime,
                       UTCDateTime('2010-03-03T02:00:00.000000Z'))
     self.assertEqual(st[0].stats.endtime,
                       UTCDateTime('2010-03-03T02:00:59.990000Z'))
     self.assertEqual(st[0].stats.starttime,
                       UTCDateTime('2010-03-03T02:00:00.000000Z'))
     self.assertEqual(len(st[0]), 6000)
     self.assertAlmostEqual(st[0].stats.sampling_rate, 100.0)
     self.assertEqual(st[0].stats.channel, '0')
Ejemplo n.º 2
0
 def test_readViaModule(self):
     """
     Read files via obspy.datamark.core.readDATAMARK function.
     """
     filename = os.path.join(self.path, '10030302.00')
     # 1
     st = readDATAMARK(filename)
     st.verify()
     self.assertEquals(len(st), 2)
     self.assertEquals(st[0].stats.starttime,
                       UTCDateTime('2010-03-03T02:00:00.000000Z'))
     self.assertEquals(st[0].stats.endtime,
                       UTCDateTime('2010-03-03T02:00:59.990000Z'))
     self.assertEquals(st[0].stats.starttime,
                       UTCDateTime('2010-03-03T02:00:00.000000Z'))
     self.assertEquals(len(st[0]), 6000)
     self.assertAlmostEquals(st[0].stats.sampling_rate, 100.0)
     self.assertEquals(st[0].stats.channel, '0')