MeteoInfoLab的georead函数提供了读取shape文件.image文件(JPG.PNG等,需要有相应的地理定位文件)文件生成图层的功能(事实上shaperead也是同样的功能,不过函数名太过具体).对于Polygon图层可以设置其颜色透明度,可以用makecolors函数生成颜色列表,函数中设置参数alpha(255是不透明,0是完全透明).在contourfm函数中设置edgecolor参数可以绘制颜色区域的边框.脚本程序: f = addfile('D:/Temp/GrADS/
程序如下: # -*- coding: utf-8 -*- """ Created on Sat Oct 31 17:36:56 2015 """ import logging from time import time from numpy.random import RandomState import matplotlib.pyplot as plt import matplotlib.image as mpimg from sklearn