Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
def load_noaa(filepath, skiprows=1, skipfooter=4, na_values=-999): | |
"""Loads a NOAA style downloaded dataset into a tidy pandas dataframe | |
Parameters | |
---------- | |
filepath : str | |
Filepath of dataset | |
skiprows : int, optional |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Simon's solution to plotting maps from xarray | |
''' | |
import cartopy | |
def cyclicContourf(ax, dataFrame, *args, **kwargs): | |
""" | |
make a filled contour by adding a cyclic value for longitude. | |
:param dataFrame: data frame | |
:param args: passsed straight through to contourf |