Пример #1
0
 def test_load(self):
     tree = load_mtl(L5_MTL1)
     self.assertEqual(len(tree), 9)
     self.assertTrue("METADATA_FILE_INFO" in tree)
     self.assertTrue("PRODUCT_METADATA" in tree)
     self.assertTrue("MIN_MAX_RADIANCE" in tree)
     self.assertTrue("MIN_MAX_PIXEL_VALUE" in tree)
     self.assertTrue("PRODUCT_PARAMETERS" in tree)
     self.assertTrue("CORRECTIONS_APPLIED" in tree)
     self.assertTrue("PROJECTION_PARAMETERS" in tree)
     self.assertTrue("UTM_PARAMETERS" in tree)
Пример #2
0
 def test_load(self):
     tree = load_mtl(L7_MTLRTC2)
     self.assertEqual(len(tree), 11)
     self.assertTrue("PRODUCT_CONTENTS" in tree)
     self.assertTrue("IMAGE_ATTRIBUTES" in tree)
     self.assertTrue("LEVEL1_MIN_MAX_RADIANCE" in tree)
     self.assertTrue("LEVEL1_MIN_MAX_REFLECTANCE" in tree)
     self.assertTrue("LEVEL1_MIN_MAX_PIXEL_VALUE" in tree)
     self.assertTrue("LEVEL1_RADIOMETRIC_RESCALING" in tree)
     self.assertTrue("LEVEL1_THERMAL_CONSTANTS" in tree)
     self.assertTrue("LEVEL1_PROJECTION_PARAMETERS" in tree)
Пример #3
0
 def test_load(self):
     tree = load_mtl(L7_MTL1)
     self.assertEqual(len(tree), 8)
     self.assertTrue('METADATA_FILE_INFO' in tree)
     self.assertTrue('PRODUCT_METADATA' in tree)
     self.assertTrue('MIN_MAX_RADIANCE' in tree)
     self.assertTrue('MIN_MAX_PIXEL_VALUE' in tree)
     self.assertTrue('PRODUCT_PARAMETERS' in tree)
     self.assertTrue('CORRECTIONS_APPLIED' in tree)
     self.assertTrue('PROJECTION_PARAMETERS' in tree)
     self.assertTrue('UTM_PARAMETERS' in tree)
Пример #4
0
 def test_load(self):
     tree = load_mtl(L5_MTL2)
     self.assertEqual(len(tree), 10)
     self.assertTrue("METADATA_FILE_INFO" in tree)
     self.assertTrue("PRODUCT_METADATA" in tree)
     self.assertTrue("MIN_MAX_RADIANCE" in tree)
     self.assertTrue("MIN_MAX_REFLECTANCE" in tree)
     self.assertTrue("MIN_MAX_PIXEL_VALUE" in tree)
     self.assertTrue("PRODUCT_PARAMETERS" in tree)
     self.assertTrue("PROJECTION_PARAMETERS" in tree)
     self.assertTrue("IMAGE_ATTRIBUTES" in tree)
     self.assertTrue("THERMAL_CONSTANTS" in tree)
Пример #5
0
 def test_load(self):
     tree = load_mtl(L5_MTL2)
     self.assertEqual(len(tree), 10)
     self.assertTrue('METADATA_FILE_INFO' in tree)
     self.assertTrue('PRODUCT_METADATA' in tree)
     self.assertTrue('MIN_MAX_RADIANCE' in tree)
     self.assertTrue('MIN_MAX_REFLECTANCE' in tree)
     self.assertTrue('MIN_MAX_PIXEL_VALUE' in tree)
     self.assertTrue('PRODUCT_PARAMETERS' in tree)
     self.assertTrue('PROJECTION_PARAMETERS' in tree)
     self.assertTrue('IMAGE_ATTRIBUTES' in tree)
     self.assertTrue('THERMAL_CONSTANTS' in tree)
Пример #6
0
 def test_load(self):
     tree = load_mtl(L8_MTL1C2)
     self.assertEqual(len(tree), 10)
     self.assertTrue("PRODUCT_CONTENTS"
                     in tree)  # was METADATA_FILE_INFO in C1
     self.assertTrue("IMAGE_ATTRIBUTES"
                     in tree)  # C1 PRODUCT_METADATA info added here in C2
     self.assertTrue("LEVEL1_MIN_MAX_RADIANCE" in tree)
     self.assertTrue("LEVEL1_MIN_MAX_REFLECTANCE" in tree)
     self.assertTrue("LEVEL1_MIN_MAX_PIXEL_VALUE" in tree)
     self.assertTrue("LEVEL1_RADIOMETRIC_RESCALING" in tree)
     self.assertTrue("LEVEL1_THERMAL_CONSTANTS" in tree)
     self.assertTrue("LEVEL1_PROJECTION_PARAMETERS" in tree)