pyearth.Earth 示例代码 您所在的位置:网站首页 polysphere下载 pyearth.Earth 示例代码

pyearth.Earth 示例代码

2023-03-10 11:31| 来源: 网络整理| 查看: 265

以下示例是关于python中包含Earth用法的示例代码,想了解Earth的具体用法?Earth怎么用?Earth使用的例子?那么可以参考以下10个相关示例代码来学习它的具体使用方法。

示例1: Bodies_vs_Mission.py开发语言: Python项目名称: chronos-pramantha代码行数: 21719venus['distance'] = 0.7 20venus['earth_obs'] = (False, 'Why go this far when you have a nice view in Low Earth Orbit?') 21venus['cel_body_obs'] = True 63asteroids['distance'] = 2.8 64asteroids['earth_obs'] = (False, 'Why go this far when you have a nice view in Low Earth Orbit?') 65asteroids['cel_body_obs'] = True 146beyond['distance'] = 50 147beyond['earth_obs'] = (False, 'Why go this far when you have a nice view in Low Earth Orbit?') 148beyond['cel_body_obs'] = (False, 'Do not travel so far to observe something that is closer.') 179dwarf['distance'] = 45 180dwarf['earth_obs'] = (False, 'Why go this far when you have a nice view in Low Earth Orbit?') 181dwarf['cel_body_obs'] = True 190titan['distance'] = 9.5 191titan['earth_obs'] = (False, 'Why go this far when you have a nice view in Low Earth Orbit?') 192titan['cel_body_obs'] = True 示例2: datum.py开发语言: Python项目名称: OpenINS代码行数: 41110 11class EarthDatum(object): 12 """ 29 """ 30 Constructor of Earth datum, inits the Earth elipsoid class 31 """ 42 Calculate normal gravity for defined latitude and height above 43 the Earth, dusing model of the Earth 44 142 143class EarthBase(EarthDatum): 144 """ 150 chosen Earth Datum. In other case you need subclass EathDatum and implement 151 Earth model math, specified for you Earth datum description. 152 """ 示例3: cards.py开发语言: Python项目名称: wizards-magic代码行数: 1851413 self.power = 2 414 self.info = "Doesn`t suffer from Fire and Earth spells. CAST: Whenever Demon casts Fire Bleed owner loses 1 Earth and receives 2 Fire elements." 415 self.cast = True 702 self.element = "air" 703 self.info = "Suffers no damage from Earth and Air spells. CAST: Casts Petrification on self, as effect turns to stone. In stone form Gargoyle reduces damage done to it by 2 . Owner loses 3 Air and 1 Earth." 704 self.level = 5 851 self.health = 12 852 self.info = "Adjacent owner creatures attack increases by 1, and if it`s Earth creature, by 2 whenever anyone casts Earth spell of summons Earth creature." 853 self.image = pygame.image.load('misc/cards/earth/dryad.gif') 1636 self.image = pygame.image.load('misc/cards/earth/earthquake.gif') 1637 self.info = "Hits each creature for 15 damage. Doesn't affect owner's creatures, if onwer's Earth > 12. Even the earth itself is a powerful weapon." 1638 Magic.__init__(self) 1639 def cast(self): 1640 earth_mana = self.player.earth_mana + self.level 1641 if earth_mana > 12: 示例4: cards.py开发语言: Python项目名称: wizards-magic代码行数: 196320#air_cards = list([c for c in air_cards_deck]) 21#earth_cards = list([c for c in earth_cards_deck]) 22#life_cards = list([c for c in life_cards_deck]) 438 self.power = 2 439 self.info = "Doesn`t suffer from Fire and Earth spells. CAST: Whenever Demon casts Fire Bleed owner loses 1 Earth and receives 2 Fire elements." 440 self.cast = True 880 self.health = 12 881 self.info = "Adjacent owner creatures attack increases by 1, and if it`s Earth creature, by 2 whenever anyone casts Earth spell of summons Earth creature." 882 self.image = pygame.image.load(current_folder+'/misc/cards/earth/dryad.gif') 1732 self.image = pygame.image.load(current_folder+'/misc/cards/earth/earthquake.gif') 1733 self.info = "Hits each creature for 15 damage. Doesn't affect owner's creatures, if onwer's Earth > 12. Even the earth itself is a powerful weapon." 1734 Magic.__init__(self) 1736 Magic.cast(self) 1737 earth_mana = self.player.earth_mana + self.level 1738 if earth_mana > 12: 示例5: AbcImport_connect_test.py开发语言: Python项目名称: alembic代码行数: 42762 MayaCmds.move( -5, 0.0, 0.0, r=1 ) 63 earth = MayaCmds.polySphere( radius=2, name="earth" )[0] 64 MayaCmds.select( moon, earth ) 75 MayaCmds.move(-5, 0.0, 0.0, r=1) 76 earth = MayaCmds.polySphere(radius=2, name="earth")[0] 77 MayaCmds.select(moon, earth) 187 # transform node earth 188 checkEqualTranslate(self, 'group1|earth', 'group3|earth', 4) 189 # transform node sun 209 self.failUnlessAlmostEqual( 210 MayaCmds.getAttr('earth.translateZ'), 4.7712, 4) 211 # transform node sun 345 MayaCmds.move( -2, 0.0, 0.0, r=1 ) 346 earth = MayaCmds.polyCube( sx=1, name="earth", ch=False )[0] 347 MayaCmds.select( moon, earth ) 示例6: earth.py开发语言: Python项目名称: orange-distribute代码行数: 13412==================================================== 3Multivariate Adaptive Regression Splines (``earth``) 4==================================================== 15.. _`Multivariate adaptive regression splines (MARS)`: http://en.wikipedia.org/wiki/Multivariate_adaptive_regression_splines 16.. _`Earth R package`: http://cran.r-project.org/web/packages/earth/index.html 17 21 >>> data = Orange.data.Table("housing") 22 >>> c = earth.EarthLearner(data, degree=2) 23 >>> print c 1087 1088#from Orange.core import EarthLearner as BaseEarthLearner, \ 1089# EarthClassifier as BaseEarthClassifier 1091# 1092#class _EarthLearner(BaseEarthLearner): 1093# """ An earth learner. 示例7: earth.py开发语言: Python项目名称: orange代码行数: 133915.. _`Multivariate adaptive regression splines (MARS)`: http://en.wikipedia.org/wiki/Multivariate_adaptive_regression_splines 16.. _`Earth R package`: http://cran.r-project.org/web/packages/earth/index.html 17 21 >>> data = Orange.data.Table("housing") 22 >>> c = Orange.regression.earth.EarthLearner(data, degree=2, terms=10) 23 >>> print c 875 data = Orange.data.Table("housing") 876 c = Orange.regression.earth.EarthLearner(data, degree=3) 877 Orange.regression.earth.plot_evimp(c.evimp()) 1086#from Orange.core import EarthLearner as BaseEarthLearner, \ 1087# EarthClassifier as BaseEarthClassifier 1088#from Orange.misc import member_set 1089# 1090#class _EarthLearner(BaseEarthLearner): 1091# """ An earth learner. 示例8: earth.py开发语言: Python项目名称: orange代码行数: 133915.. _`Multivariate adaptive regression splines (MARS)`: http://en.wikipedia.org/wiki/Multivariate_adaptive_regression_splines 16.. _`Earth R package`: http://cran.r-project.org/web/packages/earth/index.html 17 21 >>> data = Orange.data.Table("housing") 22 >>> c = Orange.regression.earth.EarthLearner(data, degree=2, terms=10) 23 >>> print c 875 data = Orange.data.Table("housing") 876 c = Orange.regression.earth.EarthLearner(data, degree=3) 877 Orange.regression.earth.plot_evimp(c.evimp()) 1086#from Orange.core import EarthLearner as BaseEarthLearner, \ 1087# EarthClassifier as BaseEarthClassifier 1088#from Orange.misc import member_set 1089# 1090#class _EarthLearner(BaseEarthLearner): 1091# """ An earth learner. 示例9: earth.py开发语言: Python项目名称: anntzer代码行数: 80621 22__all__ = ['EarthLocation'] 23 85 86class EarthLocationInfo(QuantityInfoBase): 87 """ 103 """ 104 Return a new EarthLocation instance which is consistent with the 105 input ``cols`` and has ``length`` rows. 733 'moon': consts.G * 7.34767309e22*u.kg, 734 'earth': consts.GM_earth} 735 _masses.update(masses) 750 distances = [(pos - positions[-1]).norm() for pos in positions[:-1]] 751 # Append distance from Earth's center for Earth's contribution. 752 distances.append(CartesianRepresentation(self.geocentric).norm()) 示例10: test_solar_system.py开发语言: Python项目名称: anntzer代码行数: 4119from astropy.coordinates.builtin_frames import GCRS 10from astropy.coordinates.earth import EarthLocation 11from astropy.coordinates.sky_coordinate import SkyCoord 55 mercury, jupiter, moon = planets['mercury'], planets['jupiter barycenter'], planets['moon'] 56 earth = planets['earth'] 57 60 if location is not None: 61 earth = earth.topos(latitude_degrees=location.lat.to_value(u.deg), 62 longitude_degrees=location.lon.to_value(u.deg), 65 skyfield_mercury = earth.at(skyfield_t).observe(mercury).apparent() 66 skyfield_jupiter = earth.at(skyfield_t).observe(jupiter).apparent() 67 skyfield_moon = earth.at(skyfield_t).observe(moon).apparent() 320 321def test_earth_barycentric_velocity_rough(): 322 # Check that a time near the equinox gives roughly the right result.

