4.2.2. thuner.option.track
Classes for managing tracking related options.
- pydantic model thuner.option.track.BaseObjectOptions[source]
Bases:
BaseOptionsBase class for object options.
- Fields:
- Validators:
- field allowed_gap: int = 30
Allowed gap in minutes between consecutive times when tracking.
- Constraints:
gt = 0
lt = 360
- field attributes: Attributes | None = None
Options for object attributes.
- field hierarchy_level: int = 0
Level of the object in the hierachy. Higher level objects may depend on lower level objects.
- Constraints:
ge = 0
- field mask_options: MaskOptions = MaskOptions(type='MaskOptions', save=True, load=False)
Options for saving and loading masks.
- pydantic model thuner.option.track.DetectedObjectOptions[source]
Bases:
BaseObjectOptionsOptions for detected objects.
- Fields:
- Validators:
_check_mask»all fields
- field detection: DetectionOptions = DetectionOptions(type='DetectionOptions', method='steiner', altitudes=[], flatten_method=Retrieval(type='Retrieval', function=<function vertical_max>, keyword_arguments={}), min_area=10, threshold=None, threshold_type='minima')
Method used to detect the object.
- field tracking: TintOptions | MintOptions | None = TintOptions(type='TintOptions', name='tint', search_margin=np.float32(10.0), local_flow_margin=np.float32(10.0), global_flow_margin=np.float32(150.0), unique_global_flow=True, max_cost=np.float32(200.0), max_velocity_mag=np.float32(60.0), max_velocity_diff=np.float32(60.0), matched_object=None)
Options for tracking the object.
- pydantic model thuner.option.track.DetectionOptions[source]
Bases:
BaseOptionsOptions for object detection.
- Fields:
- Validators:
_check_threshold»all fields
- field flatten_method: Retrieval | None = Retrieval(type='Retrieval', function=<function vertical_max>, keyword_arguments={})
Method used to flatten the grid before detection if relevant.
- pydantic model thuner.option.track.GroupedObjectOptions[source]
Bases:
BaseObjectOptionsOptions for grouped objects.
- Fields:
- Validators:
_check_mask»all fields
- field grouping: GroupingOptions = GroupingOptions(type='GroupingOptions', method='graph', member_objects=[], member_levels=[], member_min_areas=[])
Options for grouping objects.
- field tracking: TintOptions | MintOptions | None = MintOptions(type='MintOptions', name='mint', search_margin=np.float32(25.0), local_flow_margin=np.float32(35.0), global_flow_margin=np.float32(150.0), unique_global_flow=True, max_cost=np.float32(200.0), max_velocity_mag=np.float32(60.0), max_velocity_diff=np.float32(60.0), matched_object=None, max_velocity_diff_alt=np.float32(25.0))
Options for tracking the object.
- pydantic model thuner.option.track.GroupingOptions[source]
Bases:
BaseOptionsOptions class for grouping lower level objects into higher level objects.
- Fields:
- Validators:
_check_list_length»all fields
- field member_levels: List[Annotated[int, FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0)])]] = []
Hierarchy levels of objects to group.
- pydantic model thuner.option.track.LevelOptions[source]
Bases:
BaseOptionsOptions for a tracking hierachy level. Objects identified at lower levels are used to define objects at higher levels.
- Fields:
- Validators:
initialize_object_lookup»all fields
- field objects: List[Annotated[DetectedObjectOptions | GroupedObjectOptions, FieldInfo(annotation=NoneType, required=True, discriminator='object_type')]] = []
Options for each object in the level.
- object_by_name(obj_name: str) BaseObjectOptions[source]
Return object options by name.
- pydantic model thuner.option.track.MaskOptions[source]
Bases:
BaseOptionsOptions for saving and loading masks. Note thuner uses .zarr format for saving masks, which is great for sparse, chunked arrays.
- Fields:
- Validators:
- pydantic model thuner.option.track.MintOptions[source]
Bases:
TintOptionsOptions for the MINT tracking algorithm.
- Fields:
- Validators:
- field local_flow_margin: float = 35.0
Margin in km around object for phase correlation.
- Constraints:
gt = 0
- field max_velocity_diff_alt: float = 25.0
Alternative max shift difference used by MINT.
- Constraints:
gt = 0
- pydantic model thuner.option.track.TintOptions[source]
Bases:
BaseOptionsOptions for the TINT tracking algorithm. See the following publications
- Fields:
- Validators:
- field global_flow_margin: float = 150.0
Margin in km around object for global flow vectors.
- Constraints:
gt = 0
- field local_flow_margin: float = 10.0
Margin in km around object for phase correlation.
- Constraints:
gt = 0
- field max_cost: float = 200.0
Maximum allowable matching cost. Units of km.
- Constraints:
gt = 0
lt = 1000.0
- field max_velocity_diff: float = 60.0
Maximum allowable shift difference. Units of m/s.
- Constraints:
gt = 0
- field max_velocity_mag: float = 60.0
Maximum allowable shift velocity magnitude. Units of m/s.
- Constraints:
gt = 0
- pydantic model thuner.option.track.TrackOptions[source]
Bases:
BaseOptionsOptions for the levels of a tracking hierarchy.
- Fields:
- Validators:
_validate_grouped_objects»all fieldsinitialize_object_lookup»all fields
- field levels: List[LevelOptions] = []
Hierachy levels.
- object_by_name(obj_name: str) BaseObjectOptions[source]
Return object options by name.