writeOrTestSize
public static Optional<Long> writeOrTestSize(CoverageCollection gdsOrg,
List<String> gridNames,
SubsetParams subset,
boolean tryToAddLatLon2D,
boolean testSizeOnly,
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
testSizeOnly - dont write, just return expected size
writer - this does the actual writing, may be null if testSizeOnly=true
- 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