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:


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 -

Returns:

void (returns nothing)

search for examples view on GitHub view source


createRank0Bundle

createRank0Bundle( ) → 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 source


createRank1Bundle

createRank1Bundle( ) → 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 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 source