public class DSPToCDM
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DapDataset |
dmr |
protected DapNetcdfFile |
ncfile |
protected NodeMap |
nodemap |
Constructor and Description |
---|
DSPToCDM(DapNetcdfFile ncfile,
DapDataset dmr) |
Modifier and Type | Method and Description |
---|---|
NodeMap |
create()
Do the conversion and return a NodeMap
representing the conversion.
|
protected Attribute |
createAttribute(DapAttribute dapattr,
NodeMap nodemap)
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,
NodeMap nodemap) |
protected void |
createDimension(DapDimension dapdim,
Group cdmgroup,
NodeMap nodemap) |
protected Dimension |
createDimensionRef(DapDimension dim,
Group cdmgroup,
NodeMap nodemap) |
protected EnumTypedef |
createEnum(DapEnum dapenum,
Group cdmparent,
NodeMap nodemap) |
protected void |
createGroup(DapGroup dapgroup,
Group cdmparent,
NetcdfFile ncfile,
NodeMap nodemap) |
protected void |
createVar(DapVariable dapvar,
NetcdfFile ncfile,
NodeMap nodemap,
Group cdmgroup,
Structure cdmparentstruct)
Create a variable or field
|
protected void |
fillGroup(Group cdmparent,
DapGroup dapparent,
NetcdfFile ncfile,
NodeMap nodemap) |
protected DapNetcdfFile ncfile
protected DapDataset dmr
protected NodeMap nodemap
public DSPToCDM(DapNetcdfFile ncfile, DapDataset dmr)
ncfile
- - the NetcdfFile objectdmr
- - the DMRpublic NodeMap create() throws DapException
DapException
protected void fillGroup(Group cdmparent, DapGroup dapparent, NetcdfFile ncfile, NodeMap nodemap) throws DapException
DapException
protected void createGroup(DapGroup dapgroup, Group cdmparent, NetcdfFile ncfile, NodeMap nodemap) throws DapException
DapException
protected void createVar(DapVariable dapvar, NetcdfFile ncfile, NodeMap nodemap, Group cdmgroup, Structure cdmparentstruct) throws DapException
dapvar
- the template variablencfile
- the containing NetcdfFile (really NetcdfDataset)nodemap
- for tracking cdm nodes <-> dap nodescdmgroup
- the containing CDM groupcdmparentstruct
- the containing CDM structure (or null)DapException
protected void createDimension(DapDimension dapdim, Group cdmgroup, NodeMap nodemap) throws DapException
DapException
protected Dimension createDimensionRef(DapDimension dim, Group cdmgroup, NodeMap nodemap) throws DapException
DapException
protected EnumTypedef createEnum(DapEnum dapenum, Group cdmparent, NodeMap nodemap) throws DapException
DapException
protected Attribute createAttribute(DapAttribute dapattr, NodeMap nodemap)
dapattr
- The dap attribute whose values need to be convertednodemap
- Insert the created ucar.nc2.Attribute into this mapprotected Attribute createAttribute(java.lang.String prefix, DapAttribute dapattr, NodeMap nodemap)