示例#1
0
 def test_get_gcmd_metopb_platform(self):
     """Test getting the right METOP-B platform"""
     self.assertEqual(
         utils.get_gcmd_platform('METOP_B'),
         OrderedDict([('Category', 'Earth Observation Satellites'),
                      ('Series_Entity', 'METOP'), ('Short_Name', 'METOP-B'),
                      ('Long_Name',
                       'Meteorological Operational Satellite - B')]))
示例#2
0
 def get_platform(self, raw_metadata):
     return utils.get_gcmd_platform('OPERATIONAL MODELS')
示例#3
0
 def get_platform(self, raw_metadata):
     """Try to get the platform from the metadata, and if not
     possible return a default value
     """
     return utils.get_gcmd_platform(
         raw_metadata.get('platform_name', 'Earth Observation Satellites'))
示例#4
0
 def get_platform(self, raw_metadata):
     return utils.get_gcmd_platform(raw_metadata['platform'])
示例#5
0
 def get_platform(self, raw_metadata):
     return utils.get_gcmd_platform('Earth Observation Satellites')
示例#6
0
 def get_platform(self, raw_metadata):
     """Only get the first platform from the raw metadata, because
     GeoSPaaS does not support more than one platform per dataset
     """
     return utils.get_gcmd_platform(
         raw_metadata['umm']['Platforms'][0]['ShortName'])
示例#7
0
 def get_platform(self, raw_metadata):
     return utils.get_gcmd_platform('GCOM-W1')
示例#8
0
 def get_platform(self, raw_metadata):
     """Get the platform from the attributes"""
     return utils.get_gcmd_platform(raw_metadata['Satellite name'] +
                                    raw_metadata['Satellite number'])