protected boolean readDataRecord(int lon_index){
  try {
    if (binFile == null) {
      if (!reopen()) {
        return false;
      }
    }
    binFile.seek(UHL_SIZE + DSI_SIZE + ACC_SIZE+ (lon_index * (12 + (2 * uhl.num_lat_points))));
    binFile.read();
    binFile.skipBytes(3);
    binFile.readShort();
    binFile.readShort();
    elevations[lon_index]=new short[uhl.num_lat_points];
    for (int j=0; j < uhl.num_lat_points; j++) {
      elevations[lon_index][j]=binFile.readShortData();
    }
  }
 catch (  IOException e3) {
    Debug.error("DTEDFrame.RDR: Error reading file.");
    e3.printStackTrace();
    elevations[lon_index]=null;
    return false;
  }
catch (  FormatException f) {
    Debug.error("DTEDFrame.RDR: File IO Format error!");
    elevations[lon_index]=null;
    return false;
  }
  return true;
}

protected boolean readDataRecord ( int lon_index ) { try { if ( binFile == null ) { if ( ! reopen ( ) ) { return false ; } } binFile . seek ( UHL_SIZE + DSI_SIZE + ACC_SIZE + ( lon_index * ( 12 + ( 2 * uhl . num_lat_points ) ) ) ) ; binFile . read ( ) ; binFile . skipBytes ( 3 ) ; binFile . readShort ( ) ; binFile . readShort ( ) ; elevations [ lon_index ] = new short [ uhl . num_lat_points ] ; for ( int j = 0 ; j < uhl . num_lat_points ; j ++ ) { elevations [ lon_index ] [ j ] = binFile . readShortData ( ) ; } } catch ( IOException e3 ) { Debug . error ( "DTEDFrame.RDR: Error reading file." ) ; e3 . printStackTrace ( ) ; elevations [ lon_index ] = null ; return false ; } catch ( FormatException f ) { Debug . error ( "DTEDFrame.RDR: File IO Format error!" ) ; elevations [ lon_index ] = null ; return false ; } return true ; }
reads one longitude line of posts . assumes that the binfile is valid .
