public class Nc4DMRCompiler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
closed |
static boolean |
DEBUG |
protected DapDataset |
dmr |
protected Nc4DSP |
dsp |
protected DMRFactory |
factory |
protected int |
format |
protected int |
mode |
static int |
NC_GRPNULL |
static int |
NC_IDNULL |
static int |
NC_NOERR |
protected static Nc4prototypes |
nc4 |
protected int |
ncid |
protected java.lang.String |
path |
protected java.lang.String |
pathprefix |
protected boolean |
trace |
static java.lang.String |
UCARTAGOPAQUE |
static java.lang.String |
UCARTAGVLEN |
Constructor and Description |
---|
Nc4DMRCompiler(Nc4DSP dsp,
int ncid,
DMRFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildattr(int gid,
int vid,
java.lang.String name) |
protected void |
buildcompoundtype(Nc4Notes.TypeNotes ti,
java.lang.String name,
long nfields,
long len) |
protected void |
builddim(int gid,
int did,
int[] udims) |
protected void |
buildenumtype(Nc4Notes.TypeNotes ti,
java.lang.String name,
int basetype) |
protected void |
buildfield(Nc4Notes.TypeNotes ti,
int fid,
DapStructure container) |
protected void |
buildgroup(int parent,
int gid) |
protected void |
buildopaquetype(Nc4Notes.TypeNotes ti,
java.lang.String name,
long len) |
protected void |
buildrootgroup(int ncid) |
protected void |
buildusertype(int gid,
int tid) |
protected DapVariable |
buildvar(int gid,
int vid) |
protected void |
buildvlentype(Nc4Notes.TypeNotes ti,
java.lang.String vname,
int basetypeid,
long len) |
DapDataset |
compile() |
static boolean |
dspMatch(java.lang.String path,
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,
java.lang.String name,
Nc4Notes.TypeNotes baset,
int offset,
int[] dimsizes) |
protected java.lang.String |
Nc4FQN(Nc4Notes.TypeNotes t) |
public static final boolean DEBUG
public static final java.lang.String UCARTAGVLEN
public static final java.lang.String UCARTAGOPAQUE
public static final int NC_GRPNULL
public static final int NC_IDNULL
public static final int NC_NOERR
protected static Nc4prototypes nc4
protected boolean trace
protected boolean closed
protected int ncid
protected int format
protected int mode
protected java.lang.String path
protected java.lang.String pathprefix
protected DMRFactory factory
protected Nc4DSP dsp
protected DapDataset dmr
public Nc4DMRCompiler(Nc4DSP dsp, int ncid, DMRFactory factory) throws DapException
DapException
public static boolean dspMatch(java.lang.String path, DapContext context)
path
- context
- Any parameters that may help to decide.public DapDataset compile() throws DapException
DapException
protected void buildrootgroup(int ncid) throws DapException
DapException
protected void fillgroup(int gid) throws DapException
DapException
protected void buildgroup(int parent, int gid) throws DapException
DapException
protected void builddim(int gid, int did, int[] udims) throws DapException
DapException
protected void buildusertype(int gid, int tid) throws DapException
DapException
protected void buildopaquetype(Nc4Notes.TypeNotes ti, java.lang.String name, long len) throws DapException
DapException
protected void buildenumtype(Nc4Notes.TypeNotes ti, java.lang.String name, int basetype) throws DapException
DapException
protected void buildcompoundtype(Nc4Notes.TypeNotes ti, java.lang.String name, long nfields, long len) throws DapException
DapException
protected void buildfield(Nc4Notes.TypeNotes ti, int fid, DapStructure container) throws DapException
DapException
protected Nc4Notes.VarNotes makeField(Nc4Notes.TypeNotes container, int fieldid, java.lang.String name, Nc4Notes.TypeNotes baset, int offset, int[] dimsizes) throws DapException
DapException
protected DapVariable buildvar(int gid, int vid) throws DapException
DapException
protected void buildvlentype(Nc4Notes.TypeNotes ti, java.lang.String vname, int basetypeid, long len) throws DapException
DapException
protected void buildattr(int gid, int vid, java.lang.String name) throws DapException
DapException
protected void errcheck(int ret) throws DapException
DapException
protected java.lang.String Nc4FQN(Nc4Notes.TypeNotes t) throws DapException
DapException