Cruise Track Plot¶
-
plot_cruise_track
(cruise)¶ Plots cruise trajectory(s) on a geospatial map.
Note
This method requires a valid API key. It is not necessary to set the API key every time because the API properties are stored locally after being called the first time.
Parameters: - cruiseName: list of string
A list of official cruise names. If applicable, you may also use cruise “nickname” (‘Diel’, ‘Gradients_1’ …). A full list of cruise names can be retrieved using cruises() method.
Returns: This method has no returns.
Example:¶
#!pip install pycmap -q #uncomment to install pycmap, if necessary
# uncomment the lines below if the API key has not been registered on your machine, previously.
# import pycmap
# pycmap.API(token='<YOUR_API_KEY>')
from pycmap.viz import plot_cruise_track
plot_cruise_track(['KM1712', 'gradients_1'])