org.das2.qds.SubsetDataSet

Extracts a subset of the source dataset by using a rank 1 subset of indeces on each index.

SubsetDataSet( QDataSet source )

create a subSetDataSet for the source, which is read for applyIndex calls which reduce each index.


applyIndex

applyIndex( int idim, QDataSet idx ) → void

apply the subset indexes to a given dimension. For example, if a=[10,20,30,40] then applyIndex( 0, [1,2] ) would result in [20,30].

Parameters

idim - an int
idx - the rank 1 index list, for example from where on a rank 1 dataset.

Returns:

void (returns nothing)

[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 i ) → int
length( int i, int j ) → int
length( int i, int j, int k ) → int

parseIndices

parseIndices( String spec, int dimlen ) → int[]

parse the string spec into a list of indices. The spec is a comma-delineated list containing any combination of:

If the spec starts with ~, then these indices are removed. For example: Note if invert is present, then the indices cannot be reversed.

Parameters

spec - a String
dimlen - an int

Returns:

the list of integers.

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


property

property( String name, int i ) → Object

Parameters

name - a String
i - an int

Returns:

java.lang.Object

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

property( String name ) → Object

rank

rank( ) → int

Returns:

int

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


value

value( ) → double

Returns:

double

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

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