-
Notifications
You must be signed in to change notification settings - Fork 3
/
example_volume.html
84 lines (65 loc) · 2.77 KB
/
example_volume.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Earth Demo</title>
<link rel="stylesheet" type="text/css" href="css/x3dom.css" />
<link rel="stylesheet" type="text/css" href="css/earthservergenericclient.css" />
<link rel="stylesheet" type="text/css" href="js-ext/jquery-ui/themes/base/jquery-ui.css">
<!--<script type="text/javascript" src="http://x3dom.org/download/dev/x3dom-full.js"></script>-->
<script type="text/javascript" src="js-ext/x3dom-full.js"></script>
<script type="text/javascript" src="js-ext/jquery-ui/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js-ext/jquery-ui/ui/jquery-ui.js"></script>
<script type="text/javascript" src="js/EarthServerClient_DailyBuild.js"></script>
<script type="text/javascript">
//Namespace
var EarthServerGenericClient = EarthServerGenericClient || {};
EarthServerGenericClient.MainScene.setTimeLog(false);
EarthServerGenericClient.MainScene.addLightToScene(false);
EarthServerGenericClient.MainScene.setBackground("0.8 0.8 0.95 0.4 0.5 0.85 0.3 0.5 0.85 0.31 0.52 0.85","0.9 1.5 1.57","0.8 0.8 0.95 0.4 0.5 0.85 0.3 0.5 0.85 0.31 0.52 0.85","0.9 1.5 1.57");
$(document).ready(function()
{
/*var volume = new EarthServerGenericClient.Model_Layers();
volume.setName("Volume");
volume.setURL("http://earthserver.services.meeo.it/petascope");
volume.setCoverage("MACC_Q_4326_1125");
volume.setCoverageTime("1203113");
volume.setLayers("1:7");
volume.setScale(1,1,1);
volume.setDataModifier(10000);*/
var volume = new EarthServerGenericClient.Model_Layers();
volume.setName("Volume");
volume.setURL("http://earthserver.services.meeo.it/petascope");
volume.setCoverage("MOD_RETRIEVEDTEMPERATUREPROFILEMEAN_4326_1");
volume.setCoverageTime("145893");
volume.setLayers("1:7");
volume.setScale(1,1,1);
//volume.setDataModifier(1000);
EarthServerGenericClient.MainScene.addModel(volume);
EarthServerGenericClient.MainScene.createScene('x3dScene','scene',1,0.8,1 );
EarthServerGenericClient.MainScene.createAxisLabels("Latitude","Height","Longitude");
});
document.onload = function()
{
var pb = new EarthServerGenericClient.createProgressBar("progressbar");
EarthServerGenericClient.MainScene.setProgressCallback(pb.updateValue);
pb = null;
EarthServerGenericClient.MainScene.createModels();
EarthServerGenericClient.MainScene.createUI('x3domUI');
};
</script>
</head>
<body id="body">
<div id="x3dom">
<div id="progressbar"></div>
<X3D id="x3d" showlog="false" showstat="false">
<scene id="x3dScene">
<group id="root">
<group id="scene" DEF='theScene'></group>
</group>
</scene>
</X3D>
<div id='x3domUI'></div>
</div>
</body>
</html>