String timeVars = ds.findAttValueIgnoreCase(null, "timeVariables", "");
StringTokenizer stoker = new StringTokenizer( timeVars, ", ");
while (stoker.hasMoreTokens()) {
String vname = stoker.nextToken();
Variable v = ds.findVariable(vname);
if (v != null) {
v.addAttribute(new Attribute(_Coordinate.AxisType, AxisType.Time.toString()));
} else {
parseInfo.format(" cant find time variable %s\n", vname);
}
}
String locVars = ds.findAttValueIgnoreCase(null, "stationLocationVariables", "");
stoker = new StringTokenizer( locVars, ", ");
int count = 0;
while (stoker.hasMoreTokens()) {
String vname = stoker.nextToken();
Variable v = ds.findVariable(vname);
if (v != null) {
AxisType atype = count == 0 ? AxisType.Lat : count == 1 ? AxisType.Lon : AxisType.Height;
v.addAttribute(new Attribute(_Coordinate.AxisType, atype.toString()));
} else {
parseInfo.format(" cant find time variable %s\n",vname);
}
count++;
}