converting *coo or *mag files into regions files
Luisa Rebull wrote on Dec 08, 2006
Hi -
I'm looking for an IRAF task that will take the output of daofind or phot (or for that matter txdump) and make a regions file so I can overlay it on the image in ds9. I've RTFM'd to no avail. This must be something that every single astronomer doing photometry with IRAF has at least wanted to do and if it's not already part of IRAF, probably written their own routine to do. I know it would be an easy bit of code to write, and if I have to, I'll just write my own. But, it sure seems like it ought to be available and I'm just not searching on the right keywords...? Anyone know of such a routine?
thanks,
Luisa
I'm looking for an IRAF task that will take the output of daofind or phot (or for that matter txdump) and make a regions file so I can overlay it on the image in ds9. I've RTFM'd to no avail. This must be something that every single astronomer doing photometry with IRAF has at least wanted to do and if it's not already part of IRAF, probably written their own routine to do. I know it would be an easy bit of code to write, and if I have to, I'll just write my own. But, it sure seems like it ought to be available and I'm just not searching on the right keywords...? Anyone know of such a routine?
thanks,
Luisa
Mike Fitzpatrick wrote on Dec 08, 2006
Hi Luisa,
I'll admit I'm not quite sure what it is you're after (visually anyway). The FIELDS task can extract columns from the output files, and from these you can create a region specification you can input to the MSKREGIONS task in the PROTO package to create a pixel mask. From there, the DISPLAY task has an 'overlay' paramter that will overlay this mask on the displayed image? You would need to write a small script to tie all this together, but I think these are the major pieces you need. Hope this helps.
Cheers,
-Mike
I'll admit I'm not quite sure what it is you're after (visually anyway). The FIELDS task can extract columns from the output files, and from these you can create a region specification you can input to the MSKREGIONS task in the PROTO package to create a pixel mask. From there, the DISPLAY task has an 'overlay' paramter that will overlay this mask on the displayed image? You would need to write a small script to tie all this together, but I think these are the major pieces you need. Hope this helps.
Cheers,
-Mike
Last post on Dec 08, 2006