| Modifier and Type | Field and Description |
|---|---|
protected dap4.core.util.DapContext |
context |
protected static String |
DAPVERSION |
protected static boolean |
DEBUG |
protected dap4.core.dmr.DapDataset |
dmr |
protected static String |
DMRNS |
protected static String |
DMRVERSION |
protected String |
location |
protected static boolean |
PARSEDEBUG |
protected dap4.core.data.DataCursor |
rootcursor |
static boolean |
TESTING |
static String |
UCARTAGOPAQUE |
static String |
UCARTAGORIGTYPE |
static String |
UCARTAGUNLIMITED |
static String |
UCARTAGVLEN |
static boolean |
USEDOM |
protected Map<dap4.core.dmr.DapVariable,dap4.core.data.DataCursor> |
variables |
| Constructor and Description |
|---|
AbstractDSP() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariableData(dap4.core.dmr.DapVariable var,
dap4.core.data.DataCursor cursor) |
abstract void |
close() |
dap4.core.data.ChecksumMode |
getChecksumMode() |
dap4.core.util.DapContext |
getContext() |
dap4.core.dmr.DapDataset |
getDMR() |
String |
getLocation() |
ByteOrder |
getOrder() |
dap4.core.data.DataCursor |
getVariableData(dap4.core.dmr.DapVariable var) |
abstract AbstractDSP |
open(String location)
"open" a reference to a data source and return the DSP wrapper.
|
protected dap4.core.dmr.DapDataset |
parseDMR(String document)
It is common to want to parse a DMR text to a DapDataset,
so provide this utility.
|
static String |
printDMR(dap4.core.dmr.DapDataset dmr) |
protected void |
processAttributes(dap4.core.dmr.DapDataset dataset)
Walk the dataset tree and remove selected attributes
such as _Unsigned
|
AbstractDSP |
setChecksumMode(dap4.core.data.ChecksumMode mode) |
void |
setContext(dap4.core.util.DapContext context) |
protected void |
setDataset(dap4.core.dmr.DapDataset dataset) |
void |
setDMR(dap4.core.dmr.DapDataset dmr) |
AbstractDSP |
setLocation(String loc) |
AbstractDSP |
setOrder(ByteOrder order) |
protected boolean |
suppress(String attrname)
Some attributes that are added by the NetcdfDataset
need to be kept out of the DMR.
|
public static boolean TESTING
protected static final boolean DEBUG
protected static final boolean PARSEDEBUG
public static final boolean USEDOM
protected static final String DAPVERSION
protected static final String DMRVERSION
protected static final String DMRNS
public static final String UCARTAGVLEN
public static final String UCARTAGOPAQUE
public static final String UCARTAGORIGTYPE
public static final String UCARTAGUNLIMITED
protected dap4.core.util.DapContext context
protected dap4.core.dmr.DapDataset dmr
protected String location
protected Map<dap4.core.dmr.DapVariable,dap4.core.data.DataCursor> variables
protected dap4.core.data.DataCursor rootcursor
public abstract AbstractDSP open(String location) throws dap4.core.util.DapException
open in interface dap4.core.data.DSPlocation - - Object that defines the data sourcedap4.core.util.DapExceptionpublic abstract void close()
throws IOException
close in interface dap4.core.data.DSPIOExceptionpublic dap4.core.data.DataCursor getVariableData(dap4.core.dmr.DapVariable var)
throws dap4.core.util.DapException
getVariableData in interface dap4.core.data.DSPdap4.core.util.DapExceptionpublic dap4.core.util.DapContext getContext()
getContext in interface dap4.core.data.DSPpublic String getLocation()
getLocation in interface dap4.core.data.DSPpublic AbstractDSP setLocation(String loc)
setLocation in interface dap4.core.data.DSPpublic dap4.core.dmr.DapDataset getDMR()
getDMR in interface dap4.core.data.DSPpublic void setContext(dap4.core.util.DapContext context)
setContext in interface dap4.core.data.DSPpublic void setDMR(dap4.core.dmr.DapDataset dmr)
protected void setDataset(dap4.core.dmr.DapDataset dataset)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionpublic ByteOrder getOrder()
getOrder in interface dap4.core.data.DSPpublic AbstractDSP setOrder(ByteOrder order)
public dap4.core.data.ChecksumMode getChecksumMode()
getChecksumMode in interface dap4.core.data.DSPpublic AbstractDSP setChecksumMode(dap4.core.data.ChecksumMode mode)
public void addVariableData(dap4.core.dmr.DapVariable var,
dap4.core.data.DataCursor cursor)
protected dap4.core.dmr.DapDataset parseDMR(String document) throws dap4.core.util.DapException
document - the dmr to parsedap4.core.util.DapException - on parse errorsprotected void processAttributes(dap4.core.dmr.DapDataset dataset)
throws dap4.core.util.DapException
dataset - dap4.core.util.DapExceptionprotected boolean suppress(String attrname)
attrname - A non-escaped attribute name to be tested for suppressionpublic static String printDMR(dap4.core.dmr.DapDataset dmr)