NCL Home > Documentation > Functions

General applied math

abs Returns the absolute value of numeric data.
acos Computes the inverse cosine of numeric types.
asin Computes the inverse sine of numeric types.
atan Computes the inverse tangent of numeric types.
atan2 Computes the inverse tangent of (y/x) for numeric types.
avg Computes the average of a variable regardless of dimensionality.
betainc Evaluates the incomplete beta function.
cancor Performs canonical correlation analysis between two sets of variables.
cdft_p Calculates the one-sided probability given a t-value and the degrees of freedom.
cdft_t Calculates the t-value given the one-sided probability and the degrees of freedom.
ceil Computes the smallest integer value larger than the input.
center_finite_diff Performs a centered finite difference operation on the rightmost dimension.
cfftb Performs a backward complex discrete fourier transform [Fourier Synthesis].
cfftf Performs a forward complex discrete fourier transform of a real periodic sequence.
cfftf_frq_reorder Reorders the data returned by cfftf.
chiinv Evaluates the inverse chi-squared distribution function.
cos Computes the cosine of numeric types.
cosh Computes the hyperbolic cosine of numeric types.
cumsum Calculates the cumulative sum.
decimalPlaces Truncates or rounds to the number of decimal places specified
dim_avg Computes the average of a variable's rightmost dimension at all other dimensions.
dim_avg_wgt Computes the weighted average of a variable's rightmost dimension at all other dimensions.
dim_avg_wgt_Wrap Computes the weighted average of a variable's rightmost dimension at all other dimensions and retains metadata.
dim_avg_Wrap Computes the average of a variable's rightmost dimension at all other dimensions and retains metadata.
dim_cumsum Calculates the cumulative sum along the rightmost dimension.
dim_cumsum_Wrap Calculates the cumulative sum along the rightmost dimension and retains meta data.
dim_max Finds the maximum of a variable's rightmost dimension at all other dimensions.
dim_median Computes the median of a variable's rightmost dimension at all other dimensions.
dim_min Finds the minimum of a variable's rightmost dimension at all other dimensions.
dim_num Calculates the number of True values of a variable's rightmost dimension at all other dimensions.
dim_pqsort Computes the permutation vector generated by sorting the n - 1th (rightmost) dimension.
dim_product Computes the product of a variable's rightmost dimension at all other dimensions.
dim_rmsd Computes the root-mean-square-difference between two variables' rightmost dimension at all other dimensions.
dim_rmsd_Wrap Computes the root-mean-square-difference between two variables' rightmost dimension at all other dimensions.
dim_rmvmean Calculates and removes the mean of the (rightmost) dimension at all other dimensions.
dim_rmvmean_Wrap Calculates and removes the mean of the (rightmost) dimension at all other dimensions and retains metadata.
dim_rmvmed Calculates and removes the median of the (rightmost) dimension at all other dimensions.
dim_standardize Calculates standardized anomalies of the rightmost dimension at all other dimensions.
dim_standardize_Wrap Calculates standardized anomalies of the rightmost dimension at all other dimensions.
dim_stat4 Computes the first four moments (average, variance, skewness, and kurtosis) of the rightmost dimension for all other dimensions.
dim_stddev Computes the population standard deviation of a variable's rightmost dimension at all other dimensions.
dim_stddev_Wrap Computes the population standard deviation of a variable's rightmost dimension at all other dimensions and retains metadata.
dim_sum Computes the arithmetic sum of a variable's rightmost dimension at all other dimensions.
dim_sum_wgt Computes the weighted sum of a variable's rightmost dimension at all other dimensions.
dim_sum_wgt_Wrap Computes the weighted sum of a variable's rightmost dimension at all other dimensions and retains metadata.
dim_sum_Wrap Computes the arithmetic sum of a variable's rightmost dimension at all other dimensions and retains metadata.
dim_variance Computes the population variance of a variable's rightmost dimension at all other dimensions.
dim_variance_Wrap Computes the population variance of a variable's rightmost dimension at all other dimensions and retains metadata.
dtrend Estimates and removes the least squares linear trend of the rightmost dimension from all grid points.
dtrend_msg Estimates and removes the least squares linear trend of the rightmost dimension from all grid points (missing values allowed).
dtrend_quadratic Estimates and removes the least squares quadratic trend of the rightmost dimension from all grid points.
equiv_sample_size Estimates the number of independent values of a series of correlated observations.
erf Evaluates the real error function.
erfc Evaluates the real complementary error function.
esacr Computes sample auto-correlations
esacv Computes sample auto-covariances
esccr Computes sample cross-correlations.
esccv Computes sample cross-covariances.
escorc Computes sample cross-correlations at lag 0 only.
escovc Computes sample cross-covariances at lag 0 only.
exp Computes the value of e (the base of natural logarithms) raised to the power of the input.
ezfftb Perform a Fourier synthesis from real and imaginary coefficients.
ezfftf Perform a Fourier analysis on a periodic sequence.
fabs Computes the absolute value of numeric types.
fft2db Performs a two-dimensional discrete backward Fourier transform (Fourier synthesis).
fft2df Performs a two-dimensional forward real discrete Fourier transform (i.e., Fourier analysis) of a real periodic array.
filwgts_lancos Calculates one-dimensional filter weights (deprecated).
filwgts_lanczos Calculates one-dimensional filter weights.
filwgts_normal Calculates one-dimensional filter weights based upon the normal (gaussian) distribution.
floor Computes the largest integer value smaller than the input.
fourier_info Performs fourier analysis on one or more periodic series.
ftest Applies F-test for variances and returns an estimate of the statistical significance.
gammainc Evaluates the incomplete gamma function.
inverse_matrix Computes the inverse of a general matrix using LU factorization.
linrood_latwgt Computes the latitudes and weights used by the Lin-Rood Model.
linrood_wgt Computes the weights used by the Lin-Rood Model.
local_max Determines the relative maxima for a 2-dimensional array.
local_min Determines the relative minima for a 2-dimensional array.
log Computes the natural log of a numeric type.
log10 Computes the log base 10 of a numeric type.
lspoly Calculates a set of coefficients for a weighted least squares polynomial fit to the given data.
max Computes the maximum value of a multi-dimensional array.
min Computes the minimum value of a multi-dimensional array.
NewCosWeight Performs cosine weighting on the given array.
product Computes the product of the input.
qsort Sorts a singly dimensioned array.
reg_multlin Performs basic multiple linear regression analysis.
regCoef Calculates the linear regression coefficient between two variables.
regcoef Calculates the linear regression coefficient between two variables.
regline Calculates the linear regression coefficient between two series.
rmInsufData Sets all instances (i.e. time) of a grid point to missing if a user-prescribed percentage of points is missing.
round Rounds a float or double variable to the nearest whole number.
rtest Determines the statistical significance of a linear correlation coefficient.
runave Calculates an unweighted running average.
runave_Wrap Calculates an unweighted running average and retains metadata.
simpeq Integrates a sequence of equally spaced points using Simpson's Rule.
simpne Integrates a sequence of unequally spaced points using Simpson's three-point formula.
sin Computes the sine of numeric types.
sindex_yrmo Calculates the Southern Oscillation Index given two series of year-month values.
sinh Computes the hyperbolic sine of numeric types.
smth9 Performs nine point local smoothing on one or more 2D grids.
smth9_Wrap Performs nine point local smoothing on one or more 2D grids and retains metadata.
snindex_yrmo Calculates the Southern Oscillation Index and the noise index given two series of year-month values.
solve_linsys Computes the solution to a real system of linear equations.
specx_anal Calculates spectra quantities of a series.
specx_ci Calculates the theoretical Markov spectrum and the lower and upper confidence curves.
specxy_anal Calculates cross spectra quantities of a series.
sqrt Computes the square root of its input.
SqrtCosWeight Performs square-root of the cosine weighting on the given array.
sqsort Sorts a singly dimensioned arrays of strings.
stat2 Calculates the first two moments of the given input.
stat4 Calculates estimates of the first four moments (mean, variance, skewness, and kurtosis) of the given input.
stat_medrng Calculates median, range, and mid-range of the given input.
stat_trim Calculates trimmed estimates of the first two moments of the given input.
stddev Calculates the sample standard deviation.
student_t Calculates the two-tailed probability of the Student-t distribution.
sum Sums the input.
tan Computes the tangent of numeric types.
tanh Computes the hyperbolic tangent of numeric types.
taper Applies split-cosine-bell tapering to one or more series.
ttest Returns an estimate of the statistical significance and, optionally, the t-values.
variance Computes the sample variance of all input points.
wave_number_spc Computes the total power spectrum as a function of latitudinal wave number.
wavelet Calculates the wavelet transform of a time series and significance levels.
wavelet_default Calculates the wavelet transform of a time series and significance levels.
wgt_areaave Calculates the area average of a quantity using weights.
wgt_areaave2 Calculates the area average of a quantity using two-dimensional weights.
wgt_areaave_Wrap Calculates the area average of a quantity using weights and retains metadata.
wgt_arearmse Calculates a weighted area root-mean-square-difference between two variables.
wgt_arearmse2 Calculates a weighted area root-mean-square-difference (rmse) between two variables using two-dimensional weights.
wgt_areasum2 Calculates the area sum (total) of a quantity using two-dimensional weights.
wgt_runave Calculates a weighted running average.
wgt_runave_Wrap Calculates a weighted running average and retains metadata.
wgt_volave Calculates the volume average of a quantity using weights.
wgt_volrmse Calculates a weighted volume root-mean-square-difference between two variables.
wk_smooth121 Performs a specialized 1-2-1 filter for Wheeler-Kiladis plots.
zonalAve Computes a zonal average of the input array.