本文整理汇总了Python中nansat.Nansat.get_border方法的典型用法代码示例。如果您正苦于以下问题:Python Nansat.get_border方法的具体用法?Python Nansat.get_border怎么用?Python Nansat.get_border使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nansat.Nansat
的用法示例。
在下文中一共展示了Nansat.get_border方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Nansat
# 需要导入模块: from nansat import Nansat [as 别名]
# 或者: from nansat.Nansat import get_border [as 别名]
#n = Nansat(iPath + fileName)
# list bands and georeference of the object
print n
# get dictionary with all bands metadata
print n.bands()
# get size of the object (Y and X dimensions, to follow Numpy style)
print n.shape()
# get list with coordinates of the object corners
print n.get_corners()
# get lists with coordinates of the object borders
print n.get_border()
raw_counts = n[1]
inc_angle = n[2]
#~ sigma0 = n[3]
sigma0 = raw_counts**2.0 * sin(deg2rad(inc_angle))
sigma0 = 10*log10(sigma0)
n.add_band(bandID=4, array=sigma0)
# 1. Remove speckle noise (using Lee-Wiener filter)
speckle_filter('wiener', 7)
# Reprojected image into Lat/Lon WGS84 (Simple Cylindrical) projection
# 1. Cancel previous reprojection