#!/usr/bin/env python # coding: utf-8 # In[1]: get_ipython().run_line_magic('matplotlib', 'inline') import pandas as pd import datetime as dt # # pull temperature at 1m depth, only the good data (when temperature_qc=0) # In[2]: url='http://www.neracoos.org/erddap/tabledap/B01_sbe37_all.csvp?time,temperature&depth=1&temperature_qc=0&time>=2017-03-13T00:00:00Z' # In[3]: df = pd.read_csv(url, parse_dates=True, index_col=0) # In[4]: df.plot() # In[5]: df.head() # In[6]: url='http://www.neracoos.org/erddap/tabledap/B01_sbe37_all.csvp?time,temperature' # In[7]: df = pd.read_csv(url, parse_dates=True, index_col=0) # In[8]: df.plot(); # In[9]: df.plot(ylim=(-10,40)); # In[10]: df['2007-12-01':'2008-06-01'].plot(ylim=(-10,40)); # In[11]: url='http://www.neracoos.org/erddap/tabledap/B01_sbe37_all.csvp?time,temperature&temperature_qc=0&depth=20.0' # In[12]: df = pd.read_csv(url, parse_dates=True, index_col=0) # In[13]: df.plot(); # In[ ]: