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