add a .gitignore to help the compilation phase and contribution #205
43
.gitignore
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
# vscode files
|
||||
.vscode/
|
||||
# for mac os users
|
||||
.DS_Store
|
||||
|
||||
out/
|
||||
# deployment scripts
|
||||
deploy/
|
||||
# node dependencies
|
||||
node_modules/
|
||||
|
||||
package-lock.json
|
||||
|
||||
# rust tmp files for useful for the compilation phase
|
||||
src/core/Cargo.lock
|
||||
src/core/target/
|
||||
|
||||
# this rust file is generated when compiling the code, so it is not
|
||||
# useful to put it on git
|
||||
src/core/src/shaders.rs
|
||||
|
||||
## python related
|
||||
# python environment
|
||||
aladin-lite-venv
|
||||
# python cached files
|
||||
__pycache__/
|
||||
|
||||
## API doc related
|
||||
# folder containing the generated HTML API documentation files
|
||||
docs/
|
||||
# style jsdoc files generated with npm run doc
|
||||
jsdoc-custom-styledocs
|
||||
# responsive jsdoc files generated with npm run doc
|
||||
jsdoc-make-responsivedocs
|
||||
|
||||
## playwright testing framework related
|
||||
test-results/
|
||||
playwright-report/
|
||||
|
||||
## packaged tar obtained from the cmd: npm run predeploy or npm run deploy
|
||||
aladin-lite*.tgz
|
||||
# folder where the generated bundle lies
|
||||
dist/
|
||||
BIN
examples/CDS_P_DSS2_color/Moc.fits
Normal file
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix0.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix1.jpg
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix10.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix11.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix2.jpg
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix3.jpg
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix4.jpg
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix5.jpg
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix6.jpg
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix7.jpg
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix8.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
examples/CDS_P_DSS2_color/Norder0/Dir0/Npix9.jpg
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
examples/CDS_P_DSS2_color/Norder1/Dir0/Npix22.jpg
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
examples/CDS_P_DSS2_color/Norder1/Dir0/Npix23.jpg
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
examples/CDS_P_DSS2_color/Norder2/Dir0/Npix89.jpg
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
examples/CDS_P_DSS2_color/Norder2/Dir0/Npix94.jpg
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
examples/CDS_P_DSS2_color/Norder3/Allsky.jpg
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
examples/CDS_P_DSS2_color/Norder3/Dir0/Npix357.jpg
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
examples/CDS_P_DSS2_color/Norder3/Dir0/Npix377.jpg
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
examples/CDS_P_DSS2_color/Norder4/Dir0/Npix1428.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
examples/CDS_P_DSS2_color/Norder4/Dir0/Npix1429.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
examples/CDS_P_DSS2_color/Norder4/Dir0/Npix1430.jpg
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
examples/CDS_P_DSS2_color/Norder4/Dir0/Npix1431.jpg
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
examples/CDS_P_DSS2_color/Norder4/Dir0/Npix1511.jpg
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5712.jpg
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5713.jpg
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5714.jpg
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5715.jpg
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5716.jpg
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5717.jpg
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5718.jpg
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5719.jpg
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5720.jpg
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5721.jpg
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5722.jpg
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5723.jpg
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5724.jpg
Normal file
|
After Width: | Height: | Size: 71 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5725.jpg
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5726.jpg
Normal file
|
After Width: | Height: | Size: 79 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix5727.jpg
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
examples/CDS_P_DSS2_color/Norder5/Dir0/Npix6046.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
examples/CDS_P_DSS2_color/Norder6/Dir20000/Npix24185.jpg
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
examples/CDS_P_DSS2_color/Norder7/Dir90000/Npix96740.jpg
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
examples/CDS_P_DSS2_color/Norder7/Dir90000/Npix96741.jpg
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
examples/CDS_P_DSS2_color/Norder7/Dir90000/Npix96742.jpg
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
examples/CDS_P_DSS2_color/Norder7/Dir90000/Npix96743.jpg
Normal file
|
After Width: | Height: | Size: 109 KiB |
1399
examples/CDS_P_DSS2_color/index.html
Normal file
BIN
examples/CDS_P_DSS2_color/preview.jpg
Normal file
|
After Width: | Height: | Size: 26 KiB |
45
examples/CDS_P_DSS2_color/properties
Normal file
@@ -0,0 +1,45 @@
|
||||
hips_doi = 10.26093/cds/aladin/ht9n-7r
|
||||
creator_did = ivo://CDS/P/DSS2/color
|
||||
obs_collection = DSS colored
|
||||
obs_title = DSS colored
|
||||
obs_description = Color composition generated by CDS. This HiPS survey is based on 2 others HiPS surveys, respectively DSS2-red and DSS2-blue HiPS, both of them directly generated from original scanned plates downloaded from STScI site. The red component has been built from POSS-II F, AAO-SES,SR and SERC-ER plates. The blue component has been build from POSS-II J and SERC-J,EJ. The green component is based on the mean of other components. Three missing plates from red survey (253, 260, 359) has been replaced by pixels from the DSSColor STScI jpeg survey. The 11 missing blue plates (mainly in galactic plane) have not been replaced (only red component).
|
||||
obs_copyright = Digitized Sky Survey - STScI/NASA, Colored & Healpixed by CDS
|
||||
obs_copyright_url = http://archive.stsci.edu/dss/copyright.html
|
||||
client_category = Image/Optical/DSS
|
||||
client_sort_key = 03-00
|
||||
hips_builder = Aladin/HipsGen v10.123
|
||||
hips_creation_date = 2010-05-01T19:05Z
|
||||
hips_release_date = 2019-05-07T10:55Z
|
||||
hips_creator = Oberto A. (CDS) , Fernique P. (CDS)
|
||||
hips_version = 1.4
|
||||
hips_order = 7
|
||||
hips_frame = equatorial
|
||||
hips_tile_width = 512
|
||||
hips_tile_format = jpeg
|
||||
dataproduct_type = image
|
||||
client_application = AladinLite
|
||||
hips_status = public partial unclonable
|
||||
hips_rgb_red = DSS2Merged [1488.0 8488.8125 14666.0 Linear]
|
||||
hips_rgb_blue = DSS2-blue-XJ-S [4286.0 12122.5 19959.0 Linear]
|
||||
hips_hierarchy = median
|
||||
hips_pixel_scale = 2.236E-4
|
||||
hips_initial_ra = 085.30251
|
||||
hips_initial_dec = -02.25468
|
||||
hips_initial_fov = 2
|
||||
moc_sky_fraction = 0.001302
|
||||
hips_copyright = CNRS/Unistra
|
||||
obs_ack = The Digitized Sky Surveys were produced at the Space Telescope Science Institute under U.S. Government grant NAG W-2166. The images of these surveys are based on photographic data obtained using the Oschin Schmidt Telescope on Palomar Mountain and the UK Schmidt Telescope. The plates were processed into the present compressed digital form with the permission of these institutions. The National Geographic Society - Palomar Observatory Sky Atlas (POSS-I) was made by the California Institute of Technology with grants from the National Geographic Society. The Second Palomar Observatory Sky Survey (POSS-II) was made by the California Institute of Technology with funds from the National Science Foundation, the National Geographic Society, the Sloan Foundation, the Samuel Oschin Foundation, and the Eastman Kodak Corporation. The Oschin Schmidt Telescope is operated by the California Institute of Technology and Palomar Observatory. The UK Schmidt Telescope was operated by the Royal Observatory Edinburgh, with funding from the UK Science and Engineering Research Council (later the UK Particle Physics and Astronomy Research Council), until 1988 June, and thereafter by the Anglo-Australian Observatory. The blue plates of the southern Sky Atlas and its Equatorial Extension (together known as the SERC-J), as well as the Equatorial Red (ER), and the Second Epoch [red] Survey (SES) were all taken with the UK Schmidt. Supplemental funding for sky-survey work at the ST ScI is provided by the European Southern Observatory.
|
||||
prov_progenitor = STScI
|
||||
bib_reference = 1996ASPC..101...88L
|
||||
bib_reference_url = http://cdsads.u-strasbg.fr/abs/1996ASPC..101...88L
|
||||
t_min = 42413
|
||||
t_max = 51179
|
||||
obs_regime = Optical
|
||||
em_min = 4e-7
|
||||
em_max = 6e-7
|
||||
hips_order_min = 0
|
||||
dataproduct_subtype = color
|
||||
hipsgen_date = 2019-05-07T10:55Z
|
||||
hipsgen_params = out=/asd-volumes/sc1-asd-volume8/DSS/DSSColor UPDATE
|
||||
hipsgen_date_1 = 2024-09-10T16:50Z
|
||||
hipsgen_params_1 = in=https://alasky.cds.unistra.fr/DSS/DSSColor/ out=./CDS_P_DSS2_color region=3/357 order=5 MIRROR
|
||||
81
examples/al-change-cat-color.html
Normal file
@@ -0,0 +1,81 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, height=device-height, maximum-scale=1.0, initial-scale=1.0, user-scalable=no">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 1024px; height: 768px">
|
||||
<div class="box-content" style="width:200px">
|
||||
<div style="display:inline-flex">
|
||||
<label for="cat-color">Color</label>
|
||||
<input type="color" id="cat-color" value="#ff0000">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="module">
|
||||
import A from '../src/js/A.js';
|
||||
let aladin;
|
||||
A.init.then(() => {
|
||||
var aladin = A.aladin(
|
||||
'#aladin-lite-div',
|
||||
{
|
||||
fov: 1.5, // initial field of view in degrees
|
||||
target: 'NGC 2175', // initial target
|
||||
}
|
||||
);
|
||||
|
||||
// Add a catalog
|
||||
let cat = A.catalogFromSimbad('NGC 2175', 0.1, {onClick: 'showTable'});
|
||||
aladin.addCatalog(cat);
|
||||
|
||||
// Logic for changing the color of catalog sources
|
||||
let colorPicker = document.querySelector('#cat-color');
|
||||
colorPicker.value = cat.color;
|
||||
colorPicker.addEventListener('input', function (e) {
|
||||
// Change the color of the catalog
|
||||
cat.updateShape({color: this.value});
|
||||
})
|
||||
|
||||
// Define the box
|
||||
let catalogSettingsBox = A.box({
|
||||
header: {
|
||||
title: "Settings",
|
||||
},
|
||||
content: document.querySelectorAll('.box-content')[0],
|
||||
});
|
||||
catalogSettingsBox._hide();
|
||||
|
||||
// Define the button that toggles the box
|
||||
let catalogSettingsBtn = A.button({
|
||||
content: 'Catalog',
|
||||
classList: ['catalogSettingsTogglerBtn'],
|
||||
action(o) {
|
||||
if (catalogSettingsBox.isHidden) {
|
||||
catalogSettingsBox._show({
|
||||
position: {
|
||||
nextTo: catalogSettingsBtn,
|
||||
direction: 'right',
|
||||
}
|
||||
})
|
||||
} else {
|
||||
catalogSettingsBox._hide()
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
aladin.addUI([catalogSettingsBtn, catalogSettingsBox])
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.catalogSettingsTogglerBtn {
|
||||
position: absolute;
|
||||
top: 200px;
|
||||
left: 0;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
135
examples/al-ivoa-sydney.html
Normal file
@@ -0,0 +1,135 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head> </head>
|
||||
|
||||
<body>
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
|
||||
<script type="module">
|
||||
import A from "../src/js/A.js";
|
||||
let aladin;
|
||||
A.init.then(() => {
|
||||
aladin = A.aladin("#aladin-lite-div", {
|
||||
fullScreen: true,
|
||||
target: "abell 194",
|
||||
fov: 15,
|
||||
projection: "AIT",
|
||||
showContextMenu: true,
|
||||
showShareControl: true,
|
||||
samp: true,
|
||||
showSettingsControl: true,
|
||||
showZoomControl: true,
|
||||
});
|
||||
|
||||
/*let pmraMean = null, pmdecMean = null;
|
||||
|
||||
const pmCat = A.catalogFromURL('./data/proper_motion.xml', {
|
||||
onClick: 'showTable',
|
||||
name: 'mean pm over HPX cells around LMC from GaiaDR2',
|
||||
hoverColor: 'yellow',
|
||||
selectionColor: 'white',
|
||||
color: 'yellow',
|
||||
// Footprint associated to sources
|
||||
shape: (s) => {
|
||||
// discard drawing a vector for big pm
|
||||
let totalPmSquared = s.data.pmra*s.data.pmra + s.data.pmdec*s.data.pmdec;
|
||||
if (totalPmSquared > 6) {
|
||||
return;
|
||||
}
|
||||
|
||||
let color = rainbowColorMap((totalPmSquared - 2.5) / 2)
|
||||
|
||||
// Compute the mean of pm over the catalog sources
|
||||
if (!pmraMean || !pmdecMean) {
|
||||
pmraMean = 0, pmdecMean = 0;
|
||||
for (var s of pmCat.getSources()) {
|
||||
pmraMean += +s.data.pmra;
|
||||
pmdecMean += +s.data.pmdec;
|
||||
}
|
||||
|
||||
const numSources = pmCat.getSources().length;
|
||||
|
||||
pmraMean /= numSources
|
||||
pmdecMean /= numSources
|
||||
}
|
||||
|
||||
let dra = +s.data.pmra - pmraMean;
|
||||
let ddec = +s.data.pmdec - pmdecMean;
|
||||
|
||||
return A.vector(
|
||||
s.ra,
|
||||
s.dec,
|
||||
s.ra + dra,
|
||||
s.dec + ddec,
|
||||
{lineWidth: 3, color}
|
||||
)
|
||||
}
|
||||
});
|
||||
aladin.addCatalog(pmCat);*/
|
||||
|
||||
/*aladin.addCatalog(
|
||||
A.catalogFromURL("./data/votable/obscore_rucio-sdc03.votable", {
|
||||
name: 'SKA discovery ObsCore around: SDC03',
|
||||
onClick: 'showTable',
|
||||
hoverColor: "yellow",
|
||||
})
|
||||
);
|
||||
aladin.addCatalog(
|
||||
A.catalogFromURL("./data/votable/obscore_rucio-abell194.votable", {
|
||||
name: 'SKA discovery ObsCore around: Abell 194',
|
||||
onClick: 'showTable',
|
||||
hoverColor: "yellow",
|
||||
})
|
||||
);*/
|
||||
aladin.addCatalog(
|
||||
A.catalogFromSKAORucio("abell 194", 15, {
|
||||
onClick: 'showTable',
|
||||
hoverColor: "yellow",
|
||||
})
|
||||
);
|
||||
aladin.addCatalog(
|
||||
A.catalogFromSKAORucio("m51", 15, {
|
||||
onClick: 'showTable',
|
||||
hoverColor: "yellow",
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
function rainbowColorMap(value) {
|
||||
// Ensure value is within range [0, 1]
|
||||
value = Math.max(0, Math.min(1, value));
|
||||
|
||||
// Convert value to hue
|
||||
var hue = (1 - value) * 240; // 240 is the maximum hue value for blue
|
||||
|
||||
// Convert HSV to RGB
|
||||
var chroma = 1;
|
||||
var x = chroma * (1 - Math.abs((hue / 60) % 2 - 1));
|
||||
var r1, g1, b1;
|
||||
|
||||
if (hue >= 0 && hue < 60) {
|
||||
[r1, g1, b1] = [chroma, x, 0];
|
||||
} else if (hue >= 60 && hue < 120) {
|
||||
[r1, g1, b1] = [x, chroma, 0];
|
||||
} else if (hue >= 120 && hue < 180) {
|
||||
[r1, g1, b1] = [0, chroma, x];
|
||||
} else if (hue >= 180 && hue < 240) {
|
||||
[r1, g1, b1] = [0, x, chroma];
|
||||
}
|
||||
|
||||
var m = 1 - chroma;
|
||||
var r = r1 + m;
|
||||
var g = g1 + m;
|
||||
var b = b1 + m;
|
||||
|
||||
// Convert RGB to HEX
|
||||
r = Math.round(r * 255);
|
||||
g = Math.round(g * 255);
|
||||
b = Math.round(b * 255);
|
||||
var colorHex = "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
|
||||
|
||||
return colorHex;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
1374
examples/al-landing-page.html
Normal file
26
src/glsl/webgl2/passes/post_fragment_100es.frag
Normal file
@@ -0,0 +1,26 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
|
||||
in vec2 v_tc;
|
||||
out vec4 color;
|
||||
|
||||
uniform sampler2D fbo_tex;
|
||||
|
||||
// 0-255 sRGB from 0-1 linear
|
||||
vec3 srgb_from_linear(vec3 rgb) {
|
||||
bvec3 cutoff = lessThan(rgb, vec3(0.0031308));
|
||||
vec3 lower = rgb * vec3(3294.6);
|
||||
vec3 higher = vec3(269.025) * pow(rgb, vec3(1.0 / 2.4)) - vec3(14.025);
|
||||
return mix(higher, lower, vec3(cutoff));
|
||||
}
|
||||
|
||||
// 0-255 sRGBA from 0-1 linear
|
||||
vec4 srgba_from_linear(vec4 rgba) {
|
||||
return vec4(srgb_from_linear(rgba.rgb), 255.0 * rgba.a);
|
||||
}
|
||||
|
||||
void main() {
|
||||
color = texture(fbo_tex, v_tc);
|
||||
|
||||
//color = srgba_from_linear(color) / 255.;
|
||||
}
|
||||
10
src/glsl/webgl2/passes/post_vertex_100es.vert
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
|
||||
layout (location = 0) in vec2 a_pos;
|
||||
out vec2 v_tc;
|
||||
|
||||
void main() {
|
||||
gl_Position = vec4(a_pos * 2. - 1., 0.0, 1.0);
|
||||
v_tc = a_pos;
|
||||
}
|
||||