3.5.13.3. test_dataset_get_at.py – Test get_temp() with at keyword and get_temp_u()

"""Test :meth:`~vacumm.data.misc.dataset.OceanDataset.get_temp` with ``at`` keyword and :meth:`~vacumm.data.misc.dataset.OceanDataset.get_temp_u`"""


# Inits
ncfile = "menor.nc"

# Imports
from vcmq import DS, data_sample

# Read data
ds = DS(data_sample(ncfile), 'mars', logger_level='critical')
uu = ds.get_u3d()
uv1 = ds.get_u3d(at='v')
uv2 = ds.get_u3d_v()

# For unittest
result = [
    ('assertNotEqual', [uu.mean(), uv1.mean()]), 
    ('assertEqual', [uv1.mean(), uv2.mean()]), 
    ('assertEqual', [uv1.id, "u3d_v"]), 
    ('assertEqual', [uv2.id, "u3d_v"]), 
]