org.das2.qds.DataSetIterator
Iterator for accessing each value of a dataset.
See http://jfaden.net:8080/hudson/job/autoplot-test037/ws/dataSetIterator.jy
createEmptyDs
createEmptyDs( ) → DDataSet
return a dataset that will have the same geometry at the
dataset implied by each dimension iterator. This is
introduced to encapsulate this dangerous code to here where it could
be done correctly. Right now this assumes QUBES.
Do not pass the result of this into the putValue of this iterator,
the result should have its own iterator.
Returns:
a dataset that will have the same geometry at the
dataset implied by each dimension iterator.
See Also:
QubeDataSetIterator#createEmptyDs()
search for examples
view on GitHub
view source
hasNext
hasNext( ) → boolean
return true while the iterator has a next element.
Returns:
true while the iterator has a next element.
search for examples
view on GitHub
view source
index
index( int dim ) → int
return the current index for the dimension.
Parameters
dim - the dimension number (0<=dim<inputRank)
Returns:
the current index.
search for examples
view on GitHub
view source
next
next( ) → void
iterate to the next position.
Returns:
void (returns nothing)
search for examples
view on GitHub
view source