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 -

Returns:

bundle of X, Y, and remaining data.

search for examples view on GitHub 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 source


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 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 source