Skip to content

Commit

Permalink
Replace header_datetime with header_date
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Mar 18, 2024
1 parent 0bc8a42 commit 0064e21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions satpy/readers/avhrr_l1b_gaclac.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"""

import logging
from datetime import datetime, timedelta
from datetime import date, datetime, timedelta

import dask.array as da
import numpy as np
Expand Down Expand Up @@ -100,7 +100,7 @@ def __init__(self, filename, filename_info, filetype_info, # noqa: D417
self.platform_id = filename_info["platform_id"]

if len(self.platform_id) == 3:
self.reader_kwargs["header_datetime"] = datetime(2000, 1, 1)
self.reader_kwargs["header_date"] = date(2000, 1, 1)

if self._is_avhrr3():
if filename_info.get("transfer_mode") == "GHRR":
Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/test_avhrr_l1b_gaclac.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def test_init_eosip(self):
fh = self._get_eosip_fh(filename, **kwargs)
assert fh.start_time < fh.end_time
assert fh.reader_class is reader_cls
assert fh.reader_kwargs["header_datetime"] > datetime.date(1994, 11, 15)
assert fh.reader_kwargs["header_date"] > datetime.date(1994, 11, 15)

def test_read_raw_data(self):
"""Test raw data reading."""
Expand Down

0 comments on commit 0064e21

Please sign in to comment.