Skip to content

Commit

Permalink
Remove unneeded duplicated function
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Feb 6, 2018
1 parent 39495cd commit 8136050
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
7 changes: 0 additions & 7 deletions satpy/readers/hrit_electrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,6 @@
('nanoseconds', '>u2')])


def make_time_cds_expanded(tcds_array):
return (datetime(1958, 1, 1) +
timedelta(days=int(tcds_array['days']),
milliseconds=int(tcds_array['milliseconds']),
microseconds=float(tcds_array['microseconds'] +
tcds_array['nanoseconds'] / 1000.)))

satellite_status = np.dtype([("TagType", "<u4"),
("TagLength", "<u4"),
("SatelliteID", "<u8"),
Expand Down
7 changes: 0 additions & 7 deletions satpy/readers/hrit_goes.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,6 @@ class CalibrationError(Exception):
('nanoseconds', '>u2')])


def make_time_cds_expanded(tcds_array):
return (datetime(1958, 1, 1) +
timedelta(days=int(tcds_array['days']),
milliseconds=int(tcds_array['milliseconds']),
microseconds=float(tcds_array['microseconds'] +
tcds_array['nanoseconds'] / 1000.)))

sgs_time = np.dtype([('century', 'u1'),
('year', 'u1'),
('doy1', 'u1'),
Expand Down
8 changes: 0 additions & 8 deletions satpy/readers/hrit_jma.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@
('nanoseconds', '>u2')])


def make_time_cds_expanded(tcds_array):
return (datetime(1958, 1, 1) +
timedelta(days=int(tcds_array['days']),
milliseconds=int(tcds_array['milliseconds']),
microseconds=float(tcds_array['microseconds'] +
tcds_array['nanoseconds'] / 1000.)))


def recarray2dict(arr):
res = {}
for dtuple in arr.dtype.descr:
Expand Down

0 comments on commit 8136050

Please sign in to comment.