/usr/include/astrometry/blind.h is in astrometry.net 0.46-0ubuntu2.
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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | /*
This file is part of the Astrometry.net suite.
Copyright 2007 Dustin Lang, Keir Mierle and Sam Roweis.
The Astrometry.net suite is free software; you can redistribute
it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, version 2.
The Astrometry.net suite is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with the Astrometry.net suite ; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef BLIND_H
#define BLIND_H
#include "an-bool.h"
#include "solver.h"
#include "matchobj.h"
#include "matchfile.h"
#include "rdlist.h"
#include "bl.h"
#define DEFAULT_QSF_LO 0.1
#define DEFAULT_QSF_HI 1.0
struct blind_params {
solver_t solver;
anbool indexes_inparallel;
double logratio_tosolve;
// How many solving quads are required before we stop?
int nsolves;
int nsolves_sofar;
// Filenames
char *fieldfname;
char *matchfname;
char *indexrdlsfname;
char *corr_fname;
char* scamp_fname;
// WCS filename template (sprintf format with %i for field number)
char* wcs_template;
// List of WCS filenames to run verification on.
sl* verify_wcsfiles;
// WCS instances to verify. (sip_t structs)
bl* verify_wcs_list;
// Output solved file.
char *solved_out;
// Input solved file.
char* solved_in;
// Solvedserver ip:port
char *solvedserver;
// If using solvedserver, limits of fields to ask for
int firstfield, lastfield;
// Indexes to use (base filenames)
sl* indexnames;
// Indexes to use (index_t objects)
pl* indexes;
int index_options;
// Quad size fraction: select indexes that contain quads of size fraction
// [quad_size_fraction_lo, quad_size_fraction_hi] of the image size.
double quad_size_fraction_lo;
double quad_size_fraction_hi;
// Fields to try
il* fieldlist;
// Which field in a multi-HDU xyls file is this?
int fieldnum;
// A unique ID for the whole multi-HDU xyls file.
int fieldid;
// xylist column names.
char *xcolname, *ycolname;
// FITS keyword to copy from xylist to matchfile.
char *fieldid_key;
// The fields to solve!
xylist_t* xyls;
// Output files
matchfile* mf;
rdlist_t* indexrdls;
// extra fields to add to index rdls file:
sl* rdls_tagalong;
anbool rdls_tagalong_all;
// internal use only: have I grabbed "all" rdls fields already?
//anbool done_rdls_tagalong_all;
// field to sort RDLS file by; prefix by "-" for descending order.
char* sort_rdls;
// extra fields to add from the xyls file:
sl* xyls_tagalong;
anbool xyls_tagalong_all;
// List of MatchObjs with logodds >= logodds_tokeep
bl* solutions;
float cpulimit;
float cpu_start;
anbool hit_cpulimit;
int timelimit;
time_t time_start;
anbool hit_timelimit;
float total_cpulimit;
float cpu_total_start;
anbool hit_total_cpulimit;
double total_timelimit;
double time_total_start;
anbool hit_total_timelimit;
anbool single_field_solved;
// filename for cancelling
char* cancelfname;
anbool cancelled;
anbool best_hit_only;
};
typedef struct blind_params blind_t;
void blind_set_field_file(blind_t* bp, const char* fn);
void blind_set_cancel_file(blind_t* bp, const char* fn);
void blind_set_solved_file(blind_t* bp, const char* fn);
void blind_set_solvedin_file(blind_t* bp, const char* fn);
void blind_set_solvedout_file(blind_t* bp, const char* fn);
void blind_set_match_file(blind_t* bp, const char* fn);
void blind_set_rdls_file(blind_t* bp, const char* fn);
void blind_set_scamp_file(blind_t* bp, const char* fn);
void blind_set_corr_file(blind_t* bp, const char* fn);
void blind_set_wcs_file(blind_t* bp, const char* fn);
void blind_set_xcol(blind_t* bp, const char* x);
void blind_set_ycol(blind_t* bp, const char* x);
void blind_add_verify_wcs(blind_t* bp, sip_t* wcs);
void blind_add_loaded_index(blind_t* bp, index_t* ind);
void blind_add_index(blind_t* bp, const char* index);
void blind_clear_verify_wcses(blind_t* bp);
void blind_clear_indexes(blind_t* bp);
void blind_clear_solutions(blind_t* bp);
void blind_add_field(blind_t* bp, int field);
void blind_add_field_range(blind_t* bp, int lo, int hi);
void blind_run(blind_t* bp);
void blind_init(blind_t* bp);
void blind_cleanup(blind_t* bp);
int blind_parameters_are_sane(blind_t* bp, solver_t* sp);
int blind_is_run_obsolete(blind_t* bp, solver_t* sp);
void blind_log_run_parameters(blind_t* bp);
void blind_free_matchobj(MatchObj* mo);
void blind_matchobj_deep_copy(const MatchObj* mo, MatchObj* dest);
#endif
|