// get the field specific map
Map<TimeStamp, Double> fieldMap;
if (!instrumentMap.containsKey(field))
instrumentMap.put(field, new HashMap<TimeStamp, Double>());
fieldMap = instrumentMap.get(field);
TimeStamp t1 = new TimeStamp(parser.getNanoseconds(startDate8Time6));
TimeStamp t2 = new TimeStamp(parser.getNanoseconds(endDate8Time6));
TSContainer ts = archiveFactory.getReader(tf).getTimeSeries(instrument, field, t1, t2);
if (ts.timeStamps.length > 0) {
for (int k = 0; k < ts.timeStamps.length; k++) {
TimeStamp timeStamp = ts.timeStamps[k];
Double value = ts.values[k];
// TODO: have to reduce the granularity.
if (!timeStamps.contains(timeStamp))
timeStamps.add(timeStamp);
fieldMap.put(timeStamp, value);