public class Nc4DMRCompiler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
static boolean |
DEBUG |
protected dap4.core.dmr.DapDataset |
dmr |
protected Nc4DSP |
dsp |
protected dap4.core.dmr.DMRFactory |
factory |
protected int |
format |
protected int |
mode |
static int |
NC_GRPNULL |
static int |
NC_IDNULL |
static int |
NC_NOERR |
protected ucar.nc2.jni.netcdf.Nc4prototypes |
nc4 |
protected int |
ncid |
protected String |
path |
protected String |
pathprefix |
protected boolean |
trace |
static String |
UCARTAGOPAQUE |
static String |
UCARTAGVLEN |
| Constructor and Description |
|---|
Nc4DMRCompiler(Nc4DSP dsp,
int ncid,
dap4.core.dmr.DMRFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildattr(int gid,
int vid,
String name) |
protected void |
buildcompoundtype(Nc4Notes.TypeNotes ti,
String name,
long nfields,
long len) |
protected void |
builddim(int gid,
int did,
int[] udims) |
protected void |
buildenumtype(Nc4Notes.TypeNotes ti,
String name,
int basetype) |
protected void |
buildfield(Nc4Notes.TypeNotes ti,
int fid,
dap4.core.dmr.DapStructure container) |
protected void |
buildgroup(int parent,
int gid) |
protected void |
buildopaquetype(Nc4Notes.TypeNotes ti,
String name,
long len) |
protected void |
buildrootgroup(int ncid) |
protected void |
buildusertype(int gid,
int tid) |
protected dap4.core.dmr.DapVariable |
buildvar(int gid,
int vid) |
protected void |
buildvlentype(Nc4Notes.TypeNotes ti,
String vname,
int basetypeid,
long len) |
dap4.core.dmr.DapDataset |
compile() |
static boolean |
dspMatch(String path,
dap4.core.util.DapContext context)
A path is file if it has no base protocol or is file:
|
protected void |
errcheck(int ret) |
protected void |
fillgroup(int gid) |
protected Nc4Notes.VarNotes |
makeField(Nc4Notes.TypeNotes container,
int fieldid,
String name,
Nc4Notes.TypeNotes baset,
int offset,
int[] dimsizes) |
protected String |
Nc4FQN(Nc4Notes.TypeNotes t) |
public static final boolean DEBUG
public static final String UCARTAGVLEN
public static final String UCARTAGOPAQUE
public static final int NC_GRPNULL
public static final int NC_IDNULL
public static final int NC_NOERR
protected ucar.nc2.jni.netcdf.Nc4prototypes nc4
protected boolean trace
protected boolean closed
protected int ncid
protected int format
protected int mode
protected String path
protected String pathprefix
protected dap4.core.dmr.DMRFactory factory
protected Nc4DSP dsp
protected dap4.core.dmr.DapDataset dmr
public Nc4DMRCompiler(Nc4DSP dsp, int ncid, dap4.core.dmr.DMRFactory factory) throws dap4.core.util.DapException
dap4.core.util.DapExceptionpublic static boolean dspMatch(String path, dap4.core.util.DapContext context)
path - context - Any parameters that may help to decide.public dap4.core.dmr.DapDataset compile()
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void buildrootgroup(int ncid)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void fillgroup(int gid)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void buildgroup(int parent,
int gid)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void builddim(int gid,
int did,
int[] udims)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void buildusertype(int gid,
int tid)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void buildopaquetype(Nc4Notes.TypeNotes ti, String name, long len) throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void buildenumtype(Nc4Notes.TypeNotes ti, String name, int basetype) throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void buildcompoundtype(Nc4Notes.TypeNotes ti, String name, long nfields, long len) throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void buildfield(Nc4Notes.TypeNotes ti, int fid, dap4.core.dmr.DapStructure container) throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected Nc4Notes.VarNotes makeField(Nc4Notes.TypeNotes container, int fieldid, String name, Nc4Notes.TypeNotes baset, int offset, int[] dimsizes) throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected dap4.core.dmr.DapVariable buildvar(int gid,
int vid)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void buildvlentype(Nc4Notes.TypeNotes ti, String vname, int basetypeid, long len) throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void buildattr(int gid,
int vid,
String name)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected void errcheck(int ret)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected String Nc4FQN(Nc4Notes.TypeNotes t) throws dap4.core.util.DapException
dap4.core.util.DapException