Closed browniea closed 1 year ago
Updating info on this: Teledyne has an "auto" setting for their RiverPro and StreamPro ADCPs where a second "surface layer" profile is sampled in addition to the primary water track profile. Since little information other than the bare necessities are stored in the surface layer data, the update I'm adding stores this second profile is added to the primary dataset with an "_sl" tag (i.e. "vel_sl" and "range_sl").
Describe the bug:
The Teledyn river pro has a mode to set bin depths to "auto." This produces data with a variable bin size ex:
delta depth:
Columns 1 through 6
Columns 7 through 12
Columns 13 through 18
Columns 19 through 20
Dolfyn is calculating bin depth as if they are consistent and dropping data outside of the range calculated by values from the header file
dat['coords']['range'] = (cfg['bin1_dist_m'] + np.arange(self.ensemble['n_cells']) * cfg['cell_size'])