public class CDMCompiler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
Constructor and Description |
---|
CDMCompiler(DapNetcdfFile ncfile,
D4DSP dsp)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected Array |
compileAtomicVar(DataVariable d4var)
Compile an Atomic Valued variable.
|
protected void |
compileDMR()
Convert a DMR to equivalent CDM meta-databuffer
and populate a NetcdfFile with it.
|
protected CDMArraySequence |
compileSequence(D4DataSequence d4var)
Compile a sequence.
|
protected Array |
compileSequenceArray(D4DataVariable d4var)
Compile an array of sequences.
|
protected CDMArray |
compileStructure(D4DataStructure d4var,
int recno,
CDMArrayStructure container)
Compile a single structure instance.
|
protected Array |
compileStructureArray(D4DataVariable d4var)
Compile an array of structures.
|
protected Array |
compileVar(DataVariable d4var) |
NodeMap |
getNodeMap() |
public CDMCompiler(DapNetcdfFile ncfile, D4DSP dsp) throws DapException
ncfile
- the target NetcdfFiledsp
- the compiled D4 databufferDapException
public NodeMap getNodeMap()
protected void compileDMR() throws DapException
DapException
protected Array compileVar(DataVariable d4var) throws DapException
DapException
protected Array compileAtomicVar(DataVariable d4var) throws DapException
d4var
- The D4 databuffer wrapperDapException
protected CDMArray compileStructure(D4DataStructure d4var, int recno, CDMArrayStructure container) throws DapException
d4var
- the data underlying this structure instancerecno
- the index in the parent compound array.container
- the parent CDMArrayStructureDapException
protected Array compileStructureArray(D4DataVariable d4var) throws DapException
d4var
- The D4 databuffer wrapperDapException
protected CDMArraySequence compileSequence(D4DataSequence d4var) throws DapException
d4var
- the data underlying this sequence instanceDapException
protected Array compileSequenceArray(D4DataVariable d4var) throws DapException
d4var
- The D4 databuffer wrapperDapException
to see how a dimensioned Sequence is represented.