1 /* 2 # This file is part of the Astrometry.net suite. 3 # Licensed under a 3-clause BSD style license - see LICENSE 4 */ 5 6 #ifndef UCAC3_FITS_H 7 #define UCAC3_FITS_H 8 9 #include <stdio.h> 10 11 #include "astrometry/ucac3.h" 12 #include "astrometry/fitstable.h" 13 14 #define AN_FILETYPE_UCAC3 "UCAC3" 15 16 typedef fitstable_t ucac3_fits; 17 18 ucac3_fits* ucac3_fits_open(char* fn); 19 20 ucac3_fits* ucac3_fits_open_for_writing(char* fn); 21 22 int ucac3_fits_write_headers(ucac3_fits* ucac3); 23 24 int ucac3_fits_fix_headers(ucac3_fits* ucac3); 25 26 int ucac3_fits_count_entries(ucac3_fits* ucac3); 27 28 ucac3_entry* ucac3_fits_read_entry(ucac3_fits* t); 29 30 int ucac3_fits_read_entries(ucac3_fits* ucac3, int offset, 31 int count, ucac3_entry* entries); 32 33 int ucac3_fits_close(ucac3_fits* ucac3); 34 35 int ucac3_fits_write_entry(ucac3_fits* ucac3, ucac3_entry* entry); 36 37 #endif 38