Python Fundamentals
- “Basic data types in Python include integers, strings, and floating-point numbers.”
- “Use
variable = valueto assign a value to a variable in order to record it in memory.” - “Variables are created on demand whenever a value is assigned to them.”
- “Use
print(something)to display the value ofsomething.” - Functions take zero or more parameters that send a value or variable to the code in the function to use.
- “Built-in functions are always available to use.”
Loading and Analyzing Argo Float Data
- “Import a library into a program using
import libraryname.” - “The
argopylibrary can load Argo float data over the internet from the GDAC” - “Use the
numpylibrary to work with arrays in Python.” - “The expression
array.shapegives the shape of an array.” - “Use
array[x]to select a single element from a 1D array.” - “Array indices start at 0, not 1.”
- “Use
numpy.mean(array),numpy.max(array), andnumpy.min(array)to calculate simple statistics.”
Visualizing Argo Data
- “Use the
pyplotmodule from thematplotliblibrary for creating simple visualisations.” - “Argopy has its own built in visaulisation functions”