def getMeasure(field, ftype, fvalue, funit):
  """ Get a measure from a field
  :param field: complete field row data from influxdb
  :param ftype: field type name
  :param fvalue: field name on influxdb
  :param funit: field unit name or symbol
  """
  measure = {'measurementID': field['time']}
  measure['measurementType'] = ftype
  measure['measurementUnit'] = funit
  measure['measurementDeterminedDate '] = field['time'].format('YYYY-MM-DD HH:mm:ss')
  measure['measurementDeterminedBy'] = 'CanAirIO station {}'.format(field['name'])
  try:
    measure['measurementValue'] = field['{}'.format(fvalue)]
  except Exception as e:
    print(e)
    measure['measurementValue'] = 0
  return measure