get_filtered_data
Functions:
| Name | Description |
|---|---|
get_filtered_data |
Get filtered data from the dataset based on the specified variable name and filter type. |
Functions#
get_filtered_data #
get_filtered_data(
dataset: Dataset,
var_name: str,
filter_out: Literal["Bad", "Indeterminate"],
) -> tuple[np.ndarray, np.ndarray]
Get filtered data from the dataset based on the specified variable name and filter type. Args: dataset (xr.Dataset): The dataset containing the data. var_name (str): The name of the variable to filter. filter_out (Literal["Bad", "Indeterminate"]): The type of filter to apply. Returns: tuple[np.ndarray, np.ndarray]: A tuple containing the filtered data as a NumPy array and a mask indicating the filtered values.