Skip to content

Commit cde337f

Browse files
authored
Read Sentinel V specific data packets (#396)
Co-authored-by: ululi1970 Issue #390 Added a few Sentinel V specific code block readers. There are a few more in the documentation that I did not add (that are not in this test file), but I added "skip this many bytes" placeholders for if they're needed in the future. Also did a little cleanup and changed two ambiguous attribute names to something more readable (hence a lot of test files changed), and I added a hard stop to exit the forever loop problem. It may cause some partly corrupted files that would otherwise be readable to fail, but we'll see.
1 parent eb77887 commit cde337f

27 files changed

+408
-165
lines changed
100 KB
Binary file not shown.
12 Bytes
Binary file not shown.
12 Bytes
Binary file not shown.
12 Bytes
Binary file not shown.
12 Bytes
Binary file not shown.
12 Bytes
Binary file not shown.
12 Bytes
Binary file not shown.
Binary file not shown.
12 Bytes
Binary file not shown.

examples/data/dolfyn/test_data/RDI_withBT.dolfyn.log

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ root - INFO - id 512 offset 282
1414
root - INFO - id 768 offset 352
1515
root - INFO - id 1024 offset 422
1616
root - INFO - id 1536 offset 492
17-
root - INFO - Done: {'prog_ver': 51.41, 'inst_make': 'TRDI', 'inst_type': 'ADCP', 'rotate_vars': ['vel'], 'has_imu': 0, 'inst_model': 'Workhorse', 'beam_angle': 20, 'freq': 600, 'beam_pattern': 'convex', 'orientation': 'down', 'n_beams': 4, 'n_cells': 17, 'pings_per_ensemble': 1, 'cell_size': 1.0, 'blank_dist': 0.88, 'profiling_mode': 1, 'min_corr_threshold': 64, 'n_code_reps': 5, 'min_prcnt_gd': 0, 'max_error_vel': 2.0, 'sec_between_ping_groups': 0.5, 'coord_sys': 'earth', 'use_pitchroll': 'yes', 'use_3beam': 'yes', 'bin_mapping': 'yes', 'heading_misalign_deg': 0.0, 'magnetic_var_deg': 0.0, 'sensors_src': '01111101', 'sensors_avail': '00111101', 'bin1_dist_m': 2.09, 'transmit_pulse_m': 1.18, 'water_ref_cells': [1, 5], 'false_target_threshold': 50, 'transmit_lag_m': 0.24, 'bandwidth': 0, 'power_level': 255, 'serialnum': 18655}
17+
root - INFO - Done: {'firmware_ver': 51.41, 'inst_make': 'TRDI', 'inst_type': 'ADCP', 'rotate_vars': ['vel'], 'has_imu': 0, 'inst_model': 'Workhorse', 'beam_angle': 20, 'carrier_freq': 600, 'beam_pattern': 'convex', 'orientation': 'down', 'n_beams': 4, 'n_cells': 17, 'pings_per_ensemble': 1, 'cell_size': 1.0, 'blank_dist': 0.88, 'profiling_mode': 1, 'min_corr_threshold': 64, 'n_code_reps': 5, 'min_prcnt_gd': 0, 'max_error_vel': 2.0, 'sec_between_ping_groups': 0.5, 'coord_sys': 'earth', 'use_pitchroll': 'yes', 'use_3beam': 'yes', 'bin_mapping': 'yes', 'heading_misalign_deg': 0.0, 'magnetic_var_deg': 0.0, 'sensors_src': '01111101', 'sensors_avail': '00111101', 'bin1_dist_m': 2.09, 'transmit_pulse_m': 1.18, 'water_ref_cells': [1, 5], 'false_target_threshold': 50, 'transmit_lag_m': 0.24, 'bandwidth': 0, 'power_level': 255, 'serialnum': 18655}
1818
root - INFO - self._BB False
1919
root - INFO - self.cfgBB: {}
20-
root - INFO - taking data from pings 0 - 1721
21-
root - INFO - 1721 ensembles will be produced.
22-
2320
root - INFO - 17 ncells, not BB
2421
root - DEBUG - pos 0mb/1mb
2522

@@ -99,3 +96,6 @@ root - DEBUG - pos: 865, pos_: 0, nbyte: 138, k: 0, byte_offset: -1
9996
root - DEBUG - Trying to Read 512
10097
root - INFO - Reading code 0x200...
10198
root - INFO - Read Corr
99+
root - INFO - success!
100+
root - INFO - n 4: 768 0300
101+
root - DEBUG - pos: 935, pos_: 0, nbyte: 70, k: 0, byte_offset: -1

0 commit comments

Comments
 (0)