{
Object result = this.ncfile.sendIospMessage(NetcdfFile.IOSP_MESSAGE_ADD_RECORD_STRUCTURE);
if ((result != null) && (Boolean) result )
this.recordVar = (Structure) this.ncfile.getRootGroup().findVariable( "record");
else
this.recordVar = new StructurePseudo( this.ncfile, null, "record", timeDim );
} else {
this.recordVar = new StructurePseudo( this.ncfile, null, "record", timeDim);
}
// @todo HACK, HACK, HACK - remove once addRecordStructure() deals with ncd attribute changes.
Variable elevVarInRecVar = this.recordVar.findVariable( this.elevVar.getFullNameEscaped());
if ( ! elevVarUnitsString.equals( elevVarInRecVar.findAttribute( "units").getStringValue()))