- 积分
 - 7833
 
	- 贡献
 -  
 
	- 精华
 
	- 在线时间
 -  小时
 
	- 注册时间
 - 2011-8-30
 
	- 最后登录
 - 1970-1-1
 
 
 
 
 
 
 | 
	
 
 
 楼主 |
发表于 2021-1-14 15:43:47
|
显示全部楼层
 
 
 
 
divergence 
metpy.calc.divergence(u, v, *, dx=None, dy=None, x_dim=- 1, y_dim=- 2)[source] 
Calculate the horizontal divergence of a vector. 
 
Parameters 
u ((…, M, N) xarray.DataArray or pint.Quantity) – x component of the vector 
 
v ((…, M, N) xarray.DataArray or pint.Quantity) – y component of the vector 
 
dx (pint.Quantity, optional) – The grid spacing(s) in the x-direction. If an array, there should be one item less than the size of u along the applicable axis. Optional if xarray.DataArray with latitude/longitude coordinates used as input. Keyword-only argument. 
 
dy (pint.Quantity, optional) – The grid spacing(s) in the y-direction. If an array, there should be one item less than the size of u along the applicable axis. Optional if xarray.DataArray with latitude/longitude coordinates used as input. Keyword-only argument 
观察其使用方法,好像当为xarray.DataArray格式时,dx,dy是不需要参数 
那么,请问pint.Quantity是个什么数据格式 
 |   
 
 
 
 |