Skip to content
Snippets Groups Projects
Commit 5a25e3cd authored by Eddie McWhirter's avatar Eddie McWhirter
Browse files

Clean up code and comments.

parent f9d1cfde
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,9 @@ import numpy
from datetime import datetime
# values that represent missing data points in PCDCP
NINES = numpy.float64('99999.99')
NINES = numpy.float64('9999999')
NINES_RAW = numpy.float64('99999990')
NINES_DEG = numpy.float64('9999')
class PCDCPParser(object):
"""PCDCP parser.
......
from cStringIO import StringIO
from geomagio import TimeseriesFactoryException, ChannelConverter
from geomagio import ChannelConverter
import numpy
import PCDCPParser
import textwrap
from datetime import datetime
......@@ -15,7 +14,7 @@ class PCDCPWriter(object):
self.empty_value = empty_value
def write(self, out, timeseries, channels):
"""write timeseries to pcdcp file
"""Write timeseries to pcdcp file.
Parameters
----------
......@@ -24,8 +23,9 @@ class PCDCPWriter(object):
timeseries : obspy.core.stream
Timeseries object with data to be written.
channels : array_like
Channels to be written from timeseries object
Channels to be written from timeseries object.
"""
print "OUT:", out
stats = timeseries[0].stats
out.write(self._format_header(stats, channels))
out.write(self._format_data(timeseries, channels))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment