%matplotlib inline
import intake
import matplotlib
import matplotlib.pyplot as plt
import dask
catalog_url = 'https://raw.githubusercontent.com/NicWayand/polar.pangeo.io-deploy/staging/deployments/polar.pangeo.io/image/catalog.yaml'
from dask.distributed import Client, progress
from dask_kubernetes import KubeCluster
cluster = KubeCluster(n_workers=4)
cluster
VBox(children=(HTML(value='<h2>KubeCluster</h2>'), HBox(children=(HTML(value='\n<div>\n <style scoped>\n .…
client = Client(cluster)
client
Client
|
Cluster
|
NSIDC_0081 = intake.Catalog(catalog_url).NSIDC_0081.to_dask()
NSIDC_0051 = intake.Catalog(catalog_url).NSIDC_0051.to_dask()
NSIDC_0079 = intake.Catalog(catalog_url).NSIDC_0079.to_dask()
plt.figure(figsize=(14,5))
NSIDC_0081.sel(time=slice('2015-01-01','2018-10-17')).extent.plot(label='NSIDC_0081')
NSIDC_0051.sel(time=slice('2015-01-01','2018-10-17')).extent.plot(label='NSIDC_0051')
NSIDC_0079.sel(time=slice('2015-01-01','2018-10-17')).extent.plot(label='NSIDC_0079')
plt.ylabel('Extent millions of km^2')
plt.legend()
<matplotlib.legend.Legend at 0x7f4cf01890b8>