cdm/src/main/java/ucar/ma2/ArrayStructure.java
public short getScalarShort(int recnum, StructureMembers.Member m) {
    if (!(m.getDataType().getPrimitiveClassType() == short.class))
      throw new IllegalArgumentException("Type is " + m.getDataType() + ", must be short");
    Array data = m.getDataArray();
    return data.getShort(recnum * m.getSize()); // gets first one in the array
  }
public short getScalarShort(int recnum, StructureMembers.Member m) {
    if (!(m.getDataType().getPrimitiveClassType() == short.class))
      throw new IllegalArgumentException("Type is " + m.getDataType() + ", must be short");
    Array data = m.getDataArray();
    return data.getShort(recnum * m.getSize()); // gets first one in the array
  }
public short getScalarShort ( int recnum , StructureMembers . Member m ) { if ( ! ( m . getDataType ( ) . getPrimitiveClassType ( ) == short . class ) ) throw new IllegalArgumentException ( "Type is " + m . getDataType ( ) + ", must be short" ) ; Array data = m . getDataArray ( ) ; return data . getShort ( recnum * m . getSize ( ) ) ; // gets first one in the array
 }
Get scalar member data of type short.

@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 short.
@return scalar double value
Get scalar member data of type short .