dennissergeev / octant

Objective Cyclone Tracking ANalysis Tools
http://octant-docs.rtfd.io/
MIT License
6 stars 4 forks source link

track matching with octant #31

Open pst019 opened 4 years ago

pst019 commented 4 years ago

Hi, I would like to match the Octant tracks with tracks from the STARS list. The STARS list is stored as a pandas dataframe (see attached pickle file). Can I use the octant match_tracks function on this pandas dataframe for track matching?

STARS_list.zip

This is a short version of the python code: tr = TrackRun(t_dir) S= pd.read_pickle("STARS_list.pkl") tr.match_tracks(S)

dennissergeev commented 4 years ago

hey @pst019 is this list the same as Rojo-etal_2019.csv that you sent me before?

To match PMCTRACK tracks to STARS tracks using octant, you have to supply match_tracks() with a list of OctantTrack objects (which are a subclass of pandas.DataFrame). An example can be found here: https://github.com/dennissergeev/mc_era5/blob/master/code/obs_tracks_api.py#L30 and https://github.com/dennissergeev/mc_era5/blob/master/code/obs_tracks_api.py#L56

pst019 commented 4 years ago

Yes, it is the same list. I will try.