/** * Open an existing Netcdf file for writing data. Fill mode is true. * Cannot add new objects, you can only read/write data to existing Variables. * * @param location name of existing file to open. * @return existing file that can be written to * @throws java.io.IOException on I/O error */ static public NetcdfFileWriter openExisting(String location) throws IOException { return new NetcdfFileWriter(null, location, true, null); // dont know the version yet }
/** * Create a new Netcdf file, with fill mode true. * * @param version netcdf-3 or 4 * @param location name of new file to open; if it exists, will overwrite it. * @param chunker used only for netcdf4, or null for default * @return new NetcdfFileWriter * @throws IOException on I/O error */ static public NetcdfFileWriter createNew(Version version, String location, Nc4Chunking chunker) throws IOException { return new NetcdfFileWriter(version, null, null, location, false, chunker); }
/** * Create a new Netcdf file, with fill mode true. * * @param version netcdf-3 or 4 * @param location name of new file to open; if it exists, will overwrite it. * @param chunker used only for netcdf4, or null for default chunking algorithm * @return new NetcdfFileWriter * @throws IOException on I/O error */ static public NetcdfFileWriter createNew(Version version, String location, Nc4Chunking chunker) throws IOException { return new NetcdfFileWriter(version, location, false, chunker); }
/** * Open an existing Netcdf file for writing data. Fill mode is true. * Cannot add new objects, you can only read/write data to existing Variables. * * @param location name of existing file to open. * @return existing file that can be written to * @throws java.io.IOException on I/O error */ static public NetcdfFileWriter openExisting(String location) throws IOException { return new NetcdfFileWriter(null, null, null, location, true, null); // dont know the version yet }
/** * Open an existing Netcdf file for writing data. Fill mode is true. * Cannot add new objects, you can only read/write data to existing Variables. * * @param location name of existing file to open. * @return existing file that can be written to * @throws java.io.IOException on I/O error */ static public NetcdfFileWriter openExisting(String location) throws IOException { return new NetcdfFileWriter(null, location, true, null); // dont know the version yet }
/** * Create a new Netcdf file, with fill mode true. * * @param version netcdf-3 or 4 * @param location name of new file to open; if it exists, will overwrite it. * @param chunker used only for netcdf4, or null for default chunking algorithm * @return new NetcdfFileWriter * @throws IOException on I/O error */ static public NetcdfFileWriter createNew(Version version, String location, Nc4Chunking chunker) throws IOException { return new NetcdfFileWriter(version, location, false, chunker); }
static public NetcdfFileWriter createNew(Version version, String location) throws IOException { return new NetcdfFileWriter(version, location, false, null); }
static public NetcdfFileWriter createNew(Version version, String location) throws IOException { return new NetcdfFileWriter(version, location, false, null); }
static public NetcdfFileWriter createNew(Version version, String location) throws IOException { return new NetcdfFileWriter(version, null, null, location, false, null); }
static public NetcdfFileWriter createNew(String location, boolean fill) throws IOException { NetcdfFileWriter result = new NetcdfFileWriter(Version.netcdf3, location, false, null); result.setFill(fill); return result; }