From cc9a3c0a43a6767f1f6ded888197c5f78051296d Mon Sep 17 00:00:00 2001 From: mhviola <108087458+mhviola@users.noreply.github.com> Date: Sun, 12 Oct 2025 15:47:20 -0700 Subject: [PATCH] Update read.py No NMEA data in my files, so using another line of metadata to get time --- ctd/read.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctd/read.py b/ctd/read.py index 0e834a7..fb77469 100644 --- a/ctd/read.py +++ b/ctd/read.py @@ -170,7 +170,7 @@ def _parse_seabird(lines: list, ftype: str) -> dict: # noqa: C901, PLR0912, PLR else: msg = "Latitude not recognized." raise ValueError(msg) - if "NMEA UTC (Time)" in line: + if "System UTC" in line: # ONLY change marisa made, CTD had no saved lat, lon, or time, so retrieving it from when file started writing. time = line.split("=")[-1].strip() # Should use some fuzzy datetime parser to make this more robust. time = datetime.datetime.strptime(