SkyServer.getJpegImgCutout {SciServer} | R Documentation |
Gets a rectangular image cutout from a region of the sky in SDSS, centered at (ra
,dec
).
SkyServer.getJpegImgCutout(ra, dec, scale=0.7, width=512, height=512, opt="", query="", dataRelease=NULL)
ra |
Right Ascension of the image's center. |
dec |
Declination of the image's center. |
scale |
Scale of the image, measured in |
width |
Width of the image, measured in |
height |
Height of the image, measured in |
opt |
Optional drawing options, expressed as concatenation of letters (string). The letters options are |
query |
Optional string. Marks with inverted triangles on the image the position of user defined objects. The (RA,Dec) coordinates of these object can be given by three means: |
dataRelease |
SDSS data release. E.g, 'DR13' |
Returns an array of doubles, of dimensions [1:width
,1:height
,1:3]. Throws an exception if the HTTP request to the SkyServer API returns an error.
Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>
http://www.sciserver.org
http://skyserver.sdss.org
http://www.github.com/sciserver/SciScript-R
## Not run: img = SkyServer.getJpegImgCutout(ra=197.614455642896, dec=18.438168853724, width=512, height=512, scale=0.4, opt="OG", query="SELECT TOP 100 p.objID, p.ra, p.dec, p.r FROM fGetObjFromRectEq(197.6,18.4,197.7,18.5) n, PhotoPrimary p WHERE n.objID=p.objID") plot(0:1, 0:1, type = "n"); rasterImage(img, 0, 0, 1, 1) ## End(Not run)