org.das2.qds.DDataSet

rank 0,1,2,3 or 4 dataset backed by double array (8 byte real numbers).


accumValue

Deprecated: use addValue

addValues

addValues( QDataSet ds, QDataSet wds ) → void

add all valid values of ds to this dataset. This does not reconcile rank, see CoerceUtil.

Parameters

ds -
wds -

Returns:

void (returns nothing)

See Also:

CoerceUtil#coerce(QDataSet, QDataSet, boolean, QDataSet[])


search for examples view on GitHub view source


copyElements

copyElements( org.das2.qds.DDataSet src, int srcpos, org.das2.qds.DDataSet dest, int destpos, int nrec ) → void

copy elements of src DDataSet into dest DDataSet, with System.arraycopy. src and dst must have the same geometry, except for dim 0. Allows for aliasing when higher dimension element count matches.

Parameters

src - source dataset
srcpos - source dataset first dimension index.
dest - destination dataset
nrec - number of records to copy. Note this is different than the other copyElements!
destpos - destination dataset first dimension index.

Returns:

void (returns nothing)

See Also:

copyElements(org.das2.qds.DDataSet, int, org.das2.qds.DDataSet, int, int, boolean)


search for examples view on GitHub view source


createRank1Bins

createRank1Bins( double min, double max, Units u ) → DDataSet

convenient method for creating DatumRanges bins datasets.

Parameters

min - the minumum value
max - the maximum value
u - the ratiometric or time location units

Returns:

the rank1 bins dataset

search for examples view on GitHub view source


wrapRank2

wrapRank2( double[] back, int n1 ) → DDataSet

creates a DDataSet by wrapping an existing array, and aliasing it to rank2. Note the last index is packed closest in memory.

Parameters

back -
n1 - the size of the second dimension.

Returns:

org.das2.qds.DDataSet

search for examples view on GitHub view source


wrapRank3

wrapRank3( double[] back, int n1, int n2 ) → DDataSet

creates a DDataSet by wrapping an existing array, and aliasing it to rank2. Note the last index is packed closest in memory. The first index length is calculated from the size of the array.

Parameters

back -
n1 - the size of the second index.
n2 - the size of the third index.

Returns:

org.das2.qds.DDataSet

search for examples view on GitHub view source