Has Anyone Used a FITS Library for Extracting Galaxy Coordinates in C++?

AI Thread Summary
The discussion centers on the extraction of galaxy coordinates from FITS files using C++. A student seeks advice on using a FITS library, specifically libCCfits, for this purpose. Most participants recommend using cfitsio directly, as it is a C library that integrates well with C++. Clarification is sought on whether the student needs coordinates from images or a list from a FITS table. Additionally, there is a suggestion to consider existing software like IRAf instead of developing a new solution.
eag
Messages
1
Reaction score
0
hie all,

i'm a student and I'm working on a software using FITS file. I need coordinates of galaxies which are stocked in those FITS file. For that i have to use a c++ library then i'll b
e able to extract them.

i would like to know if somebody has ever code a c++ program using a FITS library like libCCfits ( http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/ ) or know who has already use something else?

to know more about my project EAG, please visit: www.eag-project.net

thank you in advance.

contact@eag-project.net

EAG-Team
 
Last edited by a moderator:
Astronomy news on Phys.org
Most people just use cfitsio directly. It's a 'c' lib so you can call it quite easily from C++.
There isn't a lot of heirarchy in a fits file that benefits from having an object wrapper.

Do you mean you are looking for the coordiantes of galaxies from images in a fits-file or do you mean reading a list of coordinates from a fits table?

Do you really want to write your own software rather than using IRAf or similair?
 
This thread is dedicated to the beauty and awesomeness of our Universe. If you feel like it, please share video clips and photos (or nice animations) of space and objects in space in this thread. Your posts, clips and photos may by all means include scientific information; that does not make it less beautiful to me (n.b. the posts must of course comply with the PF guidelines, i.e. regarding science, only mainstream science is allowed, fringe/pseudoscience is not allowed). n.b. I start this...
Asteroid, Data - 1.2% risk of an impact on December 22, 2032. The estimated diameter is 55 m and an impact would likely release an energy of 8 megatons of TNT equivalent, although these numbers have a large uncertainty - it could also be 1 or 100 megatons. Currently the object has level 3 on the Torino scale, the second-highest ever (after Apophis) and only the third object to exceed level 1. Most likely it will miss, and if it hits then most likely it'll hit an ocean and be harmless, but...
Back
Top