original_docstring: 
      Retrieve a pixel value from the ECWMF 2 metre Temperature
      collection.
      
docstring: Retrieve a pixel value from the ECWMF 2 metre Temperature
  collection.
docstring_tokens: Retrieve a pixel value from the ECWMF 2 metre Temperature collection .
code: def ecwmf_temperature_2metre(input_path, lonlat, time):
      """
      Retrieve a pixel value from the ECWMF 2 metre Temperature
      collection.
      """
      product = DatasetName.TEMPERATURE_2M.value.lower()
      search = pjoin(input_path, DatasetName.ECMWF_PATH_FMT.value)
      files = glob.glob(search.format(product=product, year=time.year))
      data = None
      required_ymd = datetime.datetime(time.year, time.month, time.day)
      for f in files:
          url = urlparse(f, scheme='file').geturl()
          ymd = splitext(basename(f))[0].split('_')[1]
          ancillary_ymd = datetime.datetime.strptime(ymd, '%Y-%m-%d')
          if ancillary_ymd == required_ymd:
              data = get_pixel(f, lonlat)
  
              metadata = {'data_source': 'ECWMF 2 metre Temperature',
                          'url': url,
                          'query_date': time}
  
              # ancillary metadata tracking
              md = extract_ancillary_metadata(f)
              for key in md:
                  metadata[key] = md[key]
  
              return data, metadata
  
      if data is None:
          raise AncillaryError("No ECWMF 2 metre Temperature data")
code_tokens: def ecwmf_temperature_2metre ( input_path , lonlat , time ) : product = DatasetName . TEMPERATURE_2M . value . lower ( ) search = pjoin ( input_path , DatasetName . ECMWF_PATH_FMT . value ) files = glob . glob ( search . format ( product = product , year = time . year ) ) data = None required_ymd = datetime . datetime ( time . year , time . month , time . day ) for f in files : url = urlparse ( f , scheme = 'file' ) . geturl ( ) ymd = splitext ( basename ( f ) ) [ 0 ] . split ( '_' ) [ 1 ] ancillary_ymd = datetime . datetime . strptime ( ymd , '%Y-%m-%d' ) if ancillary_ymd == required_ymd : data = get_pixel ( f , lonlat ) metadata = { 'data_source' : 'ECWMF 2 metre Temperature' , 'url' : url , 'query_date' : time } md = extract_ancillary_metadata ( f ) for key in md : metadata [ key ] = md [ key ] return data , metadata if data is None : raise AncillaryError ( "No ECWMF 2 metre Temperature data" )
short_docstring: Retrieve a pixel value from the ECWMF 2 metre Temperature
  collection.
short_docstring_tokens: Retrieve a pixel value from the ECWMF 2 metre Temperature collection .
comment: """
      Retrieve a pixel value from the ECWMF 2 metre Temperature
      collection.
      """$SEP$# ancillary metadata tracking