|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.Variable
ucar.nc2.Structure
ucar.nc2.dataset.StructureDS
public class StructureDS
An "enhanced" Structure.
NetcdfDataset
Field Summary |
---|
Fields inherited from class ucar.nc2.Variable |
---|
defaultSizeToCache |
Constructor Summary | |
---|---|
StructureDS(Group g,
Structure orgVar)
Create a StructureDS thats wraps a Structure |
|
StructureDS(Group group,
Structure parent,
java.lang.String shortName,
Structure orgVar)
Wrap the given Structure, making it into a StructureDS. |
|
StructureDS(NetcdfDataset ds,
Group group,
Structure parentStructure,
java.lang.String shortName,
java.lang.String dims,
java.lang.String units,
java.lang.String desc)
Constructor when theres no underlying variable. |
Method Summary | |
---|---|
void |
addCoordinateSystem(CoordinateSystem p0)
Add a CoordinateSystem to the dataset. |
void |
clearCoordinateSystems()
clear previous coordinate systems. |
void |
enhance(java.util.Set<NetcdfDataset.Enhance> mode)
DO NOT USE DIRECTLY. |
java.util.List<CoordinateSystem> |
getCoordinateSystems()
Get the list of Coordinate Systems for this Variable. |
java.lang.String |
getDescription()
Get the description of the Variable. |
DataType |
getOriginalDataType()
When this wraps another Variable, get the original Variable's DataType. |
java.lang.String |
getOriginalName()
When this wraps another Variable, get the original Variable's DataType. |
Variable |
getOriginalVariable()
A StructureDS may wrap another Structure. |
ProxyReader |
getProxyReader()
Get the proxy reader, or null. |
java.lang.String |
getUnitsString()
Get the Unit String for the Variable. |
void |
removeCoordinateSystem(CoordinateSystem p0)
Remove a CoordinateSystem from the dataset. |
Structure |
select(java.util.List<java.lang.String> memberNames)
Create a subset of the Structure consisting only of the given member variables |
void |
setName(java.lang.String newName)
Set the short name |
void |
setOriginalVariable(Variable orgVar)
Set the Structure to wrap. |
void |
setProxyReader(ProxyReader proxyReader)
Set the proxy reader. |
void |
setUnitsString(java.lang.String units)
Set the Unit String for this Variable. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public StructureDS(NetcdfDataset ds, Group group, Structure parentStructure, java.lang.String shortName, java.lang.String dims, java.lang.String units, java.lang.String desc)
ds
- the containing NetcdfDataset.group
- the containing group; if null, use rootGroupparentStructure
- parent Structure, may be nullshortName
- variable shortName, must be unique within the Groupdims
- list of dimension names, space delimitedunits
- unit string (may be null)desc
- description (may be null)public StructureDS(Group g, Structure orgVar)
g
- parent grouporgVar
- original Structurepublic StructureDS(Group group, Structure parent, java.lang.String shortName, Structure orgVar)
group
- the containing group; may not be nullparent
- parent Structure, may be nullshortName
- variable shortName, must be unique within the GrouporgVar
- the original Structure to wrap.Method Detail |
---|
public Structure select(java.util.List<java.lang.String> memberNames)
Structure
select
in class Structure
memberNames
- list of Variable names, already a member
public Variable getOriginalVariable()
getOriginalVariable
in interface VariableEnhanced
public void setOriginalVariable(Variable orgVar)
setOriginalVariable
in interface VariableEnhanced
orgVar
- original Variable, must be a Structurepublic DataType getOriginalDataType()
public java.lang.String getOriginalName()
getOriginalName
in interface VariableEnhanced
public void setName(java.lang.String newName)
Variable
setName
in class Variable
newName
- set to this valuepublic void setProxyReader(ProxyReader proxyReader)
setProxyReader
in interface VariableEnhanced
proxyReader
- set to thispublic ProxyReader getProxyReader()
getProxyReader
in interface VariableEnhanced
public void enhance(java.util.Set<NetcdfDataset.Enhance> mode)
enhance
in interface VariableEnhanced
public void clearCoordinateSystems()
VariableEnhanced
clearCoordinateSystems
in interface VariableEnhanced
public void addCoordinateSystem(CoordinateSystem p0)
Enhancements
addCoordinateSystem
in interface Enhancements
p0
- add this Coordinate Systempublic void removeCoordinateSystem(CoordinateSystem p0)
Enhancements
removeCoordinateSystem
in interface Enhancements
p0
- remove this coordinate systempublic java.util.List<CoordinateSystem> getCoordinateSystems()
Enhancements
getCoordinateSystems
in interface Enhancements
public java.lang.String getDescription()
Variable
getDescription
in interface Enhancements
getDescription
in interface VariableIF
getDescription
in interface VariableSimpleIF
getDescription
in class Variable
public java.lang.String getUnitsString()
Variable
getUnitsString
in interface Enhancements
getUnitsString
in interface VariableIF
getUnitsString
in interface VariableSimpleIF
getUnitsString
in class Variable
public void setUnitsString(java.lang.String units)
VariableEnhanced
setUnitsString
in interface VariableEnhanced
units
- unit string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |