![]() Accepted list of formats are: jpeg, png and fits. tImageFormat() to set the format of the survey.survey.readPixel(, ) will return the pixel value corresponding to the xy screen coordinates given (in pixels).tCuts(, ) for changing the cutouts of the render.Example:Īladin.gotoObject('Messier 1', ) will use the spectral reversed colormap evaluated with a asinh stretch. when the target name is successfulyl resolved or when an error happened. You can pass optional success or error callback functions that will be called resp. This method can understand both a position or an object name. There are several methods to update the current position: Setting the current position of the center of the view Method tFovRange(, ) allows to restrict the field of view range.Įxample: tFovRange(0.3, 30) will ensure the displayed field of view is always smaller than 0.3 degree and larger than 30 degrees. Restricting the allowed field of view range This works only for object known by Simbad it is based on the object dimension and magnitude. Use tFov() to change the FoV size.Īladin.adjustFovForObject() will try to adjust the field of view according to the properties of the object name given as parameter. Updating view properties Setting the size of the FoV ![]() ![]() You can get more control points passing an optional nbSteps parameter. By default, the position of the 4 corners are returned. Managing the view Getting information about the viewĪladin.getRaDec() returns a with the current equatorial coordinates of the Aladin Lite view center.Īladin.getSize() will return an array with the current dimension (width, height) of Aladin Lite view in pixels.Īladin.getFov() returns an array with the current dimension on the sky (size in X, size in Y) of the view in decimal degrees.Īladin.getFovCorners() returns an array of points along the current rectangular view. Override the CSS properties of the corresponding class (respectively. If you want to customize the location of the GUI elements (full screen icon, zoom controller, goto controller, layers controller), the easiest way is to If true, Aladin Lite starts in "full screen" modeĮxample of Aladin Lite initialization with custom options Customizing location of GUI elements If true, coordinate are displayed (at the top left of the interface) If true, add the Simbad pointer tool to the toolbar If true, the icon to get a link to the current view is displayed If true, the icon to easily jump to a new position/object is displayed If true, the layers control GUI will be expanded If true, the icon to open the layers controls is displayed If true, the button to pass in full screen mode (at the top right of the interface) is displayed If true, the zoom control GUI is displayed (plus/minus buttons) If true, the projection control GUI selector will be displayed Possible values are SIN, AIT, MOL, ARC, TAN, among others If true, the coordinate grid control GUI is displayed If true, the coordinate grid will be displayed Initial value of the visible field of view, in decimal degrees "ICRS" will display coordinates in sexagesimal format whereas "ICRSd" will output decimal format. Initial target, as a position or an object name resolved by SesameĬoordinate system: "ICRS", "ICRSd" or "galactic". ![]() The method takes an optional second argument which gives the initialization options as a key-value object. Note that Aladin Lite view will automatically adapt if the container div is resized, as shown in this example. The variable aladin is a reference to the Aladin lite instance. Just call var aladin = A.aladin('#aladin-lite-div'). Initializing Aladin Lite Aladin Lite creationĬreating an Aladin Lite instance is quite easy: after having inserted the embedding code in your page,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |