public class DMRToCDM
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DapDataset |
dmr |
protected D4DSP |
dsp |
protected DapNetcdfFile |
ncfile |
protected NodeMap<CDMNode,DapNode> |
nodemap |
Constructor and Description |
---|
DMRToCDM(DapNetcdfFile ncfile,
D4DSP dsp) |
Modifier and Type | Method and Description |
---|---|
NodeMap<CDMNode,DapNode> |
create()
Do the conversion and return a NodeMap
representing the conversion.
|
protected Attribute |
createAttribute(DapAttribute dapattr)
Our goal is to convert, where possible, to a
list of objects to a list of values
acceptable to the ucar.nc2.Attribute class
|
protected Attribute |
createAttribute(java.lang.String prefix,
DapAttribute dapattr) |
protected void |
createDimension(DapDimension dapdim,
Group cdmgroup) |
protected Dimension |
createDimensionRef(DapDimension dim,
Group cdmgroup) |
protected EnumTypedef |
createEnum(DapEnumeration dapenum,
Group cdmparent) |
protected void |
createGroup(DapGroup dapgroup,
Group cdmparent,
NetcdfFile ncfile) |
protected void |
createVar(DapVariable dapvar,
NetcdfFile ncfile,
Group cdmgroup,
Structure cdmparentstruct)
Create a variable or field
|
protected void |
fillGroup(Group cdmparent,
DapGroup dapparent,
NetcdfFile ncfile) |
protected DapNetcdfFile ncfile
protected D4DSP dsp
protected DapDataset dmr
public DMRToCDM(DapNetcdfFile ncfile, D4DSP dsp) throws DapException
ncfile
- - the NetcdfFile objectdsp
- - the DSP being wrappedDapException
public NodeMap<CDMNode,DapNode> create() throws DapException
DapException
protected void fillGroup(Group cdmparent, DapGroup dapparent, NetcdfFile ncfile) throws DapException
DapException
protected void createGroup(DapGroup dapgroup, Group cdmparent, NetcdfFile ncfile) throws DapException
DapException
protected void createVar(DapVariable dapvar, NetcdfFile ncfile, Group cdmgroup, Structure cdmparentstruct) throws DapException
dapvar
- the template variablencfile
- the containing NetcdfFile (really NetcdfDataset)cdmgroup
- the containing CDM groupcdmparentstruct
- the containing CDM structure (or null)DapException
protected void createDimension(DapDimension dapdim, Group cdmgroup) throws DapException
DapException
protected Dimension createDimensionRef(DapDimension dim, Group cdmgroup) throws DapException
DapException
protected EnumTypedef createEnum(DapEnumeration dapenum, Group cdmparent) throws DapException
DapException
protected Attribute createAttribute(DapAttribute dapattr)
dapattr
- The dap attribute whose values need to be convertedprotected Attribute createAttribute(java.lang.String prefix, DapAttribute dapattr)