@@ -110,32 +110,49 @@ export default class Aladin extends React.Component {
110
110
fov : 0.5 ,
111
111
} )
112
112
113
- // PRIVATE RELEASES
114
- // ----------------------------------------------------------
115
- if ( Array . isArray ( this . props . userGroups ) && this . props . userGroups . includes ( 'dp02' ) ) {
116
- // LSST DP0.2 IRG HIPS IMAGE
117
- this . aladin . setImageSurvey ( this . aladin . createImageSurvey (
118
- "LSST_DP02_IRG_LIneA" ,
119
- "LSST DP0.2 IRG at LIneA" ,
120
- "https://datasets.linea.org.br/data/releases/lsst/dp02/images/hips/" ,
121
- "equatorial" ,
122
- ) , { imgFormat : 'hips' } )
123
- }
124
-
125
-
126
-
127
113
// PUBLIC RELEASES
128
114
// ----------------------------------------------------------
129
115
// DES DR2 IRG HIPS IMAGE
130
116
// https://aladin.cds.unistra.fr/AladinLite/doc/API/#image-layers
131
117
// https://aladin.cds.unistra.fr/AladinLite/doc/API/
132
- this . aladin . setImageSurvey ( this . aladin . createImageSurvey (
118
+ // this.aladin.setImageSurvey(this.aladin.createImageSurvey(
119
+ // "DES_DR2_IRG_LIneA",
120
+ // "DES DR2 IRG at LIneA",
121
+ // "https://datasets.linea.org.br/data/releases/des/dr2/images/hips/",
122
+ // "equatorial",
123
+ // ), { imgFormat: 'hips', requestCredentials: 'include', requestMode: 'cors' })
124
+
125
+ const des_dr2 = this . aladin . createImageSurvey (
133
126
"DES_DR2_IRG_LIneA" ,
134
127
"DES DR2 IRG at LIneA" ,
135
128
"https://datasets.linea.org.br/data/releases/des/dr2/images/hips/" ,
136
129
"equatorial" ,
137
- ) , { imgFormat : 'hips' } )
130
+ )
131
+ this . aladin . setImageSurvey ( des_dr2 , { imgFormat : 'hips' , requestCredentials : 'include' , requestMode : 'cors' } )
138
132
133
+
134
+ // Adiciona a imagem mas não seleciona como imagem principal
135
+ // this.aladin.addNewImageLayer(A.HiPS(
136
+ // "https://datasets.linea.org.br/data/releases/des/dr2/images/hips/",
137
+ // {
138
+ // name: "DES DR2 IRG at LIneA",
139
+ // imgFormat: 'jpg',
140
+ // requestCredentials: 'include',
141
+ // requestMode: 'cors'
142
+ // // "DES DR2 IRG at LIneA",
143
+ // // "equatorial",
144
+ // }
145
+ // ))
146
+
147
+ // this.aladin.setImageSurvey(this.aladin.createImageSurvey(
148
+ // "DES_DR2_IRG_LIneA",
149
+ // "DES DR2 Teste Credentials",
150
+ // "https://skyviewer-dev.linea.org.br/data/releases/des/dr2/images/hips/",
151
+ // "equatorial",
152
+ // ), { imgFormat: 'hips', requestCredentials: 'include', requestMode: 'cors' })
153
+
154
+ // PUBLIC CATALOGS
155
+ // ----------------------------------------------------------
139
156
// DES DR2 Catalog HIPScat/HATS
140
157
// https://aladin.cds.unistra.fr/AladinLite/doc/API/examples/catalog-hips-filter/
141
158
// https://hipscat.cds.unistra.fr/HiPSCatService/I/345/gaia2/
@@ -147,7 +164,33 @@ export default class Aladin extends React.Component {
147
164
color : '#33ff42' ,
148
165
name : 'DES DR2' ,
149
166
} ) ;
150
- this . aladin . addCatalog ( hips ) ;
167
+ // this.aladin.addCatalog(hips);
168
+
169
+
170
+
171
+ // PRIVATE RELEASES
172
+ // ----------------------------------------------------------
173
+
174
+ // LSST DP0.2 IRG HIPS IMAGE
175
+ if ( Array . isArray ( this . props . userGroups ) && this . props . userGroups . includes ( 'dp02' ) ) {
176
+ // "https://datasets.linea.org.br/data/releases/lsst/dp02/images/hips/",
177
+ // this.aladin.setImageSurvey(this.aladin.createImageSurvey(
178
+ // "LSST_DP02_IRG_LIneA",
179
+ // "LSST DP0.2 IRG at LIneA",
180
+ // "https://skyviewer-dev.linea.org.br/data/releases/lsst/dp02/images/hips/",
181
+ // "equatorial",
182
+ // ), { imgFormat: 'hips', requestCredentials: 'include', requestMode: 'cors' })
183
+ const lsst_dp02 = this . aladin . createImageSurvey (
184
+ "LSST_DP02_IRG_LIneA" ,
185
+ "LSST DP0.2 IRG at LIneA" ,
186
+ "https://skyviewer-dev.linea.org.br/data/releases/lsst/dp02/images/hips/" ,
187
+ "equatorial" ,
188
+ )
189
+ this . aladin . setImageSurvey ( lsst_dp02 , { imgFormat : 'hips' , requestCredentials : 'include' , requestMode : 'cors' } )
190
+ console . log ( "LSST DP0.2 IRG HIPS IMAGE added" )
191
+ }
192
+
193
+
151
194
// console.log(this.aladin)
152
195
153
196
// var hips = A.catalogHiPS(
@@ -159,20 +202,11 @@ export default class Aladin extends React.Component {
159
202
// });
160
203
// this.aladin.addCatalog(hips);
161
204
162
- { /* aladin.setImageSurvey(
163
- aladin.createImageSurvey(
164
- "DSS blue band",
165
- "Color DSS blue HiPS",
166
- "http://alasky.cds.unistra.fr/DSS/DSS2-blue-XJ-S/",
167
- "equatorial",
168
- 9,
169
- {imgFormat: 'fits'})
170
- ); // setting a custom HiPS */ }
171
-
172
205
// // // Cria um catalogo com um unico source
173
206
// // this.drawCatalog()
174
207
// // // Centraliza a imagem na posição
175
208
// // this.goToPosition(this.props.ra, this.props.dec)
209
+
176
210
} )
177
211
}
178
212
0 commit comments