Example #1
0
 def _get_end_date(self, filename):
     from cis.parse_datetime import parse_datetimestr_to_std_time
     metadata_dict = hdf.get_hdf4_file_metadata(filename)
     date = self._parse_datetime(metadata_dict, 'RANGEENDINGDATE')
     time = self._parse_datetime(metadata_dict, 'RANGEENDINGTIME')
     datetime_str = date + " " + time
     return parse_datetimestr_to_std_time(datetime_str)
Example #2
0
 def _get_start_date(self, filename):
     import datetime as dt
     metadata_dict = hdf.get_hdf4_file_metadata(filename)
     date = self._parse_datetime(metadata_dict, 'RANGEBEGINNINGDATE')
     time = self._parse_datetime(metadata_dict, 'RANGEBEGINNINGTIME')
     datetime_str = date + " " + time
     return dt.datetime.strptime(datetime_str, "%Y-%m-%d %H:%M:%S.%f")
Example #3
0
File: MODIS.py Project: cedadev/cis
 def _get_end_date(self, filename):
     from cis.parse_datetime import parse_datetimestr_to_std_time
     metadata_dict = hdf.get_hdf4_file_metadata(filename)
     date = self._parse_datetime(metadata_dict, 'RANGEENDINGDATE')
     time = self._parse_datetime(metadata_dict, 'RANGEENDINGTIME')
     datetime_str = date + " " + time
     return parse_datetimestr_to_std_time(datetime_str)
Example #4
0
 def _get_start_date(self, filename):
     import datetime as dt
     metadata_dict = hdf.get_hdf4_file_metadata(filename)
     date = self._parse_datetime(metadata_dict, 'RANGEBEGINNINGDATE')
     time = self._parse_datetime(metadata_dict, 'RANGEBEGINNINGTIME')
     datetime_str = date + " " + time
     return dt.datetime.strptime(datetime_str, "%Y-%m-%d %H:%M:%S.%f")
Example #5
0
File: MODIS.py Project: cpaulik/cis
    def _get_start_date(self, filename):
        from cis.parse_datetime import parse_datetimestr_to_std_time

        metadata_dict = hdf.get_hdf4_file_metadata(filename)
        date = self._parse_datetime(metadata_dict, "RANGEBEGINNINGDATE")
        time = self._parse_datetime(metadata_dict, "RANGEBEGINNINGTIME")
        datetime_str = date + " " + time
        return parse_datetimestr_to_std_time(datetime_str)