gamma

gamma( double n ) → double

return the gamma function for numbers greater than 0. This will soon work for any number where gamma has a result (Apache Math v3 is needed for this).

Parameters

n -

Returns:

double

search for examples view on GitHub view source


ge

ge( QDataSet ds1, QDataSet ds2 ) → QDataSet

element-wise function returns 1 where ds1>=ds2.

Parameters

ds1 -
ds2 -

Returns:

org.das2.qds.QDataSet

search for examples view on GitHub view source


getQubeDimsForArray

getQubeDimsForArray( Object arg0 ) → int

return the length of each index of a n-D array. In Java these are arrays of arrays, and no test is made to verify that the array is really a qube. This was introduced when it appeared that Python/jpype was producing arrays without the getClass method. For example, if we have an array of 3 arrays, each having 5 elements, then [ 3,5 ] is returned.

Parameters

arg0 - an array, or array of arrays, or array of array of arrays, etc.

Returns:

the n dimensions of each index of the array.

search for examples view on GitHub view source


greaterOf

greaterOf( QDataSet ds1, QDataSet ds2 ) → QDataSet

element-wise function returns the greater of ds1 and ds2. If an element of ds1 or ds2 is fill, then the result is fill.

Parameters

ds1 -
ds2 -

Returns:

the bigger of the two, in the units of ds1.

search for examples view on GitHub view source


grid

grid( QDataSet ds ) → QDataSet

Opposite of the flatten function, takes rank 2 bundle (x,y,z) and makes a table from it z(x,y). This presumes that the rank 1 X and Y data contain repeating elements for the rows and columns of the grid.

Parameters

ds - rank 2 bundle of X,Y, and Z data.

Returns:

rank 2 table.

See Also:

Ops_f.md#flatten(QDataSet)


search for examples view on GitHub view source


gridIrregularY

gridIrregularY( QDataSet t, QDataSet y, QDataSet z, QDataSet ytags ) → QDataSet

This finds sweeps of Y and interpolates T->Y->Z to make a regular spectrogram T,yTags->Z[T,yTags] This function was once known as "LvT" because it was used to create a spectrogram of Flux(Time,Lshell) by interpolating along sweeps.

Parameters

t - the rank 1 x values (often time)
y - the rank 1 y values (for example, L)
z - the rank 1 z values at each y.
ytags - the rank 1 y tags for the result.

Returns:

the rank 2 spectrogram.

search for examples view on GitHub view source


gt

gt( QDataSet ds1, QDataSet ds2 ) → QDataSet

element-wise function returns 1 where ds1>ds2.

Parameters

ds1 -
ds2 -

Returns:

org.das2.qds.QDataSet

search for examples view on GitHub view source


guessLabel

guessLabel( QDataSet ds ) → String

get the label, using the NAME when LABEL is not available.

Parameters

ds - the dataset

Returns:

the human-readable label.

search for examples view on GitHub view source


guessName

guessName( QDataSet ds ) → String

guess a name for the dataset, looking for NAME and then safeName(LABEL). The result will be a Java-style identifier suitable for the variable.

Parameters

ds - the dataset

Returns:

the name or null if there is no NAME or LABEL

search for examples view on GitHub view source