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
It would be nice to have a method in ipyaladin to create a new image layer from a PNG URL associated to its WCS.
This is possible in Aladin Lite:
aladin.setOverlayImageLayer(A.image("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQIAHqI53PhyJZRzGs8QN8...",{name: "M61",imgFormat: 'jpeg',wcs: {NAXIS: 2,// Minimal headerCTYPE1: 'RA---TAN',// TAN (gnomic) projection + SIP distortionsCTYPE2: 'DEC--TAN',// TAN (gnomic) projection + SIP distortionsEQUINOX: 2000.0,// Equatorial coordinates definition (yr)LONPOLE: 180.0,// no commentLATPOLE: 0.0,// no commentCRVAL1: 185.445488837,// RA of reference pointCRVAL2: 4.47896032431,// DEC of reference pointCRPIX1: 588.995094299,// X reference pixelCRPIX2: 308.307905197,// Y reference pixelCUNIT1: 'deg',// X pixel scale unitsCUNIT2: 'deg',// Y pixel scale unitsCD1_1: -0.000223666022989,// Transformation matrixCD1_2: 0.000296578064584,// no commentCD2_1: -0.000296427555509,// no commentCD2_2: -0.000223774308964,// no commentNAXIS1: 1080,// Image width, in pixels.NAXIS2: 705// Image height, in pixels.},successCallback: (ra,dec,fov,image)=>{console.log('done');aladin.gotoRaDec(ra,dec);aladin.setFoV(fov)}},));
It would be nice to have a method in
ipyaladin
to create a new image layer from a PNG URL associated to its WCS.This is possible in Aladin Lite:
Example in action: https://cds.unistra.fr/~boch/al-base64-color.html
The text was updated successfully, but these errors were encountered: