Trajectories

Contents

Trajectories#

Topography#

For some QC of trajectories, it can be useful to easily get access to the topography. This can be done with the argopy utility TopoFetcher:

from argopy import TopoFetcher
box = [-65, -55, 10, 20]
ds = TopoFetcher(box, cache=True).to_xarray()
../../_images/topography_sample.png

Combined with the fetcher property domain, it now becomes easy to superimpose float trajectory with topography:

from argopy import DataFetcher

fetcher = DataFetcher().float(2901623)
ds = TopoFetcher(fetcher.domain[0:4], cache=True).to_xarray()
fig, ax = fetcher.plot('trajectory', figsize=(10, 10))
ds['elevation'].plot.contourf(levels=np.arange(-6000,0,100), ax=ax, add_colorbar=False)
../../_images/trajectory_topography_sample.png

Note

The TopoFetcher can return a lower resolution topography with the stride option. See the argopy.TopoFetcher full documentation for all the details.