org.das2.qds.BundleDataSet

create a higher rank dataset with dim 1 being a bundle dimension. Each dataset must have the same length. Note this was created before BUNDLE_1 and bundle descriptor datasets were introduced, so this code is suspect. TODO: review and ensure compatibility with updates to bundle dataset semantics. Copied from JoinDataSet in June 2009 Modification History:

BundleDataSet( )

Creates a new instance of BundleDataSet that accepts rank 1 datasets. (Rank 2 and up are not yet supported.)

BundleDataSet( int rank )

Creates a new instance of BundleDataSet with the given rank. Rank 1 datasets can bundle rank 0 datasets, while rank 2 can only bundle rank 1 datasets with the same depend_0.

BundleDataSet( QDataSet ds )

create a bundle with the first dataset. The result will have rank N+1 where ds has rank N.


bundle

bundle( QDataSet ds ) → void

add the dataset to the bundle of datasets. Currently this implementation only supports rank N-1 datasets (N is this dataset's rank), but the QDataSet spec allows for qube datasets of any rank>1 to be bundled. This limitation will be removed in a future version. (Note QDataSet changes http://autoplot.org/QDataSet#2011-Apr-13)

Parameters

ds - a QDataSet

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


createRank0Bundle

createRank0Bundle( ) → org.das2.qds.BundleDataSet

return a BundleDataSet for bundling rank 0 datasets. The result will be a rank 1 datasets with BUNDLE_0 non-null.

Returns:

a rank 1 BundleDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]


createRank1Bundle

createRank1Bundle( ) → org.das2.qds.BundleDataSet

return a BundleDataSet for bundling rank 1 datasets. The result will be a rank 2 datasets with BUNDLE_1 non-null.

Returns:

a rank 2 BundleDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]


length

length( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]

length( int i0 ) → int
length( int i0, int i1 ) → int
length( int i0, int i1, int i2 ) → int

property

property( String name, int i0 ) → Object

Parameters

name - a String
i0 - an int

Returns:

java.lang.Object

[search for examples] [view on GitHub] [view on old javadoc] [view source]


rank

rank( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


toString

toString( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


unbundle

unbundle( int i ) → QDataSet

allow to simply unbundle the dataset. If the bundle has DEPEND_0, then DEPEND_0 may be added to the result.

Parameters

i - the index.

Returns:

the dataset at i.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


value

value( int i0 ) → double

Parameters

i0 - an int

Returns:

double

[search for examples] [view on GitHub] [view on old javadoc] [view source]

value( int i0, int i1 ) → double
value( int i0, int i1, int i2 ) → double
value( int i0, int i1, int i2, int i3 ) → double