OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
testMakePVQCsv.py
Go to the documentation of this file.
1 import unittest
2 from hico.makePosVelQuatCsv import MakePosVelQuatCSV
3 from hico.HicoL0toL1B import HicoL0toL1b
4 from hico.auxiliary import CNamespace
5 import os
6 
7 
8 class TestMPVQC(unittest.TestCase):
9  """
10  This test depends on a particular input, bil, file
11  coupled with a particular output, csv, file.
12  Note that this test will rely on some test files located in the test folder.
13  """
14 
15  def setup(self):
16  testdatadir = os.path.join(os.path.realpath('.'), 'testdata')
17  dataBaseName = os.path.commonprefix(os.listdir(testdatadir))
18  try:
19  pArgs = CNamespace(l0file='%s.bil' % dataBaseName,
20  hdr='%s.rhdr' % dataBaseName, csvfile='%s.csv' % dataBaseName)
21  hcPtr = HicoL0toL1b(pArgs)
22  except Exception as e:
23  print(e)
24  finally:
25  self.mpvqc = MakePosVelQuatCSV(hcPtr)
26 
27  def test_pvqHeader(self):
28  pass
29 
30  def test_pvqData(self):
31  pass
32 
33 
34 class TestAuxiliary(unittest.TestCase):
35  """
36  This tests functions in hico/auxiliary.py that MakePosVeluatCSV depends on.
37  """
38 
40  # start_date_time = ConvLst2DT
41  pass
42 
44  pass