详细的python basemap中各函数的所有参量注释
来源:互联网 发布:ds数据精灵注册机 编辑:程序博客网 时间:2024/06/07 23:49
所有函数的参量在另一篇文章中
#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Fri Dec 8 22:22:53 2017@author: chenze"""import matplotlib.pyplot as pltimport numpy as npfrom mpl_toolkits.basemap import Basemapfrom netCDF4 import Dataset as ncfile'''path1='/home/chenze/practice/'nc=ncfile(path1+'nws_precip_1day_20171203_netcdf/nws_precip_1day_20171130_conus.nc','r')print(nc)data=nc.variables['observation']obs=data[:]print(obs)'''m=Basemap(projection='mill',lon_0=-105.,lat_0=90.,lat_ts=60.,\ llcrnrlat=25.,urcrnrlat=50.,\ llcrnrlon=-118.,urcrnrlon=-60.,\ rsphere=6371200.,resolution='l',area_thresh=10000)#m.drawcounties() 这是啥?'''m.drawcounties(linewidth=0.1, linestyle='solid', color='k',\ antialiased=1, facecolor='none', ax=None, zorder=None, drawbounds=False)#Draw county boundaries in US. The county boundary shapefile originates with # the NOAA Coastal Geospatial Data Project'''m.drawcountries(linewidth=3.0,color='k')'''m.drawcountries(linewidth=0.5, linestyle='solid', color='k',\ antialiased=1, ax=None, zorder=None)'''m.drawcoastlines() '''底图图1()m.drawcoastlines(linewidth=1.0, linestyle='solid', color='k',\ antialiased=1, ax=None, zorder=None)--->>>画地图轮廓线'''m.drawlsmask(land_color='coral',ocean_color='aqua')#陆地,海洋的颜色'''底图(2) --->填充海洋陆地颜色m.drawlsmask(land_color='0.8', ocean_color='w', lsmask=None,\ lsmask_lons=None, lsmask_lats=None, lakes=True, resolution='l',\ grid=5, **kwargs)# Draw land-sea mask image.'''#m.bluemarble()'''底图(3)Draw the NASA ‘Blue Marble’ image '''m.drawmapboundary(color='k', linewidth=1.0, fill_color=None, zorder=None, ax=None)# draw boundary around map projection region, optionally filling interior of region.m.drawrivers(linewidth=1.0, linestyle='solid', color='b', antialiased=1,\ ax=None, zorder=None)# Draw major rivers.m.drawstates(linewidth=0.5, linestyle='solid', color='k', antialiased=1, \ ax=None, zorder=None)# Draw state boundaries in Americas.#m.fillcontinents'''m.fillcontinents(color='0.8', lake_color=None, ax=None, zorder=None, alpha=None)''' # Fill continents.''' m. drawmapscale(lon, lat, lon0, lat0, length, barstyle='simple',\ units='km', fontsize=9, yoffset=None, labelstyle='simple',\ fontcolor='k', fillcolor1='w', fillcolor2='k', ax=None, format='%d', \ zorder=None, linecolor=None, linewidth=None)# Draw a map scale at lon,lat of length length representing distance in the map projection coordinates at lon0,lat0 '''# draw parallels.parallels = np.arange(0.,90,10.)m.drawparallels(parallels,labels=[1,0,0,0],fontsize=10)# draw meridiansmeridians = np.arange(180.,360.,10.)m.drawmeridians(meridians,labels=[0,0,0,1],fontsize=10)''' drawmeridians(meridians, color='k', textcolor='k', linewidth=1.0,\ zorder=None, dashes=[1, 1], labels=[0, 0, 0, 0], labelstyle=None, fmt='%g', \ xoffset=None, yoffset=None, ax=None, latmax=None, **text_kwargs)# Draw and label meridians (longitude lines) for values (in degrees) given in the sequence meridians. drawparallels(circles, color='k', textcolor='k', linewidth=1.0, zorder=None,\ dashes=[1, 1], labels=[0, 0, 0, 0], labelstyle=None, fmt='%g', xoffset=None,\ yoffset=None, ax=None, latmax=None, **text_kwargs)# Draw and label parallels (latitude lines) for values (in degrees) given in the sequence circles. '''plt.show()
阅读全文
0 0
- 详细的python basemap中各函数的所有参量注释
- python basemap 中一些函数括号内值的含义与用法
- 函数的参量不能和变量同名
- 【利用python进行数据分析-学习记录】python-matplotlib中Basemap插件的安装
- Python中range函数的详细用法
- 编写函数strdel,参量是字符串string, 和字符character。删除string中第一次出现的character,最后返回string。
- 完整的python basemap 选nc特定区域图
- 对一个vim 函数的详细注释。
- Eclipse中删除所有注释的正则
- Python中常用的注释
- MFC中菜单的应用(注释详细)
- MFC中菜单的应用(注释详细)
- Python所有的内置函数
- C++ 函数指针(十)--函数参量中带有指针函数
- BP神经网络以及在手写数字分类中python代码的详细注释
- js setTimeout携带局部参量的方法
- 编写函数strndel,参量是一个字符串string和两个整数start、length。在string中删除start开始的length个字符,最后返回string。
- Python中sum函数的详细用法说明
- 文件读写
- 蓝桥杯——Java(基础练习)
- Wannafly挑战赛5 A珂朵莉与宇宙 前缀和+枚举平方数
- HTML5--下拉框联动
- Jenkins使用IOS打包问题(二)
- 详细的python basemap中各函数的所有参量注释
- 图像处理基本算法(整理)
- tomcat中文乱码问题
- 图论 重写拓扑排序+关键路径
- Pytorch图像分割BUG心得汇总(一)
- 个人总结59
- tomcat启动时报错Invalid byte tag in constant pool: 15
- HTML5--(option)实现级联下拉列表
- RcyclerView 简单用法