You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/js/A.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -112,12 +112,12 @@ A.aladin = function (divSelector, options) {
112
112
* @function
113
113
* @name A.HiPS
114
114
* @memberof A
115
-
* @param {string|FileList|Object} id - Can be: <br/>
116
-
* - an http url <br/>
117
-
* - a relative path to your HiPS <br/>
118
-
* - a special ID pointing towards a HiPS. One can found the list of IDs {@link https://aladin.cds.unistra.fr/hips/list| here} <br/>
119
-
* - a dict storing a local HiPS files. This object contains a tile file: hips[order][ipix] = File and refers to the properties file like so: hips["properties"] = File. <br/>
120
-
* A javascript FileList pointing to the opened webkit directory is also accepted.
115
+
* @param {string} id - Can be:
116
+
* <ul>
117
+
* <li>An http url towards a HiPS.</li>
118
+
* <li>A relative path to your HiPS</li>
119
+
* <li>A special ID pointing towards a HiPS. One can found the list of IDs {@link https://aladin.cds.unistra.fr/hips/list| here}</li>
120
+
* </ul>
121
121
* @param {HiPSOptions} [options] - Options describing the survey
* @param {string} id - Mandatory unique identifier for the survey.
1502
1502
* @param {string} [name] - A convinient name for the survey, optional
1503
-
* @param {string} url - Can be:
1503
+
* @param {string|FileList|HiPSLocalFiles} url - Can be:
1504
1504
* <ul>
1505
-
* <li>1. An url that refers to a HiPS.</li>
1506
-
* <li>Or it can be a "CDS ID" that refers to a HiPS. One can found the list of IDs {@link https://aladin.cds.unistra.fr/hips/list| here}</li>
1505
+
* <li>An http url towards a HiPS.</li>
1506
+
* <li>A relative path to your HiPS</li>
1507
+
* <li>A special ID pointing towards a HiPS. One can found the list of IDs {@link https://aladin.cds.unistra.fr/hips/list| here}</li>
1508
+
* <li>A dict storing a local HiPS files. This object contains a tile file: hips[order][ipix] = File and refers to the properties file like so: hips["properties"] = File. </li>
1509
+
* A javascript {@link FileList} pointing to the opened webkit directory is also accepted.
* @param {string} id - Mandatory unique identifier for the survey.
1536
1539
* @param {string} [name] - A convinient name for the survey, optional
1537
-
* @param {string} url - Can be:
1540
+
* @param {string|FileList|HiPSLocalFiles} url - Can be:
1538
1541
* <ul>
1539
-
* <li>1. An url that refers to a HiPS.</li>
1540
-
* <li>Or it can be a "CDS ID" that refers to a HiPS. One can found the list of IDs {@link https://aladin.cds.unistra.fr/hips/list| here}</li>
1542
+
* <li>An http url towards a HiPS.</li>
1543
+
* <li>A relative path to your HiPS</li>
1544
+
* <li>A special ID pointing towards a HiPS. One can found the list of IDs {@link https://aladin.cds.unistra.fr/hips/list| here}</li>
1545
+
* <li>A dict storing a local HiPS files. This object contains a tile file: hips[order][ipix] = File and refers to the properties file like so: hips["properties"] = File. </li>
1546
+
* A javascript {@link FileList} pointing to the opened webkit directory is also accepted.
* @param {string} id - Mandatory unique identifier for the layer. Can be an arbitrary name
170
-
* @param {string|FileList|Object} location - Can be:
171
-
* - an http url <br/>
172
-
* - a relative path to your HiPS <br/>
173
-
* - a special ID pointing towards a HiPS. One can found the list of IDs {@link https://aladin.cds.unistra.fr/hips/list| here} <br/>
174
-
* - a dict storing a local HiPS. This object contains a tile file: hips[order][ipix] = File and refers to the properties file like so: hips["properties"] = File. <br/>
175
-
* A javascript FileList pointing to the opened webkit directory is also accepted.
182
+
* @param {string|FileList|HiPSLocalFiles} url - Can be:
183
+
* <ul>
184
+
* <li>An http url towards a HiPS.</li>
185
+
* <li>A relative path to your HiPS</li>
186
+
* <li>A special ID pointing towards a HiPS. One can found the list of IDs {@link https://aladin.cds.unistra.fr/hips/list| here}</li>
187
+
* <li>A dict storing a local HiPS files. This object contains a tile file: hips[order][ipix] = File and refers to the properties file like so: hips["properties"] = File. </li>
188
+
* A javascript {@link FileList} pointing to the opened webkit directory is also accepted.
189
+
* </ul>
176
190
* @param {HiPSOptions} [options] - The option for the survey
177
191
*
178
192
* @description Giving a CDS ID will do a query to the MOCServer first to retrieve metadata. Then it will also check for the presence of faster HiPS nodes to choose a faster url to query to tiles from.
Copy file name to clipboardExpand all lines: src/js/Image.js
+31-1Lines changed: 31 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,36 @@ import { Utils } from "./Utils";
31
31
import{AVM}from"./libs/avm.js";
32
32
import{HiPS}from"./HiPS.js";
33
33
34
+
/**
35
+
* @typedef {Object} WCS
36
+
*
37
+
* {@link https://ui.adsabs.harvard.edu/abs/2002A%26A...395.1077C/abstract|FITS (Paper II)}, Calabretta, M. R., and Greisen, E. W., Astronomy & Astrophysics, 395, 1077-1122, 2002
38
+
*
39
+
* @property {number} [NAXIS]
40
+
* @property {string} CTYPE1
41
+
* @property {string} [CTYPE2]
42
+
* @property {number} [LONPOLE]
43
+
* @property {number} [LATPOLE]
44
+
* @property {number} [CRVAL1]
45
+
* @property {number} [CRVAL2]
46
+
* @property {number} [CRPIX1]
47
+
* @property {number} [CRPIX2]
48
+
* @property {string} [CUNIT1] - e.g. 'deg'
49
+
* @property {string} [CUNIT2] - e.g. 'deg'
50
+
* @property {number} [CD1_1]
51
+
* @property {number} [CD1_2]
52
+
* @property {number} [CD2_1]
53
+
* @property {number} [CD2_2]
54
+
* @property {number} [PC1_1]
55
+
* @property {number} [PC1_2]
56
+
* @property {number} [PC2_1]
57
+
* @property {number} [PC2_2]
58
+
* @property {number} [CDELT1]
59
+
* @property {number} [CDELT2]
60
+
* @property {number} [NAXIS1]
61
+
* @property {number} [NAXIS2]
62
+
*/
63
+
34
64
/**
35
65
* @typedef {Object} ImageOptions
36
66
*
@@ -48,7 +78,7 @@ import { HiPS } from "./HiPS.js";
48
78
* @property {number} [saturation=0.0] - The saturation value for the color configuration.
49
79
* @property {number} [brightness=0.0] - The brightness value for the color configuration.
50
80
* @property {number} [contrast=0.0] - The contrast value for the color configuration.
51
-
* @property {Object} [wcs] - an object describing the WCS of the image. In case of a fits image
81
+
* @property {WCS} [wcs] - an object describing the WCS of the image. In case of a fits image
52
82
* this property will be ignored as the WCS taken will be the one present in the fits file.
53
83
* @property {string} [imgFormat] - Optional image format. Giving it will prevent the auto extension determination algorithm to be triggered. Possible values are 'jpeg', 'png' or 'fits'. tiff files are not supported. You can convert your tiff files to jpg ones by using the fantastic image magick suite.
0 commit comments