예제 #1
0
 def get_provider(self, raw_metadata):
     provider_id = raw_metadata['meta']['provider-id']
     provider = utils.get_gcmd_provider([provider_id])
     if provider:
         return provider
     else:
         raise MetadataNormalizationError(f"Unknown provider {provider_id}")
예제 #2
0
 def get_provider(self, raw_metadata):
     """Returns a GCMD-like provider data structure"""
     provider = utils.get_gcmd_provider([raw_metadata['organisationName']])
     if provider:
         return provider
     else:
         raise MetadataNormalizationError(
             f"Unknown provider {raw_metadata['organisationName']}")
예제 #3
0
 def get_provider(self, raw_metadata):
     return utils.get_gcmd_provider(['DOC/NOAA/NWS/NCEP'])
예제 #4
0
 def get_provider(self, raw_metadata):
     """Get a provider from the metadata if possible,
     otherwise use OSISAF as default
     """
     return utils.get_gcmd_provider(
         [raw_metadata.get('institution', 'EUMETSAT/OSISAF')])
예제 #5
0
 def get_provider(self, raw_metadata):
     return utils.get_gcmd_provider(['NERSC'])
예제 #6
0
 def get_provider(self, raw_metadata):
     """Get the provider from the raw metadata"""
     return utils.get_gcmd_provider(['NASA/JPL/PODAAC'])
예제 #7
0
 def get_provider(self, raw_metadata):
     return utils.get_gcmd_provider(['JP/JAXA/EOC'])
예제 #8
0
 def get_provider(self, raw_metadata):
     return utils.get_gcmd_provider(['ESA/CCI'])
예제 #9
0
 def get_provider(self, raw_metadata):
     return utils.get_gcmd_provider(['Remote Sensing Systems'])
예제 #10
0
 def get_provider(self, raw_metadata):
     """Returns a GCMD-like provider data structure"""
     return utils.get_gcmd_provider(['ESA/EO'])