OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
aquarius_utils.py
Go to the documentation of this file.
1 
2 from seadasutils.MetaUtils import readMetadata
3 
5  """
6  Determine the start time, stop time, and platform of an aquarius L1A file.
7  """
8 
9  meta = readMetadata(arg)
10 
11  sat_name = meta['Sensor'].lower()
12  stime = meta['Start Time'][0:13]
13  etime = meta['End Time'][0:13]
14 
15  return (stime,
16  etime,
17  sat_name)
18 
19 
20 if __name__ == "__main__":
21  import sys
22 
23  if len(sys.argv) > 1:
24  filename = sys.argv[1]
25  else:
26  filename = "/Users/Shared/testing/Q2012300002900.L1A_SCI"
27  start, stop, sensor = aquarius_timestamp(filename)
28  print(start, stop, sensor)
def readMetadata(filename)
Definition: MetaUtils.py:201