trajan.trajectory_dict_to_dataset#
- trajan.trajectory_dict_to_dataset(trajectory_dict, variable_attributes=None, global_attributes=None)[source]#
Create a CF-compatible trajectory file from dictionary of drifter positions
Trajectory_dict shall have the following structure:
{'buoy1_name': { time0: {'lon': lon0, 'lat': lat0, 'variable1': var1_0, ... 'variableM': varM_0}, time1: {'lon': lon1, 'lat': lat1, 'variable1': var1_1, ... 'variableM': varM_1}, ... timeN: {'lon': lonN, 'lat': latN, 'variable1': var1_N, ... 'variableM': varM_N}}, {'buoy2_name': { ...