Package ucar.nc2.dt.grid
Class CFGridWriter2
- java.lang.Object
-
- ucar.nc2.dt.grid.CFGridWriter2
-
@Deprecated public class CFGridWriter2 extends Object
Deprecated.Convert to CoverageCollection and useCFGridCoverageWriter
Write CF compliant gridded data version 2.
-
-
Constructor Summary
Constructors Constructor Description CFGridWriter2()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static long
makeSizeEstimate(GridDataset gds, List<String> gridList, LatLonRect llbb, ProjectionRect projRect, int horizStride, Range zRange, CalendarDateRange dateRange, int stride_time, boolean addLatLon)
Deprecated.Compute the size of the file without writingstatic long
writeFile(GridDataset gds, List<String> gridList, LatLonRect llbb, ProjectionRect projRect, int horizStride, Range zRange, CalendarDateRange dateRange, int stride_time, boolean addLatLon, NetcdfFileWriter writer)
Deprecated.Write a netcdf/CF file from a GridDataset
-
-
-
Method Detail
-
makeSizeEstimate
public static long makeSizeEstimate(GridDataset gds, List<String> gridList, LatLonRect llbb, ProjectionRect projRect, int horizStride, Range zRange, CalendarDateRange dateRange, int stride_time, boolean addLatLon) throws IOException, InvalidRangeException
Deprecated.Compute the size of the file without writing- Parameters:
gds
- the GridDatasetgridList
- the list of variables to be written, or null for allllbb
- the lat/lon bounding box, or null for allprojRect
- the projection bounding box, or null for allhorizStride
- the x and y stridezRange
- the z stridedateRange
- date range, or null for allstride_time
- the time strideaddLatLon
- add 2D lat/lon coordinates if needed- Returns:
- total bytes written
- Throws:
IOException
InvalidRangeException
-
writeFile
public static long writeFile(GridDataset gds, List<String> gridList, LatLonRect llbb, ProjectionRect projRect, int horizStride, Range zRange, CalendarDateRange dateRange, int stride_time, boolean addLatLon, NetcdfFileWriter writer) throws IOException, InvalidRangeException
Deprecated.Write a netcdf/CF file from a GridDataset- Parameters:
gds
- the GridDatasetgridList
- the list of variables to be written, or null for allllbb
- the lat/lon bounding box, or null for allprojRect
- the projection bounding box, or null for allhorizStride
- the x and y stridezRange
- the z stridedateRange
- date range, or null for allstride_time
- the time strideaddLatLon
- add 2D lat/lon coordinates if neededwriter
- this does the actual writing- Returns:
- total bytes written
- Throws:
IOException
InvalidRangeException
-
-