当前位置: 首页>>代码示例>>Python>>正文


Python AuxCoord.core_points方法代码示例

本文整理汇总了Python中iris.coords.AuxCoord.core_points方法的典型用法代码示例。如果您正苦于以下问题:Python AuxCoord.core_points方法的具体用法?Python AuxCoord.core_points怎么用?Python AuxCoord.core_points使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在iris.coords.AuxCoord的用法示例。


在下文中一共展示了AuxCoord.core_points方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_lazy_complex

# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import core_points [as 别名]
 def test_lazy_complex(self):
     raw_points = np.arange(12).reshape(4, 3)
     points = as_lazy_data(raw_points, raw_points.shape)
     coord = AuxCoord(points)
     self.assertTrue(is_lazy_data(coord.core_points()))
     result = AuxCoordFactory._nd_points(coord, (3, 2), 5)
     # Check we haven't triggered the loading of the coordinate values.
     self.assertTrue(is_lazy_data(coord.core_points()))
     self.assertTrue(is_lazy_data(result))
     expected = raw_points.T[np.newaxis, np.newaxis, ..., np.newaxis]
     self.assertArrayEqual(result, expected)
开发者ID:SciTools,项目名称:iris,代码行数:13,代码来源:test_AuxCoordFactory.py

示例2: test_real_set_lazy

# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import core_points [as 别名]
 def test_real_set_lazy(self):
     # Setting new lazy points does not make a copy.
     coord = AuxCoord(self.pts_real)
     new_pts = self.pts_lazy + 102.3
     coord.points = new_pts
     result = coord.core_points()
     self.assertEqualLazyArraysAndDtypes(result, new_pts)
开发者ID:dennissergeev,项目名称:iris,代码行数:9,代码来源:test_AuxCoord.py

示例3: test_real_set_real

# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import core_points [as 别名]
 def test_real_set_real(self):
     # Setting new real points does not make a copy.
     coord = AuxCoord(self.pts_real)
     new_pts = self.pts_real + 102.3
     coord.points = new_pts
     result = coord.core_points()
     self.assertArraysShareData(
         result, new_pts,
         'Points do not share data with the assigned array.')
开发者ID:dennissergeev,项目名称:iris,代码行数:11,代码来源:test_AuxCoord.py

示例4: test_lazy_points_realise

# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import core_points [as 别名]
 def test_lazy_points_realise(self):
     coord = AuxCoord(self.pts_lazy)
     real_points = coord.points
     result = coord.core_points()
     self.assertEqualRealArraysAndDtypes(result, real_points)
开发者ID:dennissergeev,项目名称:iris,代码行数:7,代码来源:test_AuxCoord.py

示例5: test_lazy_points

# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import core_points [as 别名]
 def test_lazy_points(self):
     coord = AuxCoord(self.pts_lazy)
     result = coord.core_points()
     self.assertEqualLazyArraysAndDtypes(result, self.pts_lazy)
开发者ID:dennissergeev,项目名称:iris,代码行数:6,代码来源:test_AuxCoord.py

示例6: test_real_points

# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import core_points [as 别名]
 def test_real_points(self):
     coord = AuxCoord(self.pts_real)
     result = coord.core_points()
     self.assertArraysShareData(
         result, self.pts_real,
         'core_points() do not share data with the internal array.')
开发者ID:dennissergeev,项目名称:iris,代码行数:8,代码来源:test_AuxCoord.py

示例7: test_lazy_points_realise

# 需要导入模块: from iris.coords import AuxCoord [as 别名]
# 或者: from iris.coords.AuxCoord import core_points [as 别名]
 def test_lazy_points_realise(self):
     coord = AuxCoord(self.pts_lazy)
     real_points = coord.points
     result = coord.core_points()
     self.assertIs(result, real_points)
开发者ID:cpelley,项目名称:iris,代码行数:7,代码来源:test_AuxCoord.py


注:本文中的iris.coords.AuxCoord.core_points方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。