write
public static CFGridCoverageWriter.Result write(CoverageCollection gdsOrg,
                                                java.util.List<java.lang.String> gridNames,
                                                SubsetParams subset,
                                                boolean tryToAddLatLon2D,
                                                NetcdfFormatWriter.Builder writer,
                                                long maxBytes)
                                         throws java.io.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 
maxBytes - if > 0, only create the file if sizeToBeWritten < maxBytes. 
- Returns:
 
- the result of the write.
 
- Throws:
 
java.io.IOException 
InvalidRangeException