public class TableUtil
extends java.lang.Object
Constructor and Description |
---|
TableUtil() |
Modifier and Type | Method and Description |
---|---|
protected static void |
checkForNaN(double[][] t) |
static void |
checkForNaN(TableDataSet tds) |
static Datum |
closestDatum(TableDataSet table,
Datum x,
Datum y) |
static int |
closestRow(TableDataSet table,
int itable,
Datum datum) |
static int |
closestRow(TableDataSet table,
int itable,
double x,
Units units) |
static VectorDataSet |
collapse(TableDataSet ds,
int offset,
int length) |
static void |
dumpToAsciiStream(TableDataSet tds,
Datum xmin,
Datum xmax,
java.io.OutputStream out) |
static void |
dumpToAsciiStream(TableDataSet tds,
java.io.OutputStream out) |
static void |
dumpToAsciiStream(TableDataSet tds,
java.nio.channels.WritableByteChannel out) |
static void |
dumpToBinaryStream(TableDataSet tds,
java.io.OutputStream out) |
static void |
dumpToDas2Stream(QDataSet tds,
java.nio.channels.WritableByteChannel out,
boolean asciiTransferTypes,
boolean sendStreamDescriptor)
Write das2stream directly from QDataSet.
|
static void |
dumpToDas2Stream(TableDataSet tds,
java.nio.channels.WritableByteChannel out,
boolean asciiTransferTypes,
boolean sendStreamDescriptor)
write the data to a das2Stream
|
static DatumVector |
getDatumVector(TableDataSet tds,
int i) |
static Datum |
getLargestYTag(TableDataSet tds) |
static int |
getNextRow(TableDataSet ds,
int itable,
Datum datum)
return the first row after the datum.
|
static int |
getPreviousRow(TableDataSet ds,
int itable,
Datum datum)
return the first row before the datum.
|
static Datum |
getSmallestYTag(TableDataSet tds) |
static double[] |
getYTagArrayDouble(TableDataSet table,
int itable,
Units units) |
static DatumVector |
getYTagsDatumVector(TableDataSet tds,
int itable) |
static Datum |
guessYTagWidth(TableDataSet table) |
static Datum |
guessYTagWidth(TableDataSet table,
int itable)
guess the y tag cadence by returning the difference of the first two tags.
|
static int |
tableIndexAt(TableDataSet table,
int i) |
static double |
tableMax(TableDataSet tds,
Units units) |
static java.lang.String |
toString(TableDataSet tds) |
public static double[] getYTagArrayDouble(TableDataSet table, int itable, Units units)
public static Datum getLargestYTag(TableDataSet tds)
public static Datum getSmallestYTag(TableDataSet tds)
public static int closestRow(TableDataSet table, int itable, Datum datum)
public static int closestRow(TableDataSet table, int itable, double x, Units units)
public static Datum closestDatum(TableDataSet table, Datum x, Datum y)
public static int tableIndexAt(TableDataSet table, int i)
public static Datum guessYTagWidth(TableDataSet table)
public static Datum guessYTagWidth(TableDataSet table, int itable)
table
- itable
- the table index.public static double tableMax(TableDataSet tds, Units units)
public static void checkForNaN(TableDataSet tds)
protected static void checkForNaN(double[][] t)
public static java.lang.String toString(TableDataSet tds)
public static DatumVector getDatumVector(TableDataSet tds, int i)
public static DatumVector getYTagsDatumVector(TableDataSet tds, int itable)
public static void dumpToAsciiStream(TableDataSet tds, Datum xmin, Datum xmax, java.io.OutputStream out)
public static void dumpToAsciiStream(TableDataSet tds, java.io.OutputStream out)
public static void dumpToAsciiStream(TableDataSet tds, java.nio.channels.WritableByteChannel out)
public static void dumpToBinaryStream(TableDataSet tds, java.io.OutputStream out)
public static void dumpToDas2Stream(QDataSet tds, java.nio.channels.WritableByteChannel out, boolean asciiTransferTypes, boolean sendStreamDescriptor)
tds
- rank 2 table or rank 3 join of tables.out
- output channel which will receive the stream.asciiTransferTypes
- if true then use ascii to transfer data.sendStreamDescriptor
- if true send the stream header, if false don't output it.public static void dumpToDas2Stream(TableDataSet tds, java.nio.channels.WritableByteChannel out, boolean asciiTransferTypes, boolean sendStreamDescriptor)
tds
- out
- asciiTransferTypes
- sendStreamDescriptor
- if false, then don't send the stream and don't close.public static int getPreviousRow(TableDataSet ds, int itable, Datum datum)
public static int getNextRow(TableDataSet ds, int itable, Datum datum)
public static VectorDataSet collapse(TableDataSet ds, int offset, int length)