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')]))
def get_platform(self, raw_metadata): return utils.get_gcmd_platform('OPERATIONAL MODELS')
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'))
def get_platform(self, raw_metadata): return utils.get_gcmd_platform(raw_metadata['platform'])
def get_platform(self, raw_metadata): return utils.get_gcmd_platform('Earth Observation Satellites')
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'])
def get_platform(self, raw_metadata): return utils.get_gcmd_platform('GCOM-W1')
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'])