Skip to content

Instantly share code, notes, and snippets.

@nicolasfauchereau
Created July 6, 2021 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolasfauchereau/4ae947e41b34b22a5ca78aa1a19b1fc4 to your computer and use it in GitHub Desktop.
Save nicolasfauchereau/4ae947e41b34b22a5ca78aa1a19b1fc4 to your computer and use it in GitHub Desktop.
url = 'http://www.bom.gov.au/climate/mjo/graphics/rmm.74toRealtime.txt'
mjo = pd.read_table(url, skiprows=2, sep=r'\s+', header=None)
mjo.columns = ['year', 'month', 'day', 'RMM1', 'RMM2', 'phase', 'amplitude', 'origin']
index = pd.to_datetime(mjo.loc[:,['year','month','day']])
mjo.index = index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment