/usr/include/astrometry/ngc2000.h is in libastrometry-dev 0.73+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | /*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
#ifndef NGC2000_H
#define NGC2000_H
#include "astrometry/bl.h"
/**
The Astrometry.net codebase has two NGC modules. This one contains
rough positions for all NGC/IC objects. ngcic-accurate.h contains
more precise positions for some of the objects.
You probably want to use them something like this:
int i, N;
N = ngc_num_entries();
for (i=0; i<N; i++) {
ngc_entry* ngc = ngc_get_entry_accurate(i);
// do stuff ...
// (do NOT free(ngc); !)
}
*/
/*
The NGC2000 catalog can be found at:
ftp://cdsarc.u-strasbg.fr/cats/VII/118/
The "ReadMe" file associated with the catalog is ngc2000-readme.txt
*/
struct ngc_entry {
// true: NGC. false: IC.
int is_ngc;
// NGC/IC number
int id;
char classification[4];
// RA,Dec in B2000.0 degrees
float ra;
float dec;
char constellation[4];
// Maximum dimension in arcmin.
float size;
//char source;
// anbool sizelimit;
float mag;
// anbool photo_mag;
// char[51] description;
};
typedef struct ngc_entry ngc_entry;
extern ngc_entry ngc_entries[];
// convenience accessors:
// Find an entry by NGC/IC number.
ngc_entry* ngc_get_ngcic_num(int is_ngc, int num);
int ngc_num_entries();
ngc_entry* ngc_get_entry(int i);
ngc_entry* ngc_get_entry_named(const char* name);
// Checks the "ngcic-accurate" catalog for more accurate RA,Dec
// and substitutes it if found.
ngc_entry* ngc_get_entry_accurate(int i);
// find the common name of the given ngc_entry, if it has one.
char* ngc_get_name(ngc_entry* entry, int num);
// Returns "NGC ###" or "IC ###" plus the common names.
// The names will be added to the given "lst" if it is supplied.
// A new list will be created if "lst" is NULL.
sl* ngc_get_names(ngc_entry* entry, sl* lst);
char* ngc_get_name_list(ngc_entry* entry, const char* separator);
#endif
|