<hr> <a name="where"></a> <h2>where</h2> where( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>returns a dataset containing the indices of where the dataset is non-zero. For a rank 1 dataset, returns a rank 1 dataset with indices for the values. For a higher rank dataset, returns a rank 2 qube dataset with ds.rank() elements in the first dimension. Note when the dataset is all zeros (false), the result is a zero-length array, as opposed to IDL which would return a -1 scalar. Note fill values are not included in the list, so it is not necessary that where(A).length + where(not A).length != where( A.or(not(A) ).length Note this is different from the SciPy "where" and similar to Matlab "find."</p> <h3>Parameters</h3> ds - of any rank M, M>0. <h3>Returns:</h3> a rank 1 or rank 2 dataset with N by M elements, where N is the number of non-zero elements found. <h3>See Also:</h3> <a href='null'>putValues(QDataSet, QDataSet, QDataSet)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=where&unscoped_q=where">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ops/Ops_w.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ops/Ops.html#where">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ops/Ops.java#l6896">[view source]</a> <br> <br> where( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> ds ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a><br> <hr> <a name="whereR1"></a> <h2>whereR1</h2> whereR1( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>returns a dataset containing the indices of where the dataset is non-zero. This is used when the code using this assumes a rank 1 result.</p> <h3>Parameters</h3> ds - a rank 1 QDataSet <h3>Returns:</h3> rank 1 array of index where the data is valid and non-zero. <h3>See Also:</h3> <a href='null'>where(QDataSet)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=whereR1&unscoped_q=whereR1">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ops/Ops_w.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ops/Ops.html#whereR1">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ops/Ops.java#l6873">[view source]</a> <br> <br> <hr> <a name="whereSequence"></a> <h2>whereSequence</h2> whereSequence( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> seq ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>return a list of indices, similar to the where result.</p> <h3>Parameters</h3> ds - rank 1 dataset of length N <br> seq - rank 1 dataset, with length much less than N. <h3>Returns:</h3> rank 1 list of indices. <h3>See Also:</h3> <a href='https://github.com/autoplot/dev/blob/master/demos/2021/20210115/whereSequence.jy'>https://github.com/autoplot/dev/blob/master/demos/2021/20210115/whereSequence.jy</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=whereSequence&unscoped_q=whereSequence">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ops/Ops_w.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ops/Ops.html#whereSequence">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ops/Ops.java#l11234">[view source]</a> <br> <br> <hr> <a name="windowFunction"></a> <h2>windowFunction</h2> windowFunction( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/ops/Ops/FFTFilterType.html'>org.das2.qds.ops.Ops.FFTFilterType</a> filt, int len ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>return a dataset for the given filter type. The result will be rank 1 and length len.</p> <h3>Parameters</h3> filt - the type of the window. <br> len - the length of the window. <h3>Returns:</h3> rank 1 QDataSet with length len. <br><br> <a href="https://github.com/autoplot/dev/search?q=windowFunction&unscoped_q=windowFunction">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ops/Ops_w.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ops/Ops.html#windowFunction">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ops/Ops.java#l8503">[view source]</a> <br> <br> windowFunction( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> type, int len ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a><br> <hr> <a name="within"></a> <h2>within</h2> within( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> bounds ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>return non-zero where the data in ds are within the bounds. In Jython, <blockquote><pre> print within( [0,1,2,3,4], '2 to 4' ) --> [ 0,0,1,1,0 ] print within( ttag, 'orbit:rbspa-pp:172' ) </pre></blockquote></p> <h3>Parameters</h3> ds - rank N dataset where N > 0 <br> bounds - a rank 1 bounding box, or rank 2 array of bounding boxes, or rank 2 events list <h3>Returns:</h3> rank N dataset containing non-zero where the condition is true. <h3>See Also:</h3> <a href='null'>without(QDataSet, QDataSet)</a> <br> <a href='null'>binsWithin(QDataSet, QDataSet)</a> <br> <a href='null'>withinSet(QDataSet, QDataSet)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=within&unscoped_q=within">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ops/Ops_w.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ops/Ops.html#within">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ops/Ops.java#l7023">[view source]</a> <br> <br> within( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> ds, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> bounds ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a><br> <hr> <a name="withinSet"></a> <h2>withinSet</h2> withinSet( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> set ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>returns 1 where the dataset contains elements within the set, 0 where elements are not within the set. Note this cannot be used to check for fill data.</p> <h3>Parameters</h3> ds - a dataset <br> set - a dataset, typically rank 1, of values. <h3>Returns:</h3> 1 where the dataset contains elements within the set, 0 otherwise. <h3>See Also:</h3> <a href='null'>not(QDataSet)</a> <br> <a href='null'>within(QDataSet, QDataSet)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=withinSet&unscoped_q=withinSet">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ops/Ops_w.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ops/Ops.html#withinSet">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ops/Ops.java#l6985">[view source]</a> <br> <br> <hr> <a name="without"></a> <h2>without</h2> without( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> bounds ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> <p>return non-zero where the data in ds are outside of the bounds. In Jython, <blockquote><pre> print without( [0,1,2,3,4], '2 to 4' ) --> [ 1,1,0,0,1 ] print without( ttag, 'orbit:rbspa-pp:172' ) </pre></blockquote> Note if bounds contain fill, then everything is fill.</p> <h3>Parameters</h3> ds - rank N dataset where N > 0 <br> bounds - a rank 1 bounding box. <h3>Returns:</h3> rank N dataset containing non-zero where the condition is true. <h3>See Also:</h3> <a href='null'>within(QDataSet, QDataSet)</a> <br> <br><br> <a href="https://github.com/autoplot/dev/search?q=without&unscoped_q=without">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/ops/Ops_w.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/ops/Ops.html#without">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/ops/Ops.java#l7125">[view source]</a> <br> <br> without( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> ds, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> bounds ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a><br>