DCCL v3
ctd_message_units.proto
1 
2 import "dccl/option_extensions.proto";
3 
4 
5 message CTDMessage
6 {
7  option (dccl.msg) = { id: 123
8  max_bytes: 32
9  codec_version: 3
10  unit_system: "si" };
11 
12  required double temperature = 1 [(dccl.field) = { units { derived_dimensions: "temperature"
13  system: "celsius" }
14  min: 0
15  max: 30
16  precision: 1 }];
17 
18  required int32 depth = 2 [(dccl.field) = { units { derived_dimensions: "length"
19  system: "si" }
20  min: 0
21  max: 6000 }];
22 
23  required double salinity = 4 [(dccl.field) = { min: 10
24  max: 40
25  precision: 1
26  units { base_dimensions: "-"} }];
27 
28  required double sound_speed = 5 [(dccl.field) = { units { base_dimensions: "LT^-1" system: "si" }
29  min: 1450
30  max: 1550
31  precision: 1 }];
32 }
33 
34