Commit f2e3849d authored by Marc-Antoine Drouin's avatar Marc-Antoine Drouin

Merge branch 'release/l2v1.0.0'

parents 50972144 ecfc2557
Pipeline #88471 passed with stage
in 29 minutes
......@@ -185,6 +185,16 @@ def main(conf_station, input_file, output_file, verbose, log_file):
data.alt_raw.values, data.temp_raw.values
)
# remove duplicated timestep
# ---------------------------------------------------------------------------------
duplicated = data.index.duplicated()
# remove timesteps from working and original dataset
data = data[np.logical_not(duplicated)]
rs_profile = rs_profile[np.logical_not(duplicated)]
logger.warning("remove %d duplicated timesteps", duplicated.sum())
# remove descent point of profile
# ---------------------------------------------------------------------------------
logger.info("removing descent data")
......
This diff is collapsed.
......@@ -102,6 +102,12 @@ EXE = MAIN_DIR / "gruan_raw_to_1a.py"
Path("v2.0.0") / "rs_0a_GRUAN_REU_M10_20200706_112021_V02.zip",
0,
),
# chaudron error L2 processing
(
"chaudron_l1.toml",
Path("v2.0.0") / "rs_0a_GRUAN_REU_M10_20191128_231547_V02.zip",
0,
),
],
)
def test_run_l1(conf, zip_in_file, ret_code):
......
......@@ -31,6 +31,7 @@ EXE = MAIN_DIR / "gruan_1a_to_2a.py"
("chaudron_l2.toml", "rs_1a_LchaudronIm10-gruan_v01_20191102_111549_120.nc"),
("chaudron_l2.toml", "rs_1a_GRUAN_REU_M10_20200901_231547_V02.nc"),
("chaudron_l2.toml", "rs_1a_GRUAN_REU_M10_20200706_112021_V02.nc"),
("chaudron_l2.toml", "rs_1a_GRUAN_REU_M10_20191128_231547_V02.nc"),
],
)
def test_run_l2(conf, in_file):
......
......@@ -45,6 +45,7 @@ K_TO_DEG = 273.15
("rs_2a_GRUAN_TRP_M10_20200723_111547_V02.nc"),
("rs_2a_LchaudronIm10-gruan_v01_20191102_111549_120.nc"),
("rs_2a_GRUAN_REU_M10_20200706_112021_V02.nc"),
("rs_2a_GRUAN_REU_M10_20191128_231547_V02.nc"),
],
)
def test_validation_qls(in_file):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment