bufr/src/main/java/ucar/nc2/iosp/bufr/BufrIosp2.java
public void open(RandomAccessFile raf, NetcdfFile ncfile, Message single) throws IOException {
    this.raf = raf;

    protoMessage = single;
    protoMessage.getRootDataDescriptor(); // construct the data descriptors, check for complete tables
    if (!protoMessage.isTablesComplete())
      throw new IllegalStateException("BUFR file has incomplete tables");

    BufrConfig config = BufrConfig.openFromMessage(raf, protoMessage, null);

    // this fills the netcdf object
    Construct2 construct = new Construct2(protoMessage, config, ncfile);
    obsStructure = construct.getObsStructure();
    isSingle = true;

    ncfile.finish();
  }
public void open(RandomAccessFile raf, NetcdfFile ncfile, Message single) throws IOException {
    this.raf = raf;

    protoMessage = single;
    protoMessage.getRootDataDescriptor(); // construct the data descriptors, check for complete tables
    if (!protoMessage.isTablesComplete())
      throw new IllegalStateException("BUFR file has incomplete tables");

    BufrConfig config = BufrConfig.openFromMessage(raf, protoMessage, null);

    // this fills the netcdf object
    Construct2 construct = new Construct2(protoMessage, config, ncfile);
    obsStructure = construct.getObsStructure();
    isSingle = true;

    ncfile.finish();
  }
public void open ( RandomAccessFile raf , NetcdfFile ncfile , Message single ) throws IOException { this . raf = raf ; protoMessage = single ; protoMessage . getRootDataDescriptor ( ) ; // construct the data descriptors, check for complete tables if ( ! protoMessage . isTablesComplete ( ) ) throw new IllegalStateException ( "BUFR file has incomplete tables" ) ; BufrConfig config = BufrConfig . openFromMessage ( raf , protoMessage , null ) ; // this fills the netcdf object Construct2 construct = new Construct2 ( protoMessage , config , ncfile ) ; obsStructure = construct . getObsStructure ( ) ; isSingle = true ; ncfile . finish ( ) ; }
for BufrMessageViewer
for BufrMessageViewer