qat (version 0.74)

qat_call_set_nans: Set given values of a vector to NaN

Description

This function set a specified value of a vector to NaN.

Usage

qat_call_set_nans(measurement_vector, workflowlist_part, element = -999, time = NULL, height = NULL, lat = NULL, lon = NULL, vec1 = NULL, vec2 = NULL, vec3 = NULL, vec4 = NULL, resultlist = list(), resultlistcounter = 1)

Arguments

measurement_vector
The measurement vector, which should be tested
workflowlist_part
A list with the parameters of the check
element
Element-identifier for the result, which will be given back in the resultlist
time
A vector of time elements with the length of the measurement vector
height
A vector of height elements with the length of the measurement vector
lat
A vector of latitude elements with the length of the measurement vector
lon
A vector of longitude elements with the length of the measurement vector
vec1
An additional vector, which is named as vec1
vec2
An additional vector, which is named as vec2
vec3
An additional vector, which is named as vec3
vec4
An additional vector, which is named as vec4
resultlist
A list with results of tests
resultlistcounter
Number of elements of the resultlist

Value

Give back a list, which include the measurement vector with the replaced values.

Details

This function calls the described method, which are defined by the parameters in the workflowlist\_part. The possible called functions are qat\_analyse\_set\_nans\_1d, qat\_analyse\_set\_nans\_above\_1d and qat\_analyse\_set\_nans\_below\_1d. As a result the function will give back a list, which include the corrected measurement vector.

See Also

qat_analyse_set_nans_1d

Examples

Run this code
vec <- c(1,2,3,4,5,4,3,2,1)
workflowlist_part <- list(nan_value=4)
result <- qat_call_set_nans(vec, workflowlist_part)

Run the code above in your browser using DataLab