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

Fix some spacing for coding standards.

parent 40f25644
No related branches found
No related tags found
No related merge requests found
......@@ -138,11 +138,11 @@ class PCDCPFactory(TimeseriesFactory):
yearday = parser.header['yearday']
begin = int(parser.times[0])
startHour = str(int(begin/60.0))
startMinute = str(int(begin%60.0))
startHour = str(int(begin / 60.0))
startMinute = str(int(begin % 60.0))
ending = int(parser.times[-1])
endHour = str(int(ending/60.0))
endMinute = str(int(ending%60.0))
endHour = str(int(ending / 60.0))
endMinute = str(int(ending % 60.0))
start = year + yearday + "T" + startHour + ":" + \
startMinute + ":" + "00.0"
......@@ -196,16 +196,16 @@ class PCDCPFactory(TimeseriesFactory):
If type or interval are not supported.
"""
return self.urlTemplate % {
'i': self._get_interval_abbreviation(interval),
'interval': self._get_interval_name(interval),
'julian': date.strftime("%j"),
'obs': observatory.lower(),
'OBS': observatory.upper(),
't': self._get_type_abbreviation(type),
'type': self._get_type_name(type),
'year': date.strftime("%Y"),
'ymd': date.strftime("%Y%m%d")
}
'i': self._get_interval_abbreviation(interval),
'interval': self._get_interval_name(interval),
'julian': date.strftime("%j"),
'obs': observatory.lower(),
'OBS': observatory.upper(),
't': self._get_type_abbreviation(type),
'type': self._get_type_name(type),
'year': date.strftime("%Y"),
'ymd': date.strftime("%Y%m%d")
}
def _get_interval_abbreviation(self, interval):
"""Get abbreviation for a data interval.
......
......@@ -74,11 +74,16 @@ class PCDCPWriter(object):
# Use a copy of the trace so that we don't modify the original.
timeseriesLocal = timeseries.copy()
# move the int(round(val*100)) into here, numpy.round(numpy.multiply(trace, 100))
if timeseriesLocal.select(channel='D'):
d = timeseriesLocal.select(channel='D')
d[0].data = ChannelConverter.get_minutes_from_radians(d[0].data)
# TODO - is this doing anything?
i = 0
for trace in timeseriesLocal:
timeseriesLocal[i].trace = numpy.round(numpy.multiply(trace, 100))
i += 1
traces = [timeseriesLocal.select(channel=c)[0] for c in channels]
starttime = float(traces[0].stats.starttime)
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