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
|