<commit_before>import pygrib
from pyiem.plot import MapPlot
import numpy as np
from pyiem.datatypes import distance

g = pygrib.open('p120m_2015061800f120.grb')

grb = g[1]
lats, lons = grb.latlons()

m = MapPlot(sector='conus',
            title=("Weather Prediction Center (WPC) "
                   "5 Day Forecasted Precipitation"),
            subtitle='7 PM 18 June thru 7 PM 23 June 2015')

m.contourf(lons, lats, distance(grb['values'], 'MM').value('IN'),
           np.arange(0, 7.6, 0.25), units='inches')

m.postprocess(filename='test.png')<commit_msg>26 Apr feature of WPC precip<commit_after>import pygrib
from pyiem.plot import MapPlot
import numpy as np
from pyiem.datatypes import distance

g = pygrib.open('/tmp/p168m_2016042600f168.grb')

grb = g[1]
lats, lons = grb.latlons()

m = MapPlot(sector='midwest', axisbg='tan',
            title=("Weather Prediction Center (WPC) "
                   "7 Day Forecasted Precipitation"),
            subtitle='7 PM 25 April thru 7 PM 2 May 2016')

m.contourf(lons, lats, distance(grb['values'], 'MM').value('IN'),
           np.arange(0, 4.6, 0.25), units='inches')

m.postprocess(filename='test.png')
{'fraction_non_alphanumeric': 0.13953488372093023, 'fraction_numerical': 0.059431524547803614, 'mean_word_length': 3.4864864864864864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2956090', 'n_tokens_mistral': 470, 'n_tokens_neox': 416, 'n_words': 105}