cdm/src/main/java/ucar/ma2/ArrayStructure.java
public StructureData getScalarStructure(int recnum, StructureMembers.Member m) {
    if (m.getDataType() != DataType.STRUCTURE)
      throw new IllegalArgumentException("Type is " + m.getDataType() + ", must be Structure");

    ArrayStructure data = (ArrayStructure) m.getDataArray();
    return data.getStructureData(recnum * m.getSize());  // gets first in the array
  }
public StructureData getScalarStructure(int recnum, StructureMembers.Member m) {
    if (m.getDataType() != DataType.STRUCTURE)
      throw new IllegalArgumentException("Type is " + m.getDataType() + ", must be Structure");

    ArrayStructure data = (ArrayStructure) m.getDataArray();
    return data.getStructureData(recnum * m.getSize());  // gets first in the array
  }
public StructureData getScalarStructure ( int recnum , StructureMembers . Member m ) { if ( m . getDataType ( ) != DataType . STRUCTURE ) throw new IllegalArgumentException ( "Type is " + m . getDataType ( ) + ", must be Structure" ) ; ArrayStructure data = ( ArrayStructure ) m . getDataArray ( ) ; return data . getStructureData ( recnum * m . getSize ( ) ) ; // gets first in the array
 }
Get member data of type Structure.

@param recnum get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();
@param m      get data from this StructureMembers.Member. Must be of type Structure.
@return scalar StructureData
Get member data of type Structure .