Package ucar.nc2.ft2.coverage.writer
Class CFGridCoverageWriter2
- java.lang.Object
-
- ucar.nc2.ft2.coverage.writer.CFGridCoverageWriter2
-
@Deprecated public class CFGridCoverageWriter2 extends Object
Deprecated.use CFGridCoverageWriterWrite CF Compliant Grid file from a Coverage. First, single coverage only. - The idea is to subset the coordsys, use that for the file's metadata. - Then subset the grid, and write out the data. Check that the grid's metadata matches.
-
-
Constructor Summary
Constructors Constructor Description CFGridCoverageWriter2()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Optional<Long>
getSizeOfOutput(CoverageCollection gdsOrg, List<String> gridNames, SubsetParams subset, boolean tryToAddLatLon2D)
Deprecated.static Optional<Long>
write(CoverageCollection gdsOrg, List<String> gridNames, SubsetParams subset, boolean tryToAddLatLon2D, NetcdfFileWriter writer)
Deprecated.Write a netcdf/CF file from a CoverageDataset
-
-
-
Method Detail
-
write
public static Optional<Long> write(CoverageCollection gdsOrg, List<String> gridNames, SubsetParams subset, boolean tryToAddLatLon2D, NetcdfFileWriter writer) throws IOException, InvalidRangeException
Deprecated.Write a netcdf/CF file from a CoverageDataset- Parameters:
gdsOrg
- the CoverageDatasetgridNames
- the list of coverage names to be written, or null for allsubset
- defines the requested subset, or null to include everything in gdsOrgtryToAddLatLon2D
- add 2D lat/lon coordinates, if possiblewriter
- 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
-
getSizeOfOutput
public static Optional<Long> getSizeOfOutput(CoverageCollection gdsOrg, List<String> gridNames, SubsetParams subset, boolean tryToAddLatLon2D) throws IOException, InvalidRangeException
Deprecated.- Throws:
IOException
InvalidRangeException
-
-