X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05 May 2010 04:59 PM by  anon
Create a sky map
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
05 May 2010 04:59 PM
    Hi all, I would like your help. I need to create a sky map using the positions the some sources. I have a file with three columns, two columns with equatorial coordinates of the sources and the third column has a source flux. So, I have to plot in a plane (x,y) each of the sources, in the X-axes I put the right ascencion and the Y-axes the declination and the flux value I must to plot  as a point on the plane using a color scale such that for flux low values correspond to dark color and light color for flux higher values, but I do not know how to do it or what function from IDL to use. Anyone knows how to do it??? I thank your attention and your help, Thanks, Manuel

    Deleted User



    New Member


    Posts:
    New Member


    --
    18 May 2010 03:20 PM
    You could do something like the code below. I've just used random data here, so you'll have to change the image dimensions and the data to suit your needs. Try running this to get a feel for what this might look like. pro make_starmap compile_opt idl2 data = randomu(seed, 3, 100) * 500 ; If data is a 3 column array [x, y, intensity] x = data[0,*] & maxX = max(X, min=minX) y = data[1,*] & maxY = max(Y, min=minY) i = bytscl(data[2,*]) dims = [maxX+1, maxY+1] img = bytarr(dims) img[[x], [y]] = i iimage, img end
    You are not authorized to post a reply.