|
17 | 17 |
|
18 | 18 | import py_eddy_tracker_sample |
19 | 19 |
|
20 | | -from py_eddy_tracker.data import get_path, get_remote_sample |
| 20 | +from py_eddy_tracker.data import get_demo_path, get_remote_demo_sample |
21 | 21 | from py_eddy_tracker.observations.network import NetworkObservations |
22 | 22 | from py_eddy_tracker.observations.observation import EddiesObservations, Table |
23 | 23 | from py_eddy_tracker.observations.tracking import TrackEddiesObservations |
|
33 | 33 |
|
34 | 34 | # %% |
35 | 35 | # Eddies files (zarr or netcdf) could be loaded with ```load_file``` method: |
36 | | -eddies_collections = EddiesObservations.load_file(get_path("Cyclonic_20160515.nc")) |
| 36 | +eddies_collections = EddiesObservations.load_file(get_demo_path("Cyclonic_20160515.nc")) |
37 | 37 | eddies_collections.field_table() |
38 | 38 | # offset and scale_factor are used only when data is stored in zarr or netCDF4 |
39 | 39 |
|
|
69 | 69 | # - **observation_number** : Eddy temporal index in a trajectory, days starting at the eddy first detection |
70 | 70 | # - **cost_association** : result of the cost function to associate the eddy with the next observation |
71 | 71 | eddies_tracks = TrackEddiesObservations.load_file( |
72 | | - py_eddy_tracker_sample.get_path("eddies_med_adt_allsat_dt2018/Cyclonic.zarr") |
| 72 | + py_eddy_tracker_sample.get_demo_path("eddies_med_adt_allsat_dt2018/Cyclonic.zarr") |
73 | 73 | ) |
74 | 74 | # In this example some fields are removed (effective_contour_longitude,...) in order to save time for doc building |
75 | 75 | eddies_tracks.field_table() |
|
87 | 87 | # - previous_cost : Result of the cost function (1 is a good association, 0 is bad) with previous observation |
88 | 88 | # - next_cost : Result of the cost function (1 is a good association, 0 is bad) with next observation |
89 | 89 | eddies_network = NetworkObservations.load_file( |
90 | | - get_remote_sample( |
| 90 | + get_remote_demo_sample( |
91 | 91 | "eddies_med_adt_allsat_dt2018_err70_filt500_order1/Anticyclonic_network.nc" |
92 | 92 | ) |
93 | 93 | ) |
|
0 commit comments