Skip to content
Snippets Groups Projects
Commit c2a9abe6 authored by Hal Simpson's avatar Hal Simpson
Browse files

convert d to minutes before putting out.

parent 4d3aeb81
No related branches found
No related tags found
No related merge requests found
from cStringIO import StringIO from cStringIO import StringIO
from geomagio import TimeseriesFactoryException from geomagio import TimeseriesFactoryException, ChannelConverter
import numpy import numpy
import IAGA2002Parser import IAGA2002Parser
import textwrap import textwrap
...@@ -105,6 +105,9 @@ class IAGA2002Writer(object): ...@@ -105,6 +105,9 @@ class IAGA2002Writer(object):
list and order of channel values to output. list and order of channel values to output.
""" """
buf = [] buf = []
if timeseries.select(channel='D'):
d = timeseries.select(channel='D')
d[0].data = ChannelConverter.get_minutes_from_radians(d[0].data)
traces = [timeseries.select(channel=c)[0] for c in channels] traces = [timeseries.select(channel=c)[0] for c in channels]
starttime = float(traces[0].stats.starttime) starttime = float(traces[0].stats.starttime)
delta = traces[0].stats.delta delta = traces[0].stats.delta
......
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