Class Nc4DMRCompiler


  • public class Nc4DMRCompiler
    extends Object
    Compile netcdf file info into DMR
    • Field Detail

      • nc4

        protected static ucar.nc2.jni.netcdf.Nc4prototypes nc4
      • trace

        protected boolean trace
      • closed

        protected boolean closed
      • ncid

        protected int ncid
      • format

        protected int format
      • mode

        protected int mode
      • pathprefix

        protected String pathprefix
      • factory

        protected dap4.core.dmr.DMRFactory factory
      • dmr

        protected dap4.core.dmr.DapDataset dmr
    • Constructor Detail

      • Nc4DMRCompiler

        public Nc4DMRCompiler​(Nc4DSP dsp,
                              int ncid,
                              dap4.core.dmr.DMRFactory factory)
                       throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
    • Method Detail

      • dspMatch

        public static boolean dspMatch​(String path,
                                       dap4.core.util.DapContext context)
        A path is file if it has no base protocol or is file:
        Parameters:
        path -
        context - Any parameters that may help to decide.
        Returns:
        true if this path appears to be processible by this DSP
      • compile

        public dap4.core.dmr.DapDataset compile()
                                         throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • buildrootgroup

        protected void buildrootgroup​(int ncid)
                               throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • fillgroup

        protected void fillgroup​(int gid)
                          throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • buildgroup

        protected void buildgroup​(int parent,
                                  int gid)
                           throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • builddim

        protected void builddim​(int gid,
                                int did,
                                int[] udims)
                         throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • buildusertype

        protected void buildusertype​(int gid,
                                     int tid)
                              throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • buildopaquetype

        protected void buildopaquetype​(Nc4Notes.TypeNotes ti,
                                       String name,
                                       long len)
                                throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • buildenumtype

        protected void buildenumtype​(Nc4Notes.TypeNotes ti,
                                     String name,
                                     int basetype)
                              throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • buildcompoundtype

        protected void buildcompoundtype​(Nc4Notes.TypeNotes ti,
                                         String name,
                                         long nfields,
                                         long len)
                                  throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • buildfield

        protected void buildfield​(Nc4Notes.TypeNotes ti,
                                  int fid,
                                  dap4.core.dmr.DapStructure container)
                           throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • buildvar

        protected dap4.core.dmr.DapVariable buildvar​(int gid,
                                                     int vid)
                                              throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • buildvlentype

        protected void buildvlentype​(Nc4Notes.TypeNotes ti,
                                     String vname,
                                     int basetypeid,
                                     long len)
                              throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • buildattr

        protected void buildattr​(int gid,
                                 int vid,
                                 String name)
                          throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • errcheck

        protected void errcheck​(int ret)
                         throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
      • Nc4FQN

        protected String Nc4FQN​(Nc4Notes.TypeNotes t)
                         throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException