Package ucar.nc2.dt.ugrid
Class UGridDataset
java.lang.Object
ucar.nc2.dt.ugrid.UGridDataset
- All Implemented Interfaces:
Closeable,AutoCloseable,ucar.nc2.dt.GridDataset,UGridDataset,ucar.nc2.ft.FeatureDataset,ucar.nc2.util.cache.FileCacheable
Make a UGridDataset into a collection of Meshsets
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclassThis is a set of MeshVariables with the same Mesh and TopologyNested classes/interfaces inherited from interface ucar.nc2.dt.GridDataset
ucar.nc2.dt.GridDataset.Gridset -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUGridDataset(ucar.nc2.dataset.NetcdfDataset ds) Create a UGridDataset from a NetcdfDataset.UGridDataset(ucar.nc2.dataset.NetcdfDataset ds, Formatter parseInfo) Create a UGridDataset from a NetcdfDataset. -
Method Summary
Modifier and TypeMethodDescriptionucar.nc2.AttributeContainervoidvoidclose()ucar.nc2.Attributeucar.nc2.dt.GridDatatypefindGridByShortName(String shortName) ucar.nc2.dt.GridDatatypefindGridDatatype(String name) ucar.unidata.geoloc.LatLonRectucar.nc2.time.CalendarDateucar.nc2.time.CalendarDateRangeucar.nc2.time.CalendarDateucar.nc2.VariableSimpleIFgetDataVariable(String shortName) List<ucar.nc2.VariableSimpleIF>ucar.nc2.units.DateRangevoidgetDetailInfo(Formatter buff) ucar.nc2.constants.FeatureTypeList<ucar.nc2.Attribute>List<ucar.nc2.dt.GridDatatype>getGrids()List<ucar.nc2.dt.GridDataset.Gridset>longgetMeshVariableByName(String name) get the list of GridDatatype objects contained in this dataset.getName()ucar.nc2.dataset.NetcdfDatasetucar.nc2.NetcdfFileucar.unidata.geoloc.ProjectionRectgetTitle()static UGridDatasetOpen a netcdf dataset, using NetcdfDataset.defaultEnhanceMode plus CoordSystems and turn into a UGridDataset.static UGridDatasetOpen a netcdf dataset, using NetcdfDataset.defaultEnhanceMode plus CoordSystems and turn into a UGridDataset.voidvoidrelease()voidsetFileCache(ucar.nc2.util.cache.FileCache fileCache) voidsetFileCache(ucar.nc2.util.cache.FileCacheIF fileCache) subset(ucar.unidata.geoloc.LatLonRect bounds) boolean
-
Field Details
-
fileCache
protected ucar.nc2.util.cache.FileCache fileCache
-
-
Constructor Details
-
UGridDataset
Create a UGridDataset from a NetcdfDataset.- Parameters:
ds- underlying NetcdfDataset, will do Enhance.CoordSystems if not already done.- Throws:
IOException- on read error
-
UGridDataset
Create a UGridDataset from a NetcdfDataset.- Parameters:
ds- underlying NetcdfDataset, will do Enhance.CoordSystems if not already done.parseInfo- put parse info here, may be null- Throws:
IOException- on read error
-
-
Method Details
-
open
Open a netcdf dataset, using NetcdfDataset.defaultEnhanceMode plus CoordSystems and turn into a UGridDataset.- Parameters:
location- netcdf dataset to open, using NetcdfDataset.acquireDataset().- Returns:
- GridDataset
- Throws:
IOException- on read error- See Also:
-
NetcdfDataset.acquireDataset(ucar.nc2.dataset.DatasetUrl, ucar.nc2.util.CancelTask)
-
open
public static UGridDataset open(String location, Set<ucar.nc2.dataset.NetcdfDataset.Enhance> enhanceMode) throws IOException Open a netcdf dataset, using NetcdfDataset.defaultEnhanceMode plus CoordSystems and turn into a UGridDataset.- Parameters:
location- netcdf dataset to open, using NetcdfDataset.acquireDataset().enhanceMode- open netcdf dataset with this enhanceMode- Returns:
- GridDataset
- Throws:
IOException- on read error- See Also:
-
NetcdfDataset.acquireDataset(ucar.nc2.dataset.DatasetUrl, ucar.nc2.util.CancelTask)
-
getMeshVariableByName
- Specified by:
getMeshVariableByNamein interfaceUGridDataset
-
getMeshVariables
Description copied from interface:UGridDatasetget the list of GridDatatype objects contained in this dataset.- Specified by:
getMeshVariablesin interfaceUGridDataset- Returns:
- list of GridDatatype
-
calcBounds
- Throws:
IOException
-
getGlobalAttributes
- Specified by:
getGlobalAttributesin interfaceucar.nc2.ft.FeatureDataset
-
getTitle
- Specified by:
getTitlein interfaceucar.nc2.ft.FeatureDataset
-
getDescription
- Specified by:
getDescriptionin interfaceucar.nc2.ft.FeatureDataset
-
getName
-
getLocation
- Specified by:
getLocationin interfaceucar.nc2.ft.FeatureDataset- Specified by:
getLocationin interfaceucar.nc2.util.cache.FileCacheable
-
getLocationURI
-
getStartDate
-
getEndDate
-
getBoundingBox
public ucar.unidata.geoloc.LatLonRect getBoundingBox()- Specified by:
getBoundingBoxin interfaceucar.nc2.ft.FeatureDataset
-
attributes
public ucar.nc2.AttributeContainer attributes()- Specified by:
attributesin interfaceucar.nc2.ft.FeatureDataset
-
findGlobalAttributeIgnoreCase
- Specified by:
findGlobalAttributeIgnoreCasein interfaceucar.nc2.ft.FeatureDataset
-
getDataVariables
- Specified by:
getDataVariablesin interfaceucar.nc2.ft.FeatureDataset
-
getDataVariable
- Specified by:
getDataVariablein interfaceucar.nc2.ft.FeatureDataset
-
getNetcdfFile
public ucar.nc2.NetcdfFile getNetcdfFile()- Specified by:
getNetcdfFilein interfaceucar.nc2.ft.FeatureDataset
-
getFeatureType
public ucar.nc2.constants.FeatureType getFeatureType()- Specified by:
getFeatureTypein interfaceucar.nc2.ft.FeatureDataset
-
getDateRange
public ucar.nc2.units.DateRange getDateRange() -
getImplementationName
- Specified by:
getImplementationNamein interfaceucar.nc2.ft.FeatureDataset
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceucar.nc2.ft.FeatureDataset- Specified by:
closein interfaceucar.nc2.util.cache.FileCacheable- Throws:
IOException
-
syncExtend
- Throws:
IOException
-
setFileCache
public void setFileCache(ucar.nc2.util.cache.FileCache fileCache) -
getDetailInfo
-
getNetcdfDataset
public ucar.nc2.dataset.NetcdfDataset getNetcdfDataset() -
getDetailInfo
- Specified by:
getDetailInfoin interfaceucar.nc2.ft.FeatureDataset
-
getMeshsets
- Specified by:
getMeshsetsin interfaceUGridDataset
-
subset
- Specified by:
subsetin interfaceUGridDataset
-
getCalendarDateRange
public ucar.nc2.time.CalendarDateRange getCalendarDateRange()- Specified by:
getCalendarDateRangein interfaceucar.nc2.ft.FeatureDataset
-
getCalendarDateStart
public ucar.nc2.time.CalendarDate getCalendarDateStart()- Specified by:
getCalendarDateStartin interfaceucar.nc2.ft.FeatureDataset
-
getCalendarDateEnd
public ucar.nc2.time.CalendarDate getCalendarDateEnd()- Specified by:
getCalendarDateEndin interfaceucar.nc2.ft.FeatureDataset
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin interfaceucar.nc2.util.cache.FileCacheable
-
setFileCache
public void setFileCache(ucar.nc2.util.cache.FileCacheIF fileCache) - Specified by:
setFileCachein interfaceucar.nc2.util.cache.FileCacheable
-
release
- Specified by:
releasein interfaceucar.nc2.util.cache.FileCacheable- Throws:
IOException
-
reacquire
- Specified by:
reacquirein interfaceucar.nc2.util.cache.FileCacheable- Throws:
IOException
-
getGrids
- Specified by:
getGridsin interfaceucar.nc2.dt.GridDataset
-
findGridDatatype
- Specified by:
findGridDatatypein interfaceucar.nc2.dt.GridDataset
-
findGridByShortName
- Specified by:
findGridByShortNamein interfaceucar.nc2.dt.GridDataset
-
getProjBoundingBox
public ucar.unidata.geoloc.ProjectionRect getProjBoundingBox()- Specified by:
getProjBoundingBoxin interfaceucar.nc2.dt.GridDataset
-
getGridsets
- Specified by:
getGridsetsin interfaceucar.nc2.dt.GridDataset
-