

- #Saoimage ds9 save image with regions archive#
- #Saoimage ds9 save image with regions software#
- #Saoimage ds9 save image with regions windows#
Use you favourite editor to attach these lists to each other. This will then give you a list of the RA, Dec of the same sources. If you want to match this up with the 2MASS sources then you have to "list regions" again, but this time select "fk5" as the coordinate system. This will give you a list of x,y coordinates.

The CIAO and ds9 region formats section of the Using CIAO Regions thread has a discussion on the ASCII region types available for use. 'Ciao' format regions are saved in physical coordinates by default. From this, select "x,y" for the format and "image" for the coordinate system. When saving regions in ds9, use 'Ciao' formatted regions to ensure total compatibility with the CIAO tools. Regions may also be used for presentation purposes. Another dialogue box will open asking you to select the format and coordinate system. Regions provide a means for marking particular areas of an image for further analysis. The circles ds9 has drawn are called regions and are a very powerful plotting tool. Then, in the main image window open the "Regions" dialogue and select "List regions". From the "File" dialogue, select "Copy to regions". When you load the catalog you should see a window open entitled "2MASS Point sources" which lists all the sources in your image. The application DS9 is already stripped of debugging symbols when built.
#Saoimage ds9 save image with regions archive#
The first thing DS9 does is to create a virtual file system in memory and unpack that archive into memory.
#Saoimage ds9 save image with regions software#
Is what you are asking - how do I get the x,y coordinates of these 2MASS sources in my image? Or do you wish to know what the x,y coordinates of the actual sources in your image? If the latter then you will need some other software like Sextractor or DAOphot to do source-searching and parameterisation in your image. To do this, DS9 is really an application, along with an zip archive attached. When you load the 2MASS catalogue, SAOimage is able to use the RA and Dec in the catalogue to calculate the x,y positions of the catalog sources in your image (and marks them as green circles). reg file and hit “ok.” Hit “ok” again.OK, it seems to me that what you have is a fits image (from where?) that has some world coordinate system information attached. Under “region,” hit “load.” Navigate to your. There are many options for plotting, you can find them all here: ģ) Open the. DS9 supports FITS images and binary tables, multiple frame buffers, region manipulation, and many scale algorithms and colormaps.
#Saoimage ds9 save image with regions windows#
A new smaller window pops-up move the SAOImage DS9 window so that both windows are visible on the screen but not overlapping. Smithsonian Astrophysical Observatory Image DS9 (SAOImage DS9) is an astronomical imaging and data visualization application. Point(1.51655e+04,1.0895e+03) # point=circle 1 Start SAOImage DS9 and select Frame New Frame RGB. > np.savetxt(‘coords.txt’, coords, delimiter=’,’, newline=’\n’)Ģ) In a text editor, edit the text file into a. I was using python and already had my rapixels and decpixels lists: To overplot these positions on the map:ġ) Save x and y coordinates in a text file. Syntax -exit -quit Example: ds9 -exit -export Export loaded image data of current frame in specified image format, at native resolution, using current. I believe this can also be done using ra and dec positions, toggling the wcs coordinate type when you load the. That is, I had x and y coordinates in pixel space. I started with a FITS map, let’s call it “map.fits,” and lists of ra and dec coordinates of the galaxy positions converted into “physical” coordinates in the map. I didn’t find an easy example of this online, so here’s the simplest method I’ve found to do this, using “regions” in SAOImage DS9.

I wanted to plot the locations of BOSS DR12 galaxy positions on top of the map of the CMB I’m currently working with.
