py_eddy_tracker.tracking.Correspondances¶
- class py_eddy_tracker.tracking.Correspondances(datasets, virtual=0, class_method=None, class_kw=None, previous_correspondance=None, memory=False)[source]¶
Bases:
list
Object to store correspondances And run tracking
Initiate tracking
- Parameters:
datasets (list(str)) – A sorted list of filename which contains eddy observations to track
class_method (class) – A class which tell how to track
class_kw (dict) – keyword argument to setup class
previous_correspondance (Correspondances) – A previous correspondance object if you want continue tracking
memory (bool) – identification file are load in memory before to be open with netcdf
Methods
Append object to the end of the list.
clear
Remove all items from list.
copy
Return a shallow copy of the list.
count
Return number of occurrences of value.
extend
Extend list by appending elements from the iterable.
Add in track object all the observations which aren't selected Returns: Unused Eddies
Generation id and incrementation
index
Return first index of value.
insert
Insert object before index.
Remove from correspondance table all association for shorter eddies than size_min
Merge all the correspondance in one array with all fields
pop
Remove and return item at index (default last).
Recense dead id to extend in virtual observation
remove
Remove first occurrence of value.
reverse
Reverse IN PLACE.
Remove from correspondance table all association for longer eddies than size_max
sort
Sort the list in ascending order and return None.
Storing correspondance in an array
Swap to next dataset
Run tracking
Attributes
To rethink
- ID_DTYPE = 'u4'¶
- N_DTYPE = 'u2'¶
- UINT32_MAX = 4294967295¶
- VIRTUAL_DTYPE = 'u1'¶
- get_unused_data(raw_data=False)[source]¶
Add in track object all the observations which aren’t selected Returns: Unused Eddies
- longer_than(size_min)[source]¶
Remove from correspondance table all association for shorter eddies than size_min
- property period¶
To rethink
Returns: period coverage by obs
- shorter_than(size_max)[source]¶
Remove from correspondance table all association for longer eddies than size_max