Package dap4.dap4lib.netcdf
Class Nc4DMRCompiler
- java.lang.Object
-
- dap4.dap4lib.netcdf.Nc4DMRCompiler
-
public class Nc4DMRCompiler extends Object
Compile netcdf file info into DMR
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanclosedstatic booleanDEBUGprotected dap4.core.dmr.DapDatasetdmrprotected Nc4DSPdspprotected dap4.core.dmr.DMRFactoryfactoryprotected intformatprotected intmodestatic intNC_GRPNULLstatic intNC_IDNULLstatic intNC_NOERRprotected static ucar.nc2.jni.netcdf.Nc4prototypesnc4protected intncidprotected Stringpathprotected Stringpathprefixprotected booleantracestatic StringUCARTAGOPAQUEstatic StringUCARTAGVLEN
-
Constructor Summary
Constructors Constructor Description Nc4DMRCompiler(Nc4DSP dsp, int ncid, dap4.core.dmr.DMRFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildattr(int gid, int vid, String name)protected voidbuildcompoundtype(Nc4Notes.TypeNotes ti, String name, long nfields, long len)protected voidbuilddim(int gid, int did, int[] udims)protected voidbuildenumtype(Nc4Notes.TypeNotes ti, String name, int basetype)protected voidbuildfield(Nc4Notes.TypeNotes ti, int fid, dap4.core.dmr.DapStructure container)protected voidbuildgroup(int parent, int gid)protected voidbuildopaquetype(Nc4Notes.TypeNotes ti, String name, long len)protected voidbuildrootgroup(int ncid)protected voidbuildusertype(int gid, int tid)protected dap4.core.dmr.DapVariablebuildvar(int gid, int vid)protected voidbuildvlentype(Nc4Notes.TypeNotes ti, String vname, int basetypeid, long len)dap4.core.dmr.DapDatasetcompile()static booleandspMatch(String path, dap4.core.util.DapContext context)A path is file if it has no base protocol or is file:protected voiderrcheck(int ret)protected voidfillgroup(int gid)protected Nc4Notes.VarNotesmakeField(Nc4Notes.TypeNotes container, int fieldid, String name, Nc4Notes.TypeNotes baset, int offset, int[] dimsizes)protected StringNc4FQN(Nc4Notes.TypeNotes t)
-
-
-
Field Detail
-
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
-
UCARTAGVLEN
public static final String UCARTAGVLEN
- See Also:
- Constant Field Values
-
UCARTAGOPAQUE
public static final String UCARTAGOPAQUE
- See Also:
- Constant Field Values
-
NC_GRPNULL
public static final int NC_GRPNULL
- See Also:
- Constant Field Values
-
NC_IDNULL
public static final int NC_IDNULL
- See Also:
- Constant Field Values
-
NC_NOERR
public static final int NC_NOERR
- See Also:
- Constant Field Values
-
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
-
path
protected String path
-
pathprefix
protected String pathprefix
-
factory
protected dap4.core.dmr.DMRFactory factory
-
dsp
protected Nc4DSP dsp
-
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
-
makeField
protected Nc4Notes.VarNotes makeField(Nc4Notes.TypeNotes container, int fieldid, String name, Nc4Notes.TypeNotes baset, int offset, int[] dimsizes) 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
-
-