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

  • Context: Undergrad 
  • Thread starter Thread starter eag
  • Start date Start date
  • Tags Tags
    Astrophysics Format
Click For Summary
SUMMARY

The discussion centers on extracting galaxy coordinates from FITS files using C++. The primary library mentioned is libCCfits, which is a C++ wrapper for the cfitsio library, commonly used for handling FITS files. Users often prefer cfitsio directly due to its simplicity and efficiency, as it allows for straightforward integration with C++. The conversation also touches on the potential use of IRAF for similar tasks, suggesting that existing tools may be more efficient than developing new software from scratch.

PREREQUISITES
  • FITS file format knowledge
  • Proficiency in C++ programming
  • Understanding of the cfitsio library
  • Familiarity with astronomical coordinate systems
NEXT STEPS
  • Explore the cfitsio library documentation for FITS file manipulation
  • Learn how to use libCCfits for C++ applications
  • Research IRAF and its capabilities for astronomical data analysis
  • Investigate existing software solutions for extracting galaxy coordinates
USEFUL FOR

Astronomy students, software developers working with astronomical data, and researchers needing to extract and analyze galaxy coordinates from FITS files will benefit from this discussion.

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?
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 152 ·
6
Replies
152
Views
12K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 1 ·
Replies
1
Views
10K