From 9ca69dc067bc598f2a2295ae6953a2db0e64270b Mon Sep 17 00:00:00 2001 From: shaunwbell Date: Tue, 10 Oct 2023 15:28:42 -0700 Subject: [PATCH] Wetlabs nat (#273) * Update sbe_parser.py instances with just T,C in sbe37 * Update wetlabs_parser.py --- src/EcoFOCIpy/io/wetlabs_parser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/EcoFOCIpy/io/wetlabs_parser.py b/src/EcoFOCIpy/io/wetlabs_parser.py index b420810..c8521f8 100644 --- a/src/EcoFOCIpy/io/wetlabs_parser.py +++ b/src/EcoFOCIpy/io/wetlabs_parser.py @@ -107,7 +107,7 @@ def engr2sci(self,cal_coef={}): def time_correction(self,offset=None,method=None): """ apply a time offset in seconds - To apply a temporal correction including drift, use method = None + To apply a temporal correction including drift, use method = 'linear' This method assumes the clock has been syncronized upon deployment.""" self.rawdata_df.index = self.rawdata_df.index + pd.Timedelta(seconds=offset) @@ -122,3 +122,6 @@ def lineartimecorr(x,deltaT,T0) : self.rawdata_df.index = self.rawdata_df.reset_index().apply(lambda x: lineartimecorr(x.date_time,deltaT,T0), axis=1) return (self.rawdata_df) + + def NaT_removal(self): + self.rawdata_df = self.rawdata_df.dropna()