From 623f86a73a3ed3134feae7daafd282ce0f62dae7 Mon Sep 17 00:00:00 2001 From: rallen-usgs Date: Mon, 30 Dec 2024 15:28:10 -0500 Subject: [PATCH] Update cdf2nc.py added further text to the screen output message about instrument orientation. Hopefully this is now more clear --- stglib/vec/cdf2nc.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/stglib/vec/cdf2nc.py b/stglib/vec/cdf2nc.py index 14987ef5..541a2b6a 100644 --- a/stglib/vec/cdf2nc.py +++ b/stglib/vec/cdf2nc.py @@ -188,8 +188,24 @@ def set_orientation(VEL): scname = "DOWN" headtype = VEL.attrs["VECHeadSerialNumber"][0:3] + body_orientation = "NA" + probe_orientation = "NA" + if headtype == "VEC": + body_orientation = "vertical" + if sc == "0": + probe_orientation = "DOWN" + elif sc == "1": + probe_orientation = "UP" + elif headtype == "VCH": + body_orientation = "horizontal" + if sc == "0": + probe_orientation = "UP" + elif sc == "1": + probe_orientation = "DOWN" + print( - f"Instrument reported {headtype} case with orientation status code {sc} -> z-axis positive {scname} at middle of deployment" + f"Instrument reported {headtype} case with orientation status code {sc} -> z-axis positive {scname} at middle of deployment \n + If configured correctly, this {body_orientation}ly orientated case therefore has the instrument probe head pointing {probe_orientation}" ) if userorient == "UP":