计算天文讲义 南京大学天文与空间科学学院.ppt

计算天文讲义 南京大学天文与空间科学学院.ppt

  1. 1、本文档共33页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
计算天文讲义 南京大学天文与空间科学学院

其它工具之三 — VRML VRML is one way to share three dimensional data. The primary advantage of VRML is that it can be transferred and viewed using the internet and free browser plug-ins. Virtual Reality Modeling Language虚拟现实模拟语言 优点: * 利用网络共享3维数据 * 浏览与平台无关 (PC, Mac, SGI, SUN) * 免费浏览插件 * 第二版包含 interactive capabilities * 文件可由纯文本编辑器产生 文件格式及编写: * 纯文本,但第一行须为 #VRML V2.0 utf8 * 文件后缀为.wrl或.vrml 编写工具: 1. Jot, Notepad, Emacs …… 2. 三维模拟工具如cosmoplayer, 3D Studio Max 3. Fortran 规则: The Box Shape Box { size 2.0 2.0 2.0 } The size line format is: size [width(x)] [height(y)] [depth(z)] The Cone Shape Cone { bottomRadius 1.0 height 2.0 side TRUE bottom TRUE } 等等等等 范例1:地球磁场 范例2:太阳系 (注:须下载IE插件Cosmoplayer后才能显示) 例子 #VRML V2.0 utf8 Group { children [ Shape { geometry Cone { bottomRadius 1.0 height 7.0 side TRUE bottom TRUE } } ] } 这是VRML文件的标志 先加入一个组节点,花括号 内的内容视为一个整体 定义组节点的孩子域 第一个孩子是一个形态节点 appearance Appearance { material Material {diffuseColor 1 0 0 } } 16. IDL速成及其它可视化工具简介 P. F. Chen Department of Astronomy Nanjing University July 2, 2000 IDL (Interactive Data Language) A complete computing environment for the interactive analysis and visualization of data. It integrates a powerful language with numerous mathematical analysis and graphical display techniques. It is a time-saving alternative to programming in Fortran or C. IDL特点 可交互式使用,亦可生成复杂的函数或程序; 运算可以数组为单位:如x(100), y(100)满足 y(i)=sin(x(i)) ,在IDL中可表示为y=sin(x); 直接编译、运行,及时反馈; 快速的多维图象显示及动画,易于诊断结果; 很多计算、统计程序(含Numerical Recipes); 与Fortran、C可相互调用。 重要的是它提供了一个控制、处理及绘图的软件发展平台 可生成独立的可执行文件 pro exam1 ;上一行可有可无 device,decomposed=0 !p.color=0 !p.background=255 x=findgen(51)/50.*3.14 y=sin(x) plot, x, y,xst=1,thick=5 y=y/1.2 oplot, x, y,psym=1 y=y/1.2 oplot, x, y,psym=2 y=y/1.2 oplot, x, y,linestyle=2 y=y/1.2 window,1,xs=600,ys=500 plot, x, y,psym=10,xr=[1.,2.5],yr=[0.3,0.5] end 运行方式 通常在IDL环境下运行,也可单独运行 (点击IDL图标for Windows;点击图标或运行idl or idlde for Unix or Linux) 1. 交互式 可直接输入,也可先敲.r 2. IDL程序

文档评论(0)

sunshaoying + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档