def test_get_atmosphere_p(lwc_source_file): obj = LwcSource(lwc_source_file) expected = np.array([[1010, 1000, 990], [1020, 1010, 1000], [1030, 1020, 1010]]) assert_array_equal(obj.atmosphere[-1], expected)
def test_get_atmosphere_t(lwc_source_file): obj = LwcSource(lwc_source_file) expected = np.array([[282, 280, 278], [286, 284, 282], [284, 282, 280]]) assert_array_equal(obj.atmosphere[0], expected)
def test_append_data(lwc_source_file, key): lwc_source = LwcSource(lwc_source_file) lwc_source.append_results(LWC_OBJ.lwc, STATUS_OBJ.status, ERROR_OBJ.error) assert key in lwc_source.data.keys()
def test_get_atmosphere_p(lwc_source_file): obj = LwcSource(lwc_source_file) compare = np.array([[1010, 1000, 990], [1020, 1010, 1000], [1030, 1020, 1010]]) assert_array_equal(compare, obj.atmosphere[-1])
def test_get_atmosphere_t(lwc_source_file): obj = LwcSource(lwc_source_file) compare = np.array([[282, 280, 278], [286, 284, 282], [284, 282, 280]]) assert_array_equal(compare, obj.atmosphere[0])
def test_append_data(lwc_source_file, key): from cloudnetpy.products.lwc import _append_data lwc_source = LwcSource(lwc_source_file) _append_data(lwc_source, LWC_OBJ, STATUS_OBJ, ERROR_OBJ) assert key in lwc_source.data.keys()