NCL Website header

Array manipulators

array_append_record Attaches [appends] additional records [leftmost dimension] to a previously existing array.
conform Expands an array or scalar so that it conforms to the shape of the given variable.
conform_dims Expands an array or scalar so that it conforms to the shape of the given dimension sizes.
crossp3 Compute cross product of multiple vectors of length 3.
dim_gbits Unpacks bit chunks from the rightmost dimension of the input array.
epsZero Sets all values in input array to zero that are +/- a user supplied epsilon about zero.
get1Dindex_Collapse Returns a one dimensional array of subscript indices that DO NOT match the values contained in a user specified list.
get1Dindex_Exclude Returns a one dimensional array of subscript indices that DO NOT match the values contained in a user specified list.
getbitsone Unpacks one-bit chunks from the input array.
grid2triple Converts a two-dimensional grid with one-dimensional coordinate variables to an array where each grid value is associated with its coordinates.
ind_resolve Resolves a single list of indices to their multi-dimensional representation.
mask Masks a multi-dimensional array against another given a single mask value.
merge_levels_sfc Merges a multiple level variable with the corresponding surface variable.
ndtooned Converts a multi-dimensional array to a one-dimensional array.
onedtond Converts a one-dimensional array to a multi-dimensional array.
reshape Reshapes a multi-dimensional array to another multi-dimensional array.
reshape_ind Places values from a smaller one-dimensional array to a larger one-dimensional array, and reshapes it.
rm_single_dims Removes (squeezes) singleton (degenerate) dimensions from an array while preserving metadata.
sparse_matrix_mult Multiplies a sparse matrix with a dense matrix.
transpose Transposes a matrix and copies all attributes and coordinate variables.
where Performs array assignments based on a conditional array.