ArrayList records = new ArrayList();
int recno = 0;
StructureDataIterator ii = recordVar.getStructureIterator();
while (ii.hasNext()) {
StructureData sdata = ii.next();
StructureMembers members = sdata.getStructureMembers();
Object stationId = null;
if (hasStations) {
if ( stationIdType == DataType.INT) {
int stationNum = sdata.getScalarInt(stnIdVName);
stationId = new Integer(stationNum);
} else
stationId = sdata.getScalarString( stnIdVName).trim();
}
String desc = (stnDescVName == null) ? null : sdata.getScalarString(stnDescVName);
double lat = sdata.convertScalarDouble(latVName);
double lon = sdata.convertScalarDouble(lonVName);
double alt = (altVName == null) ? Double.NaN : altScaleFactor * sdata.convertScalarDouble(altVName);
double obsTime = sdata.convertScalarDouble(members.findMember( obsTimeVName));
double nomTime = (nomTimeVName == null) ? obsTime : sdata.convertScalarDouble( members.findMember( nomTimeVName));
//double obsTime = sdata.convertScalarDouble( members.findMember( obsTimeVName) );
//double nomTime = (nomTimeVName == null) ? obsTime : sdata.convertScalarDouble( members.findMember( nomTimeVName));
if (hasStations) {