public class CFGridWriter2 extends Object
Constructor and Description |
---|
CFGridWriter2() |
Modifier and Type | Method and Description |
---|---|
static long |
makeSizeEstimate(GridDataset gds,
List<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,
List<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, List<String> gridList, LatLonRect llbb, ProjectionRect projRect, int horizStride, Range zRange, CalendarDateRange dateRange, int stride_time, boolean addLatLon) throws 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 neededIOException
InvalidRangeException
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
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 writingIOException
InvalidRangeException
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.