public abstract class TypedDatasetImpl extends Object implements TypedDataset
Modifier and Type | Field and Description |
---|---|
protected LatLonRect |
boundingBox |
protected List<VariableSimpleIF> |
dataVariables |
protected String |
desc |
protected Date |
endDate |
protected String |
location |
protected NetcdfDataset |
ncfile |
protected StringBuffer |
parseInfo |
protected Date |
startDate |
protected String |
title |
Constructor and Description |
---|
TypedDatasetImpl()
No-arg constuctor
|
TypedDatasetImpl(NetcdfDataset ncfile)
Construtor when theres a NetcdfFile underneath
|
TypedDatasetImpl(String title,
String description,
String location)
Constructor when theres no NetcdfFile underneath.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close all resources associated with this dataset.
|
Attribute |
findGlobalAttributeIgnoreCase(String name) |
LatLonRect |
getBoundingBox() |
VariableSimpleIF |
getDataVariable(String shortName)
Get the named data Variable.
|
List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset.
|
String |
getDescription() |
String |
getDetailInfo() |
Date |
getEndDate() |
List<Attribute> |
getGlobalAttributes()
List of global attributes.
|
String |
getLocation() |
String |
getLocationURI() |
NetcdfFile |
getNetcdfFile() |
Date |
getStartDate() |
String |
getTitle() |
protected void |
removeDataVariable(String varName) |
protected abstract void |
setBoundingBox() |
void |
setDescription(String desc) |
protected abstract void |
setEndDate() |
void |
setLocationURI(String location) |
protected abstract void |
setStartDate() |
void |
setTitle(String title) |
protected NetcdfDataset ncfile
protected String title
protected String desc
protected String location
protected Date startDate
protected Date endDate
protected LatLonRect boundingBox
protected List<VariableSimpleIF> dataVariables
protected StringBuffer parseInfo
public TypedDatasetImpl()
public TypedDatasetImpl(String title, String description, String location)
title
- title of the dataset.description
- description of the dataset.location
- URI of the datasetpublic TypedDatasetImpl(NetcdfDataset ncfile)
ncfile
- adapt this NetcdfDatasetpublic void setTitle(String title)
public void setDescription(String desc)
public void setLocationURI(String location)
protected abstract void setStartDate()
protected abstract void setEndDate()
protected abstract void setBoundingBox()
protected void removeDataVariable(String varName)
public NetcdfFile getNetcdfFile()
getNetcdfFile
in interface TypedDataset
public String getTitle()
getTitle
in interface TypedDataset
public String getDescription()
getDescription
in interface TypedDataset
public String getLocationURI()
getLocationURI
in interface TypedDataset
public String getLocation()
public List<Attribute> getGlobalAttributes()
TypedDataset
getGlobalAttributes
in interface TypedDataset
public Attribute findGlobalAttributeIgnoreCase(String name)
findGlobalAttributeIgnoreCase
in interface TypedDataset
name
- attribute namepublic void close() throws IOException
TypedDataset
close
in interface TypedDataset
IOException
- on I/O errorpublic String getDetailInfo()
getDetailInfo
in interface TypedDataset
public Date getStartDate()
getStartDate
in interface TypedDataset
public Date getEndDate()
getEndDate
in interface TypedDataset
public LatLonRect getBoundingBox()
getBoundingBox
in interface TypedDataset
public List<VariableSimpleIF> getDataVariables()
TypedDataset
getDataVariables
in interface TypedDataset
public VariableSimpleIF getDataVariable(String shortName)
TypedDataset
getDataVariable
in interface TypedDataset
shortName
- of data Variable.Copyright © 1999–2015 UCAR/Unidata. All rights reserved.