예제 #1
0
파일: geoplot.py 프로젝트: yyqyu/pyIEM
    def fill_climdiv(self, data, **kwargs):
        """Fill climate divisions using provided data dictionary

        Args:
          data (dict): A dictionary of climate division IDs and values
          bins (optional[list]): a list of values for classification
          lblformat (optional[str]): a format specifier to use
          **kwargs (optional): other values
        """
        clidict = load_pickle_geo('climdiv.pickle')
        polygon_fill(self, clidict, data, **kwargs)
예제 #2
0
파일: geoplot.py 프로젝트: yyqyu/pyIEM
    def fill_cwas(self, data, **kwargs):
        """Add overlay of filled polygons for NWS Forecast Offices.

        Method adds a colorized overlay of NWS Forecast Offices based on a
        data dictionary of values provided. This method also places a color
        bar on the image.

        Args:
          data (dict): Dictionary of values with keys representing the 3 char
            or 4 char idenitifer for the WFO.  This assumes the 3 char sites
            are the K ones.
          labels (dict, optional): Optional dictionary that follows the
            ``data`` attribute, but hard codes what should be plotted as a
            label.
          bins (list, optional): List of increasing values to use as bins to
            determine color levels.
          lblformat (str, optional): Format string to use to place labels.
          cmap (matplotlib.cmap, optional): Colormap to use with ``bins``

        """
        cwas = load_pickle_geo('cwa.pickle')
        polygon_fill(self, cwas, data, **kwargs)
예제 #3
0
파일: geoplot.py 프로젝트: yyqyu/pyIEM
 def fill_states(self, data, **kwargs):
     """Add overlay of filled state polygons"""
     states = load_pickle_geo('us_states.pickle')
     polygon_fill(self, states, data, **kwargs)