|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.dataset.grid.GridDataset
public class GridDataset
Make a NetcdfDataset into a collection of GeoGrids with Georeferencing coordinate systems.
A variable will be made into a GeoGrid if it has a Georeferencing coordinate system, using GridCoordSys.isGridCoordSys(), and it has no extra dimensions, ie GridCoordSys.isComplete( var) is true. If it has multiple Georeferencing coordinate systems, any one that is a product set will be given preference. Example:
GridDataset gridDs = GridDataset.factory (uriString);
List grids = gridDs.getGrids();
for (int i=0; i<grids.size(); i++) {
GeoGrid grid = (Geogrid) grids.get(i);
}
| Nested Class Summary | |
|---|---|
class |
GridDataset.Gridset
This is a set of GeoGrids with the same GeoCoordSys. |
| Constructor Summary | |
|---|---|
GridDataset(NetcdfDataset ds)
Create a GridDataset from a NetcdfDataset. |
|
| Method Summary | |
|---|---|
void |
close()
Close all resources associated with this dataset. |
static GridDataset |
factory(java.lang.String netcdfFileURI)
Deprecated. : use GridDataset.open(). |
GeoGrid |
findGridByName(java.lang.String name)
find the named GeoGrid. |
java.lang.String |
getDetailInfo()
Get Details about the dataset. |
java.util.List |
getGrids()
get the list of GeoGrid objects contained in this dataset. |
java.util.Collection |
getGridSets()
Return GeoGrid objects grouped by GridCoordSys. |
java.lang.String |
getInfo()
Show Grids and coordinate systems. |
java.lang.String |
getName()
the name of the dataset |
NetcdfDataset |
getNetcdfDataset()
the underlying NetcdfDataset |
java.lang.StringBuffer |
getParseInfo()
|
static void |
main(java.lang.String[] arg)
testing |
static GridDataset |
open(java.lang.String netcdfFileURI)
Open a netcdf dataset, parse Conventions, find all the geoGrids, return a GridDataset. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridDataset(NetcdfDataset ds)
ds - underlying NetcdfDataset.| Method Detail |
|---|
public static GridDataset open(java.lang.String netcdfFileURI)
throws java.io.IOException
netcdfFileURI - netcdf dataset to open. May have a dods:, http: or file: prefix,
or just a local filename. If it ends with ".xml", its assumed to be a NetcdfDataset Definition XML file
java.io.IOExceptionNetcdfFile.open(java.lang.String)
public static GridDataset factory(java.lang.String netcdfFileURI)
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
public NetcdfDataset getNetcdfDataset()
public java.util.List getGrids()
public java.util.Collection getGridSets()
public GeoGrid findGridByName(java.lang.String name)
public java.lang.String getInfo()
public java.lang.StringBuffer getParseInfo()
public java.lang.String getDetailInfo()
public static void main(java.lang.String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||