本文地址:https://www.itbaoku.cn/snippets/661447.html

上一篇:pyeapi.load_config 示例代码 下一篇:pyebset.BitSet 示例代码 相关源代码片段分享 pyearth.Earth 示例... gov.nasa.worldwi... cartopy.io.shape... com.earth2me.ess... com.earth2me.ess... gov.nasa.worldwi... com.earth2me.ess... com.earth2me.ess... gov.nasa.worldwi... 用R脚本将方法从OSM中提取出来... Migration代码示例 HttpHandler示例代码 xhprof示例代码 MobileNotificati... View示例代码 Routes代码示例 Module代码示例 Spectre示例代码 Rails Controller... OpenNLP Postagge... 示例代码ajax. 使用ngmessage的示例代码 DropzoneJS nodej... http请求代码示例 dplyr包上的示例代码。 tinyrefl生成的代码示例 Active Model代码示例 Active Record代码示... Wordpress插件示例代码。 C文件操作的示例代码 相关文章   如何在Google Colab...   代码示例   示例代码   Access和Google E...   WcsGetDefaultCo...   ABAddressBookCo...   C示例和代码   代码项目示例   MMC代码示例   好的Clojure代码示例?   CMFCMenuButton的...   变态的示例代码   Subversion的示例代码   可及性示例代码   jquery的示例和代码   提供的代码示例   ajax的示例代码   变态代码示例 相关教程 Google跟踪代码管理器教程 适用于初学者的Google跟踪代码管理器教程 - 从基本概念到高级概念,从简单而简单的步骤学习Goo... Google跟踪代码管理器教程 Entity Framework 教程 初学者Entity Framework教程 - 从基本到高级概念的简单简单步骤学习实体框架,其中包括... Entity Framework 教程 BabelJS 教程 BabelJS初学者教程 - 从基本到高级概念的简单简单步骤学习BabelJS,其中包括概述,环境设... BabelJS 教程 HTTP教程 初学者HTTP教程 - 从基本概念到高级概念,从简单易懂的步骤学习HTTP协议(超文本,传输,基于R... HTTP教程 Spring Boot教程 初学者的Spring Boot教程 - 从基本到高级概念的简单简单步骤学习Spring Boot,其... Spring Boot教程 Gerrit教程 Gerrit初学者教程 - 从简单和简单的步骤学习Gerrit,从基本到高级概念,包括概述,设置Gi... Gerrit教程


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有