synchronized boolean removeRecordStructure() { boolean found = false; for (Variable v : uvars) { if (v.getFullName().equals("record")) { uvars.remove(v); ncfile.getRootGroup().getVariables().remove(v); found = true; break; } } ncfile.finish(); return found; }
/** * Build the netCDF file * * @throws IOException problem reading the file */ protected void buildNCFile() throws IOException { ncFile.empty(); fillNCFile(); ncFile.finish(); //System.out.println(ncfile); }
/** * Build the netCDF file * * @throws IOException problem reading the file */ protected void buildNCFile() throws IOException { ncFile.empty(); fillNCFile(); ncFile.finish(); //System.out.println(ncfile); }
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); header.read(raf, ncfile); ncfile.finish(); }
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); header.read(raf, ncfile); ncfile.finish(); }
/** * Build the netCDF file * * @throws IOException problem reading the file */ protected void buildNCFile() throws IOException { ncFile.empty(); fillNCFile(); ncFile.finish(); //System.out.println(ncfile); }
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); header.read(raf, ncfile); ncfile.finish(); }
public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile file, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); ncfile = file; headerParser = new FysatHeader(); headerParser.read(raf, ncfile); ncfile.finish(); }
public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile file, ucar.nc2.util.CancelTask cancelTask) throws IOException { ncfile = file; super.open(raf, ncfile, cancelTask); headerParser = new Giniheader(); headerParser.read(raf, ncfile, null); ncfile.finish(); }
public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); headerParser = new FysatHeader(); headerParser.read(raf, ncfile); ncfile.finish(); }
public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); headerParser = new Nidsheader(); headerParser.read(this.raf, ncfile); //myInfo = headerParser.getVarInfo(); pcode = headerParser.pcode; ncfile.finish(); }
public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); Giniheader headerParser = new Giniheader(); headerParser.read(raf, ncfile); 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(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); mySweep = new DoradeSweep(raf.getRandomAccessFile()); headerParser = new Doradeheader(); headerParser.read(mySweep, ncfile, null); ncfile.finish(); }
public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); mySweep = new DoradeSweep(raf.getRandomAccessFile()); headerParser = new Doradeheader(); headerParser.read(mySweep, ncfile, null); ncfile.finish(); }
public void open(RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); headerParser = new H5header(this.raf, ncfile, this); headerParser.read(null); // check if its an HDF5-EOS file Group eosInfo = ncfile.getRootGroup().findGroup(HdfEos.HDF5_GROUP); if (eosInfo != null && !skipEos) { isEos = HdfEos.amendFromODL(ncfile, eosInfo); } ncfile.finish(); }
public void open(RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); headerParser = new H5header(this.raf, ncfile, this); headerParser.read(null); // check if its an HDF5-EOS file Group eosInfo = ncfile.getRootGroup().findGroup(HdfEos.HDF5_GROUP); if (eosInfo != null && useHdfEos) { isEos = HdfEos.amendFromODL(ncfile, eosInfo); } ncfile.finish(); }
public void open(RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); headerParser = new H5header(this.raf, ncfile, this); headerParser.read(null); // check if its an HDF5-EOS file Group eosInfo = ncfile.getRootGroup().findGroup(HdfEos.HDF5_GROUP); if (eosInfo != null && !skipEos) { isEos = HdfEos.amendFromODL(ncfile, eosInfo); } ncfile.finish(); }
public NetcdfFile proto2nc(NcStreamProto.Header proto, NetcdfFile ncfile) throws InvalidProtocolBufferException { if (ncfile == null) ncfile = new NetcdfFileSubclass(); // not used i think ncfile.setLocation(proto.getLocation()); if (proto.hasId()) ncfile.setId(proto.getId()); if (proto.hasTitle()) ncfile.setTitle(proto.getTitle()); NcStreamProto.Group root = proto.getRoot(); NcStream.readGroup(root, ncfile, ncfile.getRootGroup()); ncfile.finish(); return ncfile; }
public NetcdfFile proto2nc(NcStreamProto.Header proto, NetcdfFile ncfile) throws InvalidProtocolBufferException { if (ncfile == null) ncfile = new NetcdfFileStream(); // not used i think ncfile.setLocation(proto.getLocation()); if (proto.hasId()) ncfile.setId(proto.getId()); if (proto.hasTitle()) ncfile.setTitle(proto.getTitle()); NcStreamProto.Group root = proto.getRoot(); NcStream.readGroup(root, ncfile, ncfile.getRootGroup()); ncfile.finish(); return ncfile; }