<commit_before># Output the 12z morning low temperature

import os, random
import iemdb
import iemplot

import mx.DateTime
now = mx.DateTime.now()

IEM = iemdb.connect('iem', bypass=True)
icursor = IEM.cursor()

sql = """
select station, 
  x(geom) as lon, y(geom) as lat, 
  max_tmpf as high, network
from summary_%s
WHERE day = 'TODAY' and max_tmpf > -40 
and network in ('IA_ASOS', 'AWOS', 'IL_ASOS','MO_ASOS','KS_ASOS',
    'NE_ASOS','SD_ASOS','MN_ASOS','WI_ASOS')
""" % (now.year, )

lats = []
lons = []
vals = []
valmask = []
labels = []
icursor.execute(sql)
for row in icursor:
  lats.append( row[2] )
  lons.append( row[1] )
  vals.append( row[3] )
  labels.append( row[0] )
  valmask.append( row[4] in ['AWOS', 'IA_ASOS'] )


cfg = {
 'wkColorMap': 'BlAqGrYeOrRe',
 '_showvalues'        : True,
 '_valuemask'         :   valmask,
 'lbTitleString'    : 'F',
 '_format'            : '%.0f',
 '_title'             : "Iowa ASOS/AWOS  High Temperature",
 '_valid'             : "%s" % (now.strftime("%d %b %Y %-I:%M %p"), ),
 '_labels'            : labels
}
# Generates tmp.ps
tmpfp = iemplot.simple_contour(lons, lats, vals, cfg)

pqstr = "plot ac %s summary/iowa_asos_high.png iowa_asos_high.png png" % (
        now.strftime("%Y%m%d%H%M"), )
iemplot.postprocess(tmpfp, '')
#iemplot.makefeature(tmpfp)
<commit_msg>actually need to insert something<commit_after># Output the 12z morning low temperature

import os, random
import iemdb
import iemplot

import mx.DateTime
now = mx.DateTime.now()

IEM = iemdb.connect('iem', bypass=True)
icursor = IEM.cursor()

sql = """
select station, 
  x(geom) as lon, y(geom) as lat, 
  max_tmpf as high, network
from summary_%s
WHERE day = 'TODAY' and max_tmpf > -40 
and network in ('IA_ASOS', 'AWOS', 'IL_ASOS','MO_ASOS','KS_ASOS',
    'NE_ASOS','SD_ASOS','MN_ASOS','WI_ASOS')
""" % (now.year, )

lats = []
lons = []
vals = []
valmask = []
labels = []
icursor.execute(sql)
for row in icursor:
  lats.append( row[2] )
  lons.append( row[1] )
  vals.append( row[3] )
  labels.append( row[0] )
  valmask.append( row[4] in ['AWOS', 'IA_ASOS'] )


cfg = {
 'wkColorMap': 'BlAqGrYeOrRe',
 '_showvalues'        : True,
 '_valuemask'         :   valmask,
 'lbTitleString'    : 'F',
 '_format'            : '%.0f',
 '_title'             : "Iowa ASOS/AWOS  High Temperature",
 '_valid'             : "%s" % (now.strftime("%d %b %Y %-I:%M %p"), ),
 '_labels'            : labels
}
# Generates tmp.ps
tmpfp = iemplot.simple_contour(lons, lats, vals, cfg)

pqstr = "plot ac %s summary/iowa_asos_high.png iowa_asos_high.png png" % (
        now.strftime("%Y%m%d%H%M"), )
iemplot.postprocess(tmpfp, pqstr)
#iemplot.makefeature(tmpfp)

{'fraction_non_alphanumeric': 0.17423957942170484, 'fraction_numerical': 0.007510326699211416, 'mean_word_length': 3.43261231281198, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '750685', 'n_tokens_mistral': 1111, 'n_tokens_neox': 1071, 'n_words': 239}