|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.dt.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.open (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(). |
Attribute |
findGlobalAttributeIgnoreCase(java.lang.String name)
|
GeoGrid |
findGridByName(java.lang.String name)
find the named GeoGrid. |
GridDatatype |
findGridDatatype(java.lang.String name)
find the named GridDatatype. |
LatLonRect |
getBoundingBox()
|
VariableSimpleIF |
getDataVariable(java.lang.String shortName)
Get the named data Variable. |
java.util.List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset. |
java.lang.String |
getDescription()
|
java.lang.String |
getDetailInfo()
Get Details about the dataset. |
java.util.Date |
getEndDate()
|
java.util.List<Attribute> |
getGlobalAttributes()
List of global attributes. |
java.util.List<GridDatatype> |
getGrids()
get the list of GridDatatype objects contained in this dataset. |
java.util.List<GridDataset.Gridset> |
getGridsets()
Return GridDatatype objects grouped by GridCoordSys. |
java.lang.String |
getInfo()
Show Grids and coordinate systems. |
java.lang.String |
getLocationURI()
|
java.lang.String |
getName()
|
NetcdfDataset |
getNetcdfDataset()
|
NetcdfFile |
getNetcdfFile()
|
java.lang.StringBuilder |
getParseInfo()
|
java.util.Date |
getStartDate()
|
java.lang.String |
getTitle()
|
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 |
|---|
clone, equals, finalize, 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.IOException - on read errorNetcdfFile.open(java.lang.String)public java.lang.String getTitle()
getTitle in interface TypedDatasetpublic java.lang.String getDescription()
getDescription in interface TypedDatasetpublic java.lang.String getLocationURI()
getLocationURI in interface TypedDatasetpublic java.util.Date getStartDate()
getStartDate in interface TypedDatasetpublic java.util.Date getEndDate()
getEndDate in interface TypedDatasetpublic LatLonRect getBoundingBox()
getBoundingBox in interface TypedDatasetpublic java.util.List<Attribute> getGlobalAttributes()
TypedDataset
getGlobalAttributes in interface TypedDatasetpublic Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
findGlobalAttributeIgnoreCase in interface TypedDatasetname - attribute name
public java.util.List<VariableSimpleIF> getDataVariables()
TypedDataset
getDataVariables in interface TypedDatasetpublic VariableSimpleIF getDataVariable(java.lang.String shortName)
TypedDataset
getDataVariable in interface TypedDatasetshortName - of data Variable.
public NetcdfFile getNetcdfFile()
getNetcdfFile in interface TypedDataset
public void close()
throws java.io.IOException
close in interface TypedDatasetjava.io.IOException - on I/O errorpublic java.lang.String getName()
public NetcdfDataset getNetcdfDataset()
public java.util.List<GridDatatype> getGrids()
GridDataset
getGrids in interface GridDatasetpublic GridDatatype findGridDatatype(java.lang.String name)
GridDataset
findGridDatatype in interface GridDatasetname - look for this name
public java.util.List<GridDataset.Gridset> getGridsets()
getGridsets in interface GridDatasetpublic GeoGrid findGridByName(java.lang.String name)
name - find this GeoGrid by name
public java.lang.String getInfo()
public java.lang.StringBuilder getParseInfo()
public java.lang.String getDetailInfo()
getDetailInfo in interface TypedDataset
public static GridDataset factory(java.lang.String netcdfFileURI)
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||