!sudo apt-get update
!sudo apt-get install libproj-dev proj-data proj-bin --yes
!sudo apt-get install libgeos-dev --yes
!sudo apt-get install libgeos++-dev
# 1. Install Conda and make Conda packages available in current environment
!wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
!chmod +x Miniconda3-latest-Linux-x86_64.sh
!sudo bash ./Miniconda3-latest-Linux-x86_64.sh -b -f -p /usr/local
import sys
sys.path.append('/usr/local/lib/python3.9/site-packages/')
!sudo conda install -y -c conda-forge eccodes
%pip install eccodes scitools-iris iris_grib
!wget https://data.d4science.org/shub/E_MkNYODNnaGV0SjVXMGd4aXlDbFZsQ3o5bHI4eFpBVENMVFhNVnEwbFVHTEEzOS9JZmdXSi9iMjB1amtIVUJuYg==
!pip install oceans==0.8.1
import iris
import iris.quickplot as qplt
import numpy as np
from oceans.colormaps import cm
cubes = iris.load('input.nc')
surface = cubes[0].slices(['latitude', 'longitude']).next()
_ = qplt.contourf(surface, 25, extend='both', cmap=cm.zebra)