Go to the documentation of this file.
6 Determine the start time, stop time, and platform of a VIIRS hdf5 file.
10 if 'Instrument_Short_Name' in meta:
11 sat_name = meta[
'Instrument_Short_Name'].lower()
12 sdate = meta[
'Beginning_Date']
13 edate = meta[
'Ending_Date']
14 stime = meta[
'Beginning_Time']
15 etime = meta[
'Ending_Time']
16 start_time =
'-'.join([sdate[0:4],sdate[4:6],sdate[6:8]]) +
'T' +
':'.join([stime[0:2],stime[2:4],stime[4:len(stime)]])
17 end_time =
'-'.join([edate[0:4],edate[4:6],edate[6:8]]) +
'T' +
':'.join([etime[0:2],etime[2:4],etime[4:len(etime)]])
18 elif 'platform' in meta:
19 sat_name = meta[
'platform'].lower()
20 start_time = meta[
'time_coverage_start']
21 end_time = meta[
'time_coverage_end']
28 return ( start_time[0:19],