{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"< [Cruise Trajectory](CruiseTrajectory.ipynb) | [Index](Index.ipynb) | [Retrieve Dataset](RetrieveDataset.ipynb) >\n",
"\n",
"\n",
"\n",
""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## *cruise_variables(cruiseName)*\n",
"\n",
"Returns a dataframe containing all registered variables (at Simons CMAP) during the specified cruise."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"> **Parameters:** \n",
">> **cruiseName: string**\n",
">>
The official cruise name. If applicable, you may also use cruise \"nickname\" ('Diel', 'Gradients_1' ...).
A full list of cruise names can be retrieved using [cruise](Cruises.ipynb) method.\n",
"\n",
"\n",
">**Returns:** \n",
">> Pandas dataframe."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Example"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#!pip install pycmap -q #uncomment to install pycmap, if necessary\n",
"\n",
"import pycmap\n",
"\n",
"api = pycmap.API(token='')\n",
"api.cruise_variables('SCOPE_Falkor1') "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" \n",
"
\n",
"### SQL Statement\n",
"Here is how to achieve the same results using a direct SQL statement. Please refere to [Query](Query.ipynb) for more information."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"EXEC uspCruiseVariablesByName 'Cruise Official Name'
\n",
"\n",
"\n",
"**Example:**
\n",
"EXEC uspCruiseVariablesByName 'FK180310-1'
"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}