ucar.nc2.dt.grid
Class NetcdfCFWriter
java.lang.Object
ucar.nc2.dt.grid.NetcdfCFWriter
public class NetcdfCFWriter
- extends Object
Write a CF compliant Netcdf-3 file from any gridded dataset. The datasets can optionally be subsetted by a lat/lon
bounding box and/or a time range.
- Author:
- caron
Method Summary |
static void |
main(String[] args)
|
static void |
makeFile(String location,
GridDataset gds,
List<String> gridList,
LatLonRect llbb,
DateRange range)
|
void |
makeFile(String location,
GridDataset gds,
List<String> gridList,
LatLonRect llbb,
DateRange range,
boolean addLatLon,
int horizStride,
int stride_z,
int stride_time)
Write a CF compliant Netcdf-3 file from any gridded dataset. |
void |
makeFile(String location,
GridDataset gds,
List<String> gridList,
LatLonRect llbb,
int horizStride,
Range zRange,
DateRange dateRange,
int stride_time,
boolean addLatLon)
|
static void |
test1()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetcdfCFWriter
public NetcdfCFWriter()
makeFile
public static void makeFile(String location,
GridDataset gds,
List<String> gridList,
LatLonRect llbb,
DateRange range)
throws IOException,
InvalidRangeException
- Throws:
IOException
InvalidRangeException
makeFile
public void makeFile(String location,
GridDataset gds,
List<String> gridList,
LatLonRect llbb,
DateRange range,
boolean addLatLon,
int horizStride,
int stride_z,
int stride_time)
throws IOException,
InvalidRangeException
- Write a CF compliant Netcdf-3 file from any gridded dataset.
- Parameters:
location
- write to this location on diskgds
- A gridded datasetgridList
- the list of grid names to be written, must not be empty. Full name (not short).llbb
- optional lat/lon bounding boxrange
- optional time rangeaddLatLon
- should 2D lat/lon variables be added, if its a projection coordinate system?horizStride
- x,y stridestride_z
- not implemented yetstride_time
- not implemented yet
- Throws:
IOException
- if write or read error
InvalidRangeException
- if subset is illegal
makeFile
public void makeFile(String location,
GridDataset gds,
List<String> gridList,
LatLonRect llbb,
int horizStride,
Range zRange,
DateRange dateRange,
int stride_time,
boolean addLatLon)
throws IOException,
InvalidRangeException
- Throws:
IOException
InvalidRangeException
test1
public static void test1()
throws IOException,
InvalidRangeException,
ParseException
- Throws:
IOException
InvalidRangeException
ParseException
main
public static void main(String[] args)
throws IOException,
InvalidRangeException,
ParseException
- Throws:
IOException
InvalidRangeException
ParseException
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.