Skip to content
Snippets Groups Projects
Verified Commit 572cda74 authored by Owen Graham's avatar Owen Graham
Browse files

Remove "South Pole" data spec

parent 0499e888
Branches
No related tags found
No related merge requests found
...@@ -44,8 +44,7 @@ def get_resources(link): ...@@ -44,8 +44,7 @@ def get_resources(link):
def read_data(station, year): def read_data(station, year):
"""Fetch data and convert it to a NumPy array.""" """Fetch data and convert it to a NumPy array."""
import numpy as np import numpy as np
spec = (data_spec.SOUTH_POLE if station['id'] == 'south-pole' spec = data_spec.ONE_HOUR
else data_spec.ONE_HOUR)
data = [] data = []
resource_list = get_resources(get_link(station, year)) resource_list = get_resources(get_link(station, year))
for url in resource_list: for url in resource_list:
......
...@@ -39,16 +39,3 @@ ONE_HOUR = asccol.DataSpec( ...@@ -39,16 +39,3 @@ ONE_HOUR = asccol.DataSpec(
('delta_t', filtered_float, 7), ('delta_t', filtered_float, 7),
), ),
) )
SOUTH_POLE = asccol.DataSpec(
cols=(
('year', int, 5),
('month', int, 5),
('day', int, 5),
('time', simple_time, 5),
('wind_dir', filtered_int, 4),
('wind_speed', filtered_float, 6),
('visibility', filtered_int, 7),
('temp', filtered_float, 7),
('pressure', filtered_float, 7),
),
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment