Class Nc4DSP

  • All Implemented Interfaces:
    dap4.core.data.DSP

    public class Nc4DSP
    extends AbstractDSP
    DSP for reading netcdf files through jni interface to netcdf4 library
    • Constructor Detail

      • Nc4DSP

        public Nc4DSP()
               throws dap4.core.util.DapException
        Throws:
        dap4.core.util.DapException
    • Method Detail

      • dspMatch

        public 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
      • noteSortFor

        protected Nc4Notes.NoteSort noteSortFor​(dap4.core.dmr.DapNode node)
      • allnotesInit

        protected void allnotesInit()
      • open

        public Nc4DSP open​(String filepath)
                    throws dap4.core.util.DapException
        Description copied from class: AbstractDSP
        "open" a reference to a data source and return the DSP wrapper.
        Specified by:
        open in interface dap4.core.data.DSP
        Specified by:
        open in class AbstractDSP
        Parameters:
        filepath - - Object that defines the data source
        Returns:
        = wrapping dsp
        Throws:
        dap4.core.util.DapException
      • close

        public void close()
                   throws dap4.core.util.DapException
        Specified by:
        close in interface dap4.core.data.DSP
        Specified by:
        close in class AbstractDSP
        Throws:
        dap4.core.util.DapException
      • getVariableData

        public Nc4Cursor getVariableData​(dap4.core.dmr.DapVariable var)
                                  throws dap4.core.util.DapException
        Specified by:
        getVariableData in interface dap4.core.data.DSP
        Overrides:
        getVariableData in class AbstractDSP
        Throws:
        dap4.core.util.DapException
      • getJNI

        public ucar.nc2.jni.netcdf.Nc4prototypes getJNI()
      • getLocation

        public String getLocation()
        Specified by:
        getLocation in interface dap4.core.data.DSP
        Overrides:
        getLocation in class AbstractDSP
      • makeString

        public static String makeString​(byte[] b)