polarToCartesian

polarToCartesian( QDataSet ds ) → QDataSet

converts a rank 2 bundle of polar data, where ds[:,0] are the radii and ds[:,1] are the angles. Any additional bundled datasets are left alone.

Parameters

ds - a QDataSet

Returns:

bundle of X, Y, and remaining data.

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


pow

pow( QDataSet ds1, QDataSet pow ) → QDataSet

element-wise pow (** in FORTRAN, ^ in IDL) of two datasets with the compatible geometry.

Parameters

ds1 - the base
pow - the exponent

Returns:

the value ds1**pow

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

pow( long x, long y ) → long
pow( double x, double y ) → double
pow( Object ds1, Object pow ) → QDataSet

putBundleProperty

putBundleProperty( QDataSet ds, String name, int index, Object value ) → MutablePropertyDataSet

Like putIndexedProperty, but manages the bundle for the client. This was introduced to make it easier to work with bundles. This converts types often seen in Jython and Java codes to the correct type. For example, ds= putBundleProperty( ds, 'UNITS', 0, 'seconds since 2012-01-01'). The dataset may be copied to make it mutable. If the bundle descriptor dataset is not found, it is added, making the rank 2 dataset a bundle.

Parameters

ds - the rank 1 or rank 2 bundle dataset to which the property is to be set.
name - the property name
index - the property index
value - the property value, which can converted to the proper type.

Returns:

the dataset, possibly converted to a mutable dataset.

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


putIndexedProperty

putIndexedProperty( QDataSet ds, String name, int index, Object value ) → MutablePropertyDataSet

Like putProperty, but this inserts the value at the index. This was introduced to make it easier to work with bundles. This converts types often seen in Jython and Java codes to the correct type. For example, bds= putProperty( bds, 'UNITS', 0, 'seconds since 2012-01-01'). The dataset may be copied to make it mutable.

Parameters

ds - the dataset to which the property is to be set.
name - the property name
index - the property index
value - the property value, which can converted to the proper type.

Returns:

the dataset, possibly converted to a mutable dataset.

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


putProperty

putProperty( Object ds, String name, Object value ) → MutablePropertyDataSet

converts types often seen in Jython and Java codes to the correct type. For example,

ds= putProperty( [1400,2800], 'UNITS', 'seconds since 2012-01-01')
will convert the string 'seconds since 2012-01-01' into a Unit before assigning it to the dataset.

Parameters

ds - the object which can be interpreted as a dataset, such as a number or array of numbers.
name - the property name
value - the property value, which can converted to the proper type.

Returns:

the dataset, possibly converted to a mutable dataset.

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

putProperty( QDataSet ds, String name, Object value ) → MutablePropertyDataSet

putValues

putValues( Object ds, Object indeces, Object values ) → WritableDataSet

Parameters

ds - an Object
indeces - an Object
values - an Object

Returns:

org.das2.qds.WritableDataSet

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

putValues( QDataSet ds, QDataSet indeces, QDataSet value ) → WritableDataSet