# Path: cotede/qctests/qctests.py
# def frozen_profile():
# def grey_list():
# def valid_speed():
# def gross_sensor_drift():
# def platform_identification():
# 
# Path: cotede/qctests/rate_of_change.py
# def rate_of_change(x):
#     if isinstance(x, ma.MaskedArray):
#         x[x.mask] = np.nan
#         x = x.data
# 
#     y = np.nan * np.atleast_1d(x)
#     y[1:] = np.diff(x)
# 
#     return y


import logging
import numpy as np
from numpy import ma
from .qctests import QCCheckVar
from .rate_of_change import rate_of_change
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst

"""

   Argo, test #12. (10C, 5PSU)

"""





module_logger = logging.getLogger(__name__)


class DigitRollOver(QCCheckVar):
    def set_features(self):

# Path: cotede/qctests/qctests.py
# def frozen_profile():
# def grey_list():
# def valid_speed():
# def gross_sensor_drift():
# def platform_identification():
# 
# Path: cotede/qctests/rate_of_change.py
# def rate_of_change(x):
#     if isinstance(x, ma.MaskedArray):
#         x[x.mask] = np.nan
#         x = x.data
# 
#     y = np.nan * np.atleast_1d(x)
#     y[1:] = np.diff(x)
# 
#     return y


# Path: cotede/qctests/digit_roll_over.py
import logging
import numpy as np
from numpy import ma
from .qctests import QCCheckVar
from .rate_of_change import rate_of_change

# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst

"""

   Argo, test #12. (10C, 5PSU)

"""





module_logger = logging.getLogger(__name__)


class DigitRollOver(QCCheckVar):
    def set_features(self):

        self.features = {"rate_of_change": rate_of_change(self.data[self.varname])}