write
public static Optional<Long> write(CoverageCollection gdsOrg,
List<String> gridNames,
SubsetParams subset,
boolean tryToAddLatLon2D,
NetcdfFileWriter writer)
throws IOException,
InvalidRangeException
Write a netcdf/CF file from a CoverageDataset
- Parameters:
gdsOrg - the CoverageDataset
gridNames - the list of coverage names to be written, or null for all
subset - defines the requested subset, or null to include everything in gdsOrg
tryToAddLatLon2D - add 2D lat/lon coordinates, if possible
writer - this does the actual writing, must not be null
- Returns:
- the total number of bytes that the variables in the output file occupy. This is NOT the same as the
size of the the whole output file, but it's close.
- Throws:
IOException
InvalidRangeException