Index: trunk/psModules/src/concepts/pmConceptsStandard.c
===================================================================
--- trunk/psModules/src/concepts/pmConceptsStandard.c	(revision 15416)
+++ trunk/psModules/src/concepts/pmConceptsStandard.c	(revision 15770)
@@ -45,4 +45,58 @@
     psAbort("Should never ever get here.\n");
     return NAN;
+}
+
+// TELTEMPS : parse a list of the form 'X1 X2 X3 X4 X5 ...' : for now use median
+psMetadataItem *p_pmConceptParse_TELTEMPS(const psMetadataItem *concept,
+					  const psMetadataItem *pattern,
+					  pmConceptSource source,
+					  const psMetadata *cameraFormat,
+					  const pmFPA *fpa,
+					  const pmChip *chip,
+					  const pmCell *cell)
+{
+    assert(concept);
+    assert(pattern);
+
+    double value = NAN;
+    switch (concept->type) {
+      case PS_TYPE_F32:
+        value = concept->data.F32;
+        break;
+      case PS_TYPE_F64:
+        value = concept->data.F64;
+        break;
+      case PS_DATA_STRING: {
+	  // parse the list of values into an array of substrings
+	  psArray *strValues = psStringSplitArray (concept->data.V, " ,;", false);
+	  assert (strValues);
+
+	  // convert the substrings into a vector
+	  psVector *fltValues = psVectorAlloc (strValues->n, PS_DATA_F32);
+	  for (int i = 0; i < strValues->n; i++) {
+	      fltValues->data.F32[i] = atof(strValues->data[i]);
+	  }
+
+	  // take the (for now) MEDIAN of the data
+	  psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN);
+
+	  if (!psVectorStats (stats, fltValues, NULL, NULL, 0)) {
+	      psAbort ("how can this stats function fail?");
+	  }
+    
+	  value = stats->sampleMedian;
+	  psFree (stats);
+	  psFree (fltValues);
+	  psFree (strValues);
+	  break;
+      }
+
+      default:
+        psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Invalid type for %s (%x)\n", pattern->name, concept->type);
+        return NULL;
+    }
+
+    psMetadataItem *item = psMetadataItemAllocF32(pattern->name, pattern->comment, value);
+    return (item);
 }
 
