Class CDMCompiler


  • public class CDMCompiler
    extends Object
    The goal for the CDM compiler is produce a NetcdfDataset whose content comes from a DSP. In a sense it is the inverse of CDMDSP. Compilation implies two translations/wraps. 1. Create a set of CDMNodes corresponding to the relevant nodes in the DMR. 2. Create a set of CDM ucar.ma2.array objects that wrap the DataDataset object. Note that this compiler has nothing to do with D4DataCompiler.
    • Field Detail

      • DEBUG

        public static boolean DEBUG
      • dsp

        protected D4DSP dsp
      • arraymap

        protected Map<ucar.nc2.Variable,​ucar.ma2.Array> arraymap
    • Method Detail

      • getNodeMap

        public NodeMap<ucar.nc2.CDMNode,​DapNode> getNodeMap()
      • getArrayMap

        public Map<ucar.nc2.Variable,​ucar.ma2.Array> getArrayMap()
      • getNetcdfFile

        public ucar.nc2.NetcdfFile getNetcdfFile()
      • compileDMR

        public void compileDMR()
                        throws DapException
        Convert a DMR to equivalent CDM meta-databuffer and populate a NetcdfDataset with it.
        Throws:
        DapException
      • compileData

        public void compileData()
                         throws DapException
        Convert a DataDataset to equivalent CDM data (Array objects). and populate a NetcdfDataset with it.
        Throws:
        DapException