Skip to content

Commit

Permalink
Make eps-l1b reader numpy>=1.12 compatible
Browse files Browse the repository at this point in the history
Signed-off-by: Adam.Dybbroe <a000680@c20671.ad.smhi.se>
  • Loading branch information
Adam.Dybbroe committed Jul 11, 2017
1 parent 0df251c commit fb0fe21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mpop/satin/eps_l1b.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) 2012, 2013, 2014 Martin Raspaud
# Copyright (c) 2012, 2013, 2014, 2017 Martin Raspaud

# Author(s):

Expand Down Expand Up @@ -90,15 +90,15 @@ def read_raw(filename):
if not grh:
break
try:
rec_class = record_class[grh["record_class"]]
rec_class = record_class[grh["record_class"][0]]
sub_class = grh["RECORD_SUBCLASS"][0]
record = np.fromfile(fdes,
form.dtype((rec_class,
sub_class)),
1)
records.append((rec_class, record, sub_class))
except KeyError:
fdes.seek(grh["RECORD_SIZE"] - 20, 1)
fdes.seek(grh["RECORD_SIZE"][0] - 20, 1)

return records, form

Expand Down

0 comments on commit fb0fe21

Please sign in to comment.