|
||||||||||
| 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.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(). |
Attribute |
findGlobalAttributeIgnoreCase(java.lang.String name)
Return the global attribute with the given name, ingnoring case. |
GeoGrid |
findGridByName(java.lang.String name)
find the named GeoGrid. |
GridDatatype |
findGridDatatype(java.lang.String name)
find the named GridDatatype. |
LatLonRect |
getBoundingBox()
The boundingBox for the entire dataset. |
VariableSimpleIF |
getDataVariable(java.lang.String shortName)
Get the named data Variable. |
java.util.List |
getDataVariables()
The data Variables available in this dataset. |
java.lang.String |
getDescription()
Text information about this dataset. |
java.lang.String |
getDetailInfo()
Get Details about the dataset. |
java.util.Date |
getEndDate()
End date for the entire dataset. |
java.util.List |
getGlobalAttributes()
List of global attributes. |
java.util.List |
getGrids()
get the list of GeoGrid objects contained in this dataset. |
java.util.List |
getGridsets()
Return GridDatatype objects grouped by GridCoordSys. |
java.lang.String |
getInfo()
Show Grids and coordinate systems. |
java.lang.String |
getLocationURI()
The URI location of the dataset |
java.lang.String |
getName()
the name of the dataset |
NetcdfDataset |
getNetcdfDataset()
the underlying NetcdfDataset |
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none. |
java.lang.StringBuffer |
getParseInfo()
|
java.util.Date |
getStartDate()
Start date for the entire dataset. |
java.lang.String |
getTitle()
Title of the dataset. |
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.IOExceptionpublic java.lang.String getTitle()
TypedDataset
getTitle in interface TypedDatasetpublic java.lang.String getDescription()
TypedDataset
getDescription in interface TypedDatasetpublic java.lang.String getLocationURI()
TypedDataset
getLocationURI in interface TypedDatasetpublic java.util.Date getStartDate()
TypedDataset
getStartDate in interface TypedDatasetpublic java.util.Date getEndDate()
TypedDataset
getEndDate in interface TypedDatasetpublic LatLonRect getBoundingBox()
TypedDataset
getBoundingBox in interface TypedDatasetpublic java.util.List getGlobalAttributes()
TypedDataset
getGlobalAttributes in interface TypedDatasetpublic Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
TypedDataset
findGlobalAttributeIgnoreCase in interface TypedDatasetpublic java.util.List getDataVariables()
TypedDataset
getDataVariables in interface TypedDatasetpublic VariableSimpleIF getDataVariable(java.lang.String shortName)
TypedDataset
getDataVariable in interface TypedDatasetshortName - of data Variable.
public NetcdfFile getNetcdfFile()
TypedDataset
getNetcdfFile in interface TypedDataset
public void close()
throws java.io.IOException
close in interface TypedDatasetjava.io.IOExceptionpublic java.lang.String getName()
public NetcdfDataset getNetcdfDataset()
public java.util.List getGrids()
getGrids in interface GridDatasetpublic GridDatatype findGridDatatype(java.lang.String name)
GridDataset
findGridDatatype in interface GridDatasetpublic java.util.List getGridsets()
getGridsets in interface GridDatasetpublic GeoGrid findGridByName(java.lang.String name)
public java.lang.String getInfo()
public java.lang.StringBuffer getParseInfo()
public java.lang.String getDetailInfo()
getDetailInfo in interface TypedDatasetpublic static void main(java.lang.String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||