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 databufferDapExceptionpublic NodeMap getNodeMap()
protected void compileDMR()
throws DapException
DapExceptionprotected Array compileVar(DataVariable d4var) throws DapException
DapExceptionprotected Array compileAtomicVar(DataVariable d4var) throws DapException
d4var - The D4 databuffer wrapperDapExceptionprotected 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 CDMArrayStructureDapExceptionprotected Array compileStructureArray(D4DataVariable d4var) throws DapException
d4var - The D4 databuffer wrapperDapExceptionprotected CDMArraySequence compileSequence(D4DataSequence d4var) throws DapException
d4var - the data underlying this sequence instanceDapExceptionprotected Array compileSequenceArray(D4DataVariable d4var) throws DapException
d4var - The D4 databuffer wrapperDapExceptionto see how a dimensioned Sequence is represented.