Trees | Indices | Help |
---|
|
One-dimensional data representation
DataLine
represents 1D data arrays in Gwyddion. It
is used for most of the data processing functions connected with 1D data,
graphs, etc.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Creates a new data line.
|
Checks whether two data lines are compatible.
|
Checks whether a data line is compatible with brick Z-profiles. If If you include
Since: 2.51 |
Fills missing values in a data line using Laplace data correction. Both data lines must have the same number of values. For one-dimensional data the missing data interpolation is explicit. Interior missing segments are filled with linear dependence between the edge points. Missing segments with one end open are filled with the edge value.
Since: 2.45 |
Sets lateral and value units of a data field to match a data line.
|
Creates a new data line similar to an existing one. Use DataLine.duplicate() if you want to copy a data line including data.
|
Creates a new data line by resampling an existing one. This method is equivalent to DataLine.duplicate() followed by DataLine.resample(), but it is more efficient.
Since: 2.1 |
Resamples a data line. In other words changes the size of one dimensional field related with data line. The original values are used for resampling using a requested interpolation alorithm.
|
Resizes (crops) a data line. Extracts a part of data line in range
|
Extracts a part of a data line to a new data line.
|
Copies the contents of a data line to another already allocated data line of the same size.
Warning: Semantic of method differs from DataField.copy(), it copies only data. It will be probably changed. |
Gets the number of data points in a data line.
|
Gets the physical size of a data line.
|
Sets the real data line size.
|
Gets the offset of data line origin.
|
Sets the offset of a data line origin. Note offsets don't affect any calculation, nor functions like DataLine.rtoi().
|
Gets the sample distance (pixel size) of a data line in real units. The result is the same as DataLine.get_real(data_line)/DataLine.get_res(data_line).
Since: 2.52 |
Returns lateral SI unit of a data line.
|
Returns value SI unit of a data line.
|
Sets the SI unit corresponding to the lateral (X) dimension of a data line. It does not assume a reference on
|
Sets the SI unit corresponding to the "height" (Y) dimension of a data line. It does not assume a reference on
|
Finds value format good for displaying coordinates of a data line.
|
Finds value format good for displaying values of a data line. Note this functions searches for minimum and maximum value in
|
Sets lateral and value units of a data line to match another data line.
Since: 2.49 |
Transforms pixel coordinate to real (physical) coordinate. That is it maps range [0..resolution] to range [0..real-size]. It is
not suitable for conversion of matrix indices to physical coordinates,
you have to use DataLine.itor(
|
Transforms real (physical) coordinate to pixel coordinate. That is it maps range [0..real-size] to range [0..resolution].
|
Gets value at given position in a data line. Do not access data with this function inside inner loops, it's slow.
Get raw data buffer with
|
Sets the value at given position in a data line. Do not set data with this function inside inner loops, it's slow. Get raw data buffer with DataLine.get_data() and write to it directly instead.
|
Gets interpolated value at arbitrary data line point indexed by pixel coordinates. Note pixel values are centered in intervals [ See also DataLine.get_dval_real() that does the same, but takes real coordinates.
|
Gets interpolated value at arbitrary data line point indexed by real coordinates. See also DataLine.get_dval() for interpolation explanation.
|
Reflects and/or inverts a data line. In the case of value reflection, it's inverted about mean value.
|
Fills a data line with specified value.
|
Multiplies all values in a data line with a specified value.
|
Adds a specified value to all values in a data line.
|
Fills a data line part with zeroes.
|
Fills specified part of data line with specified number
|
Multiplies all values in a part of data line by specified value.
|
Adds specified value to all values in a part of a data line.
|
Sums two data lines.
Since: 2.56 |
Subtracts two data lines.
Since: 2.56 |
Multiplies two data lines.
Since: 2.56 |
Computes point-wise general linear combination of two data lines.
Since: 2.61 |
Sets all the values to
|
Sets all the values within interval to
|
Finds line leveling coefficients. The coefficients can be used for line leveling using relation data[i] := data[i] - (av + bv*i);
|
Performs line leveling. See DataLine.get_line_coeffs() for deails.
|
Performs line rotation. This is operation similar to leveling, but it does not change the angles between line segments (on the other hand it introduces other deformations due to discretization).
Since: 2.7 |
Performs line rotation. Use DataLine.rotate() instead.
|
Computes central derivaltion at given index in a data line.
|
Transforms a distribution in a data line to cummulative distribution. Each element becomes sum of all previous elements in the line, including self. |
Performs steps of the wavelet decomposition. The smallest low pass coefficients block is equal to
|
Calculates Fast Fourier Transform of a data line. A windowing or data leveling can be applied if requested.
|
Calculates Fast Fourier Transform of a part of a data line. A windowing or data leveling can be applied if requested.
|
Calculates Fast Fourier Transform of a data line. No leveling, windowing nor scaling is performed. The normalisation of FFT is symmetrical, so transformations in both directions are unitary. Since 2.8 the dimensions need not to be from the set of sizes returned by gwy_fft_find_nice_size().
Since: 2.1 |
Computes Zoom FFT of a data line. The output is DFTs, but computed for an arbitrary linear sequence of frequencies. The frequencies do not have to be in any relation to the data sampling step. The first item of output corresponds exactly to Frequency step of one corresponds to the normal DFT frequency step.
Therefore, passing The transform direction is always forward. Windowing or other preprocessing need to be done separately beforehand. They would be usually once, but followed by any number of (Zoom) FFTs.
Since: 2.61 |
Performs windowing of a data line in preparation for FFT.
Since: 2.62 |
Finds the maximum value of a data line.
|
Finds the minimum value of a data line.
|
Finds the minimum and maximum values of a data line. Since 2.42
|
Finds the minimum pixel position of a data line. For historical reasons the value is returned as double, but it is always an integer.
|
Finds the maximum pixel position of a data line. For historical reasons the value is returned as double, but it is always an integer.
|
Finds the real minimum position in a data line.
|
Finds the real maximum position in a data line.
|
Computes average value of a data line.
|
Computes root mean square value of a data line.
|
Computes root mean square slope in a data line.
Since: 2.2 |
Computes the total variation of a data line. See DataLine.part_get_variation() for definition and discussion.
Since: 2.42 |
Computes sum of all values in a data line.
|
Computes the mean absolute deviation of a data line.
Since: 2.42 |
Computes the skew of a data line.
Since: 2.42 |
Computes the kurtosis of a data line.
Since: 2.42 |
Finds the maximum value of a part of a data line.
|
Finds the minimum value of a part of a data line.
|
Finds the minimum and maximum values of a part of a data line. Since 2.42
|
Computes mean value of all values in a part of a data line.
|
Computes root mean square value of a part of a data line.
|
Computes root mean square slope in a part of a data line. This is the root mean square of value derivatives, it is also proportional to the second derivative of both HHCF and ACF at zero. This roughness quantity is also known as Dq.
Since: 2.2 |
Computes the total variation of a part of a data line. The total variation is estimated as the integral of the absolute value of local gradient. For one dimensional data, the variation reduces to the integral of absolute value of the derivative. Its units are thus the same as the value units of the line. See also DataField.area_get_variation() for some more discussion.
Since: 2.42 |
Computes sum of all values in a part of a data line.
|
Computes mean absolute deviation value of a part of a data line.
|
Computes skew value of a part of a data line.
|
Computes kurtosis value of a part of a data line. Note the kurtosis returned by this function returns is the excess kurtosis which is zero for the Gaussian distribution (not 3).
|
Finds approximate modus of a data line. See DataLine.part_get_modus() for details and caveats.
|
Finds approximate modus of a data line part. As each number in the data line is usually unique, this function does not return modus of the data itself, but modus of a histogram.
|
Finds median of a data line.
Since: 2.1 |
Finds median of a data line part.
Since: 2.1 |
Calculates physical length of a data line. The length is calculated from approximation by straight segments between values.
|
Calculates a peak roughness quantity for a data line. Depending on
Since: 2.42 |
Calculates a valley roughness quantity for a data line. Depending on
Since: 2.42 |
Calculates a total roughness quantity for a data line. The total quantity is just the sum of the corresponding quantities obtained by DataLine.get_xpm() and DataLine.get_xvm().
Since: 2.42 |
Counts peaks or valleys defined by thresholds in a data line. Peak is defined as a part of the profile that extends above the peak threshold and is separarted by valleys that extend below the valley threshold. For non-zero thresholds there may be parts between that are neither peaks not valleys because the local maxima in them are insignificant. In either case, values of
Since: 2.50 |
Calculates the distribution of data line values. This function is quite similar to DataLine.dh(), the differences are: output normalization (chosen to make the integral unity), output units (again set to make the integral unity), automated binning. Note the If all values are equal and
Since: 2.8 |
Computes distribution of heights in interval
[ If the interval is (0, 0) it computes the distribution from real data minimum and maximum value.
|
Computes cumulative distribution of heighs in interval
[ If the interval is (0, 0) it computes the distribution from real data minimum and maximum value.
|
Computes distribution of angles in interval [ If the interval is (0, 0) it computes the distribution from real data minimum and maximum angle value.
|
Computes cumulative distribution of angles in interval
[ If the interval is (0, 0) it computes the distribution from real data minimum and maximum angle value.
|
Coputes autocorrelation function and stores the values in
Up to version 2.53 it did not set the output units properly.
|
Computes height-height correlation function and stores results in
Up to version 2.53 it did not set the output units properly.
|
Calculates the power spectral density function of a data line. Up to version 2.45 it destroyed the input data and did not set the output units properly.
|
Extract the data of a data line. The returned list contains a copy of the data. Changing its contents does not change the data line's data.
|
Sets the entire contents of a data line. The length of
|
Fits a polynomial through a part of a data line. Please see DataLine.fit_polynom() for more details.
|
Fits a polynomial through a data line. Note For polynomials of degree 0 and 1 it's better to use DataLine.get_avg() and DataLine.get_line_coeffs() because they are faster.
|
Subtracts a polynomial from a part of a data line.
|
Subtracts a polynomial from a data line.
|
Calculate k-th largers peaks or valleys in a data line split into given number of sampling lengths. This is a general function that can be used as the base for various standard roughness quantities such as Rp, Rpm, Rv, Rvm or R3z. It is assumed the line is already levelled, the form removed, etc. See DataLine.count_peaks() for the description what is considered a peak. For larger thresholds and/or short lines some sampling lengths may not
contain the requested number of peaks. If there are any peaks at all,
the smallest peak height (even though it is not
|
Convenience macro doing gwy_serializable_duplicate() with all the necessary typecasting.
|
Gets pointer to data which the data line contains.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |