Esempio n. 1
0
 def setUp(self):
     self.filename = tests.get_data_path(('FF', 'n48_multi_field'))
     self.ff_header = ff.FFHeader(self.filename)
     self.valid_headers = ('integer_constants', 'real_constants',
                           'level_dependent_constants', 'lookup_table',
                           'data')
     self.invalid_headers = ('row_dependent_constants',
                             'column_dependent_constants',
                             'fields_of_constants', 'extra_constants',
                             'temp_historyfile', 'compressed_field_index1',
                             'compressed_field_index2',
                             'compressed_field_index3')
Esempio n. 2
0
 def setUp(self):
     self.filename = tests.get_data_path(("FF", "n48_multi_field"))
     self.ff_header = ff.FFHeader(self.filename)
     self.valid_headers = (
         "integer_constants",
         "real_constants",
         "level_dependent_constants",
         "lookup_table",
         "data",
     )
     self.invalid_headers = (
         "row_dependent_constants",
         "column_dependent_constants",
         "fields_of_constants",
         "extra_constants",
         "temp_historyfile",
         "compressed_field_index1",
         "compressed_field_index2",
         "compressed_field_index3",
     )
Esempio n. 3
0
 def test_raw_to_table_count(self):
     filename = tests.get_data_path(("FF", "n48_multi_field_table_count"))
     cubes = iris.load_raw(filename)
     ff_header = ff.FFHeader(filename)
     table_count = ff_header.lookup_table[2]
     self.assertEqual(len(cubes), table_count)