abs
abs( QDataSet ds1 ) → QDataSet
element-wise abs. For vectors, this returns the length of each element.
Note Jython conflict needs to be resolved. Note the result of this
will have dimensionless units, and see magnitude for the more abstract
operator.
For ratio-type units (Stevens) like "kms", the unit is preserved.
Parameters
ds1 - the dataset
Returns:
dataset with the same geometry
See Also:
Ops_p.mdOps#magnitude(QDataSet) magnitude(ds), which preserves the sign.
search for examples
view on GitHub
view source
accum
accum( QDataSet accumDs, QDataSet ds ) → QDataSet
return an array that is the running sum of each element in the array,
starting with the value accum.
Result[i]= accum + total( ds[0:i+1] )
Parameters
accumDs - the initial value of the running sum. Last value of Rank 0 or Rank 1 dataset is used, or may be null.
ds - each element is added to the running sum
Returns:
the running of each element in the array.
See Also:
Ops_d.md#diff(QDataSet)
search for examples
view on GitHub
view source
acos
acos( QDataSet ds ) → QDataSet
element-wise arccos.
Parameters
ds -
Returns:
org.das2.qds.QDataSet
search for examples
view on GitHub
view source
and
and( QDataSet ds1, QDataSet ds2 ) → QDataSet
element-wise logical and function. non-zero is true, zero is false.
Parameters
ds1 -
ds2 -
Returns:
org.das2.qds.QDataSet
See Also:
Ops_b.md#bitwiseAnd(QDataSet, QDataSet)
search for examples
view on GitHub
view source
appendEvents
appendEvents( QDataSet ev1, QDataSet ev2 ) → QDataSet
provide explicit method for appending two events scheme datasets. This will probably be
deprecated, and this was added at 17:30 for a particular need.
Parameters
ev1 -
ev2 -
Returns:
org.das2.qds.QDataSet
search for examples
view on GitHub
view source
applyUnaryOp
applyUnaryOp( QDataSet ds1, org.das2.qds.ops.Ops.UnaryOp op ) → MutablePropertyDataSet
apply the unary operation (such as "cos") to the dataset, propagating
DEPEND_0 through DEPEND_3 are propagated. TODO: This should be reviewed
for speed (iterator is known to be slow) and other metadata that can
be preserved.
Parameters
ds1 - the argument
op - the operation for each element.
Returns:
the result the the same geometry.
search for examples
view on GitHub
view source
asin
asin( QDataSet ds ) → QDataSet
element-wise arcsin.
Parameters
ds -
Returns:
org.das2.qds.QDataSet
search for examples
view on GitHub
view source
atan
atan( QDataSet ds ) → QDataSet
element-wise atan.
Parameters
ds -
Returns:
org.das2.qds.QDataSet
search for examples
view on GitHub
view source
atan2
atan2( QDataSet y, QDataSet x ) → QDataSet
element-wise atan2, 4-quadrant atan. From the Java atan2 documentation:
"Returns the angle theta from the conversion of rectangular
coordinates ( x, y) to polar coordinates
(r, theta). This method computes the phase theta
by computing an arc tangent of y/x in the range of
-pi to pi."
Note different languages have different
argument order. Microsoft Office uses atan2(x,y); IDL uses atan(y,x);
Matlab uses atan2(y,x); and NumPy uses arctan2(y,x).
Parameters
y - the y values
x - the x values
Returns:
angles between -PI and PI
See Also:
java.lang.Math#atan2(double, double)
search for examples
view on GitHub
view source
autoHistogram
autoHistogram( QDataSet ds ) → QDataSet
AutoHistogram is a one-pass self-scaling histogram, useful in autoranging data.
The data is fed into the routine, and bins will grow as more and more data is added,
to result in about 100 bins. For example, if the initial binsize is 1.0 unit, and the data extent
is 0-200, then bins are combined so that the new binsize is 2.0 units and 100 bins are used.
Parameters
ds - rank N dataset (all ranks are supported).
Returns:
rank 1 dataset
search for examples
view on GitHub
view source