Couplage dataset MIZAR » History » Version 6
Herve Ballans, 30/03/2015 16:25
1 | 1 | Herve Ballans | h1. Couplage dataset MIZAR |
---|---|---|---|
2 | 1 | Herve Ballans | |
3 | 1 | Herve Ballans | Sur une carte du ciel, il y a 2 possibilités pour coupler un jeu de données avec MIZAR : |
4 | 1 | Herve Ballans | |
5 | 1 | Herve Ballans | 1/ les services vectoriels GeoJSON sont définis dans Mizar et du coup, il suffit d’utilise l’API et de faire un « mizar.goTo("0:42:14.33 41:16:7.5") » pour visualiser l’ensemble des données attachées à Mizar sur cet endroit |
6 | 1 | Herve Ballans | |
7 | 1 | Herve Ballans | |
8 | 1 | Herve Ballans | 2/ définir un GeoJson et l’ajouter via l’API |
9 | 1 | Herve Ballans | |
10 | 3 | Herve Ballans | <pre><code class="javascript"> |
11 | 1 | Herve Ballans | var geoJsonDesc = { |
12 | 5 | Herve Ballans | "category": "Other", |
13 | 5 | Herve Ballans | "type": "GeoJSON", |
14 | 5 | Herve Ballans | "name": "Herschel testing layer", |
15 | 5 | Herve Ballans | "description": "Herschel response used for testing", |
16 | 5 | Herve Ballans | "data": { |
17 | 5 | Herve Ballans | "type": "JSON", |
18 | 5 | Herve Ballans | "url": "data/responseHerschel.json", |
19 | 5 | Herve Ballans | }, |
20 | 5 | Herve Ballans | "visible": true, |
21 | 5 | Herve Ballans | "pickable" : true |
22 | 4 | Herve Ballans | }; |
23 | 1 | Herve Ballans | var geoJsonLayer = mizar.addLayer(geoJsonDesc); |
24 | 3 | Herve Ballans | </code></pre> |
25 | 2 | Herve Ballans | |
26 | 1 | Herve Ballans | |
27 | 6 | Herve Ballans | Ci-dessous un exemple de fichier GeoJSON qui s'interface avec MIZAR : |
28 | 6 | Herve Ballans | |
29 | 6 | Herve Ballans | * "Feature" : contient un ensemble d'enregistrements (dans l'exemple seulement un) |
30 | 6 | Herve Ballans | * "geometry": la géométrie du FOV (c'est possible d'avoir un point également) |
31 | 6 | Herve Ballans | * "crs" : le référentiel (différent pour les planètes) |
32 | 6 | Herve Ballans | * "quicklook" : une quicklook qui apparaitra et s'incrustera dans le FOV (dans l'exemple un chat) |
33 | 6 | Herve Ballans | * "services" : pour permettre de télécharger le fichier |
34 | 6 | Herve Ballans | |
35 | 6 | Herve Ballans | Pour les métadonnées qui s'affiche dans la fenêtre propriétés : |
36 | 6 | Herve Ballans | * _identifier_ est le nom de l'objet qui s'affiche |
37 | 6 | Herve Ballans | |
38 | 6 | Herve Ballans | <pre> |
39 | 6 | Herve Ballans | { |
40 | 6 | Herve Ballans | "totalResults":16, |
41 | 6 | Herve Ballans | "type":"FeatureCollection", |
42 | 6 | Herve Ballans | "features":[ |
43 | 6 | Herve Ballans | { |
44 | 6 | Herve Ballans | "type":"Feature", |
45 | 6 | Herve Ballans | "geometry":{ |
46 | 6 | Herve Ballans | "coordinates":[ |
47 | 6 | Herve Ballans | [ |
48 | 6 | Herve Ballans | [ |
49 | 6 | Herve Ballans | 201.4894087095703, |
50 | 6 | Herve Ballans | -11.58621938850036 |
51 | 6 | Herve Ballans | ], |
52 | 6 | Herve Ballans | [ |
53 | 6 | Herve Ballans | 201.43411537287685, |
54 | 6 | Herve Ballans | -11.586219385808375 |
55 | 6 | Herve Ballans | ], |
56 | 6 | Herve Ballans | [ |
57 | 6 | Herve Ballans | 201.4341099981568, |
58 | 6 | Herve Ballans | -11.64038604212724 |
59 | 6 | Herve Ballans | ], |
60 | 6 | Herve Ballans | [ |
61 | 6 | Herve Ballans | 201.48941407878064, |
62 | 6 | Herve Ballans | -11.640386044832166 |
63 | 6 | Herve Ballans | ], |
64 | 6 | Herve Ballans | [ |
65 | 6 | Herve Ballans | 201.4894087095703, |
66 | 6 | Herve Ballans | -11.58621938850036 |
67 | 6 | Herve Ballans | ] |
68 | 6 | Herve Ballans | ] |
69 | 6 | Herve Ballans | ], |
70 | 6 | Herve Ballans | "type":"Polygon" |
71 | 6 | Herve Ballans | }, |
72 | 6 | Herve Ballans | "properties":{ |
73 | 6 | Herve Ballans | "crs":{ |
74 | 6 | Herve Ballans | "type":"name", |
75 | 6 | Herve Ballans | "properties":{ |
76 | 6 | Herve Ballans | "name":"equatorial.ICRS" |
77 | 6 | Herve Ballans | } |
78 | 6 | Herve Ballans | }, |
79 | 6 | Herve Ballans | "quicklook":"http://www.online-image-editor.com//styles/2014/images/example_image.png", |
80 | 6 | Herve Ballans | "AccessRef":"http://archives.esac.esa.int/hst/proxy?file_id=HST_08333_01_WFPC2_F336W_WF_DRZ", |
81 | 6 | Herve Ballans | "Type":"OBJECT,WFPC2,1,A2D7,F336W,,CAL", |
82 | 6 | Herve Ballans | "ProposalID":"8333", |
83 | 6 | Herve Ballans | "AssocID":"HST_08333_01_WFPC2_F336W_WF", |
84 | 6 | Herve Ballans | "TimeCalibration":"CALIBRATED", |
85 | 6 | Herve Ballans | "CreatorVersion":"2.5.5 (Aug 27, 2009)", |
86 | 6 | Herve Ballans | "DisplayRef":"NONE", |
87 | 6 | Herve Ballans | "TimeStart":51618.7147554, |
88 | 6 | Herve Ballans | "TimeExtent":1400, |
89 | 6 | Herve Ballans | "date-obs":"2000/03/15T17:22:04", |
90 | 6 | Herve Ballans | "DispersiveElement":"F336W", |
91 | 6 | Herve Ballans | "SpectralResolution":37.43, |
92 | 6 | Herve Ballans | "SpatialCalibration":"CALIBRATED", |
93 | 6 | Herve Ballans | "Ncombine":2, |
94 | 6 | Herve Ballans | "ProcessingType":"highly_processed", |
95 | 6 | Herve Ballans | "Dec":-11.6150752851, |
96 | 6 | Herve Ballans | "SpectralStart":314.22, |
97 | 6 | Herve Ballans | "Score":0.9999929666519165, |
98 | 6 | Herve Ballans | "PosAngle":0, |
99 | 6 | Herve Ballans | "TimeStop":51618.7325795, |
100 | 6 | Herve Ballans | "TargetName":"POX186", |
101 | 6 | Herve Ballans | "Collection":"HST", |
102 | 6 | Herve Ballans | "CoordRefFrame":"ICRS", |
103 | 6 | Herve Ballans | "Creator":"Space Telescope - European Coordinating Facility", |
104 | 6 | Herve Ballans | "Mode":"IMAGE,BROADBANDFILTER", |
105 | 6 | Herve Ballans | "SpectralResPower":8.894737243652344, |
106 | 6 | Herve Ballans | "FluxCalibration":"CALIBRATED", |
107 | 6 | Herve Ballans | "Publisher":"Space Telescope - European Coordinating Facility", |
108 | 6 | Herve Ballans | "Naxes":2, |
109 | 6 | Herve Ballans | "SpectralLocation":332.93, |
110 | 6 | Herve Ballans | "SpectralExtent":37.41999999999996, |
111 | 6 | Herve Ballans | "Category":"SCIENCE", |
112 | 6 | Herve Ballans | "CoordProjection":"TAN", |
113 | 6 | Herve Ballans | "PIName":"CORBIN MICHAEL", |
114 | 6 | Herve Ballans | "TargetDescription":"GALAXY;PROTOGALAXY", |
115 | 6 | Herve Ballans | "FovRef":"hla_sia_WFPC2_22_135517968223", |
116 | 6 | Herve Ballans | "CreatorDID":"HST_08333_01_WFPC2_F336W_WF", |
117 | 6 | Herve Ballans | "SpectralStop":351.64, |
118 | 6 | Herve Ballans | "ProposalTitle":"Pox 186: A Nearby Protogalaxy?", |
119 | 6 | Herve Ballans | "Instrument":"WFPC2", |
120 | 6 | Herve Ballans | "identifier":"HST_08333_01_WFPC2_F336W_WF", |
121 | 6 | Herve Ballans | "TimeLocation":51618.72366745, |
122 | 6 | Herve Ballans | "TelescopeName":"HST/HLA", |
123 | 6 | Herve Ballans | "Ra":201.462095196 |
124 | 6 | Herve Ballans | }, |
125 | 6 | Herve Ballans | "services":{ |
126 | 6 | Herve Ballans | "download":{ |
127 | 6 | Herve Ballans | "mimetype":"image/fits", |
128 | 6 | Herve Ballans | "url":"http://archives.esac.esa.int/hst/proxy?file_id=HST_08333_01_WFPC2_F336W_WF_DRZ" |
129 | 6 | Herve Ballans | } |
130 | 6 | Herve Ballans | } |
131 | 6 | Herve Ballans | } |
132 | 6 | Herve Ballans | ] |
133 | 6 | Herve Ballans | } |
134 | 6 | Herve Ballans | </pre> |
135 | 1 | Herve Ballans | |
136 | 6 | Herve Ballans | Ce fichier donne le résultat suivant par simple drag&drop dans MIZAR : |
137 | 6 | Herve Ballans | |
138 | 6 | Herve Ballans | !Exemple_polygon_GeoJSON.png! |