public class CFGridWriter2
extends java.lang.Object
| Constructor and Description |
|---|
CFGridWriter2() |
| Modifier and Type | Method and Description |
|---|---|
static long |
makeSizeEstimate(GridDataset gds,
java.util.List<java.lang.String> gridList,
LatLonRect llbb,
ProjectionRect projRect,
int horizStride,
Range zRange,
CalendarDateRange dateRange,
int stride_time,
boolean addLatLon)
Compute the size of the file without writing
|
static long |
writeFile(GridDataset gds,
java.util.List<java.lang.String> gridList,
LatLonRect llbb,
ProjectionRect projRect,
int horizStride,
Range zRange,
CalendarDateRange dateRange,
int stride_time,
boolean addLatLon,
NetcdfFileWriter writer)
Write a netcdf/CF file from a GridDataset
|
public static long makeSizeEstimate(GridDataset gds, java.util.List<java.lang.String> gridList, LatLonRect llbb, ProjectionRect projRect, int horizStride, Range zRange, CalendarDateRange dateRange, int stride_time, boolean addLatLon) throws java.io.IOException, InvalidRangeException
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 neededjava.io.IOExceptionInvalidRangeExceptionpublic static long writeFile(GridDataset gds, java.util.List<java.lang.String> gridList, LatLonRect llbb, ProjectionRect projRect, int horizStride, Range zRange, CalendarDateRange dateRange, int stride_time, boolean addLatLon, NetcdfFileWriter writer) throws java.io.IOException, InvalidRangeException
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 writingjava.io.IOExceptionInvalidRangeException