/** * Write the header out, based on ncfile structures. * * @param raf write to this file * @param ncfile the header of this NetcdfFile * @param extra if > 0, pad header with extra bytes * @param largeFile if large file format * @param fout debugging output sent to here * @throws IOException on write error */ void create(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, int extra, boolean largeFile, Formatter fout) throws IOException { this.raf = raf; this.ncfile = ncfile; writeHeader(extra, largeFile, false, fout); }
/** * Write the header out, based on ncfile structures. * * @param raf write to this file * @param ncfile the header of this NetcdfFile * @param extra if > 0, pad header with extra bytes * @param largeFile if large file format * @param fout debugging output sent to here * @throws IOException on write error */ void create(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, int extra, boolean largeFile, Formatter fout) throws IOException { this.raf = raf; this.ncfile = ncfile; writeHeader(extra, largeFile, false, fout); }
/** * Write the header out, based on ncfile structures. * * @param raf write to this file * @param ncfile the header of this NetcdfFile * @param extra if > 0, pad header with extra bytes * @param largeFile if large file format * @param fout debugging output sent to here * @throws IOException on write error */ void create(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, int extra, boolean largeFile, Formatter fout) throws IOException { this.raf = raf; this.ncfile = ncfile; writeHeader(extra, largeFile, false, fout); }
boolean rewriteHeader(boolean largeFile, Formatter fout) throws IOException { int want = sizeHeader(largeFile); if (want > dataStart) return false; writeHeader(0, largeFile, true, fout); return true; }
/** * Sneaky way to make the header bigger, if there is room for it * * @param largeFile is large file format * @param fout put debug messages here, mnay be null * @return true if it worked * @throws IOException */ boolean rewriteHeader(boolean largeFile, Formatter fout) throws IOException { int want = sizeHeader(largeFile); if (want > dataStart) return false; writeHeader(0, largeFile, true, fout); return true; }
/** * Sneaky way to make the header bigger, if there is room for it * * @param largeFile is large file format * @param fout put debug messages here, mnay be null * @return true if it worked * @throws IOException */ boolean rewriteHeader(boolean largeFile, Formatter fout) throws IOException { int want = sizeHeader(largeFile); if (want > dataStart) return false; writeHeader(0, largeFile, true, fout); return true; }