Changeset 38986 for trunk/Ohana/src/relastro/include/relastro.h
- Timestamp:
- Oct 27, 2015, 4:49:06 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/relastro/include/relastro.h (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ipp-20150625/Ohana merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/relastro/include/relastro.h
r38441 r38986 28 28 29 29 typedef enum {TARGET_NONE, TARGET_SIMPLE, TARGET_CHIPS, TARGET_MOSAICS} FitTarget; 30 31 typedef enum { 32 FIT_RESULT_RA, 33 FIT_RESULT_DEC, 34 FIT_RESULT_uR, 35 FIT_RESULT_uD, 36 FIT_RESULT_PLX, 37 } FitAstromResultMode; 30 38 31 39 typedef enum { … … 115 123 double Ro, dRo; 116 124 double Do, dDo; 117 118 125 double uR, duR; 119 126 double uD, duD; 120 121 double p, dp; 127 double p, dp; 122 128 123 129 double chisq; 124 130 int Nfit; 125 } PMFit; 131 } FitAstromResult; 132 133 typedef struct { 134 double **A; 135 double **B; 136 int Nterms; 137 } FitAstromData; 138 139 typedef struct { 140 double X, dX; 141 double Y, dY; 142 double R, dR; 143 double D, dD; 144 double T, dT; 145 double pR; 146 double pD; 147 double C_blue; 148 double C_red; 149 int measure; 150 } FitAstromPoint; 151 152 typedef struct { 153 off_t Nave; 154 off_t Npm; 155 off_t Npar; 156 off_t Nskip; 157 off_t Noffset; 158 159 double *values; 160 FitAstromResult *fit; // use bootstrap resampling to generate Nfit fits to measure the stats 161 int Nfit; 162 int NfitAlloc; 163 164 FitAstromPoint *points; 165 FitAstromPoint *sample; 166 int Npoints; 167 int NpointsAlloc; 168 169 FitAstromData *fitdataPos; 170 FitAstromData *fitdataPM; 171 FitAstromData *fitdataPar; 172 173 Coords coords; 174 time_t T2000; 175 } FitStats; 126 176 127 177 typedef struct { … … 150 200 151 201 typedef struct { 152 off_t Nave;153 off_t Npm;154 off_t Npar;155 off_t Nskip;156 off_t Noffset;157 } FitStats;158 159 typedef struct {160 202 double scale; 161 203 double **Roff; … … 180 222 int Nicrfobj; 181 223 } ICRFobj; 224 225 # define ID_MEAS_OBJECT_HAS_2MASS ID_MEAS_POOR_PHOTOM 182 226 183 227 /* global variables set in parameter file */ … … 224 268 int PARALLEL_OUTPUT; 225 269 270 int VERBOSE_IMAGE; 271 226 272 int VERBOSE; 227 273 int VERBOSE2; … … 234 280 int USE_ICRF_SHFIT; 235 281 int USE_ICRF_POLE; 282 283 int USE_ALL_IMAGES; 236 284 237 285 int RESET; … … 252 300 int CHIPORDER; 253 301 int CHIPMAP; 302 303 int N_BOOTSTRAP_SAMPLES; 254 304 255 305 int MaxDensityUse; … … 369 419 int liststats_pos PROTO((double *value, double *dvalue, int N, StatType *stats, int XVERB)); 370 420 Catalog *load_catalogs PROTO((SkyList *skylist, int *Ncatalog, int subselect, int hostID, char *hostpath, char *syncfile)); 371 int load_images PROTO((FITS_DB *db, SkyList *skylist, int UseFullOverlap ));421 int load_images PROTO((FITS_DB *db, SkyList *skylist, int UseFullOverlap, int UseAllImages)); 372 422 Image *select_images PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage, int UseFullOverlap)); 373 423 … … 448 498 int UpdateObjects (Catalog *catalog, int Ncatalog, int Nloop); 449 499 int UpdateSimple (Catalog *catalog, int Ncatalog); 450 int UpdateChips (Catalog *catalog, int Ncatalog );500 int UpdateChips (Catalog *catalog, int Ncatalog, int Nloop); 451 501 int UpdateMosaic (Catalog *catalog, int Ncatalog); 452 502 int UpdateMeasures (Catalog *catalog, int Ncatalog); … … 457 507 458 508 int sun_ecliptic (double jd, double *lambda, double *beta, double *epsilon, double *Radius); 459 int ParFactor (double *pR, double *pD, double RA, double Dec, double Time , double Tmean);460 int FitPM ( PMFit *fit, double *X, double *dX, double *Y, double *dY, double *T, int Npts, int XVERB);461 int FitP ar (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *pR, double *pD, int Npts);462 int FitP MandPar (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *T, double *pR, double *pD, int Npts, int XVERB);509 int ParFactor (double *pR, double *pD, double RA, double Dec, double Time); 510 int FitPM (FitAstromResult *fit, FitAstromData *data, FitAstromPoint *points, int Npoints); 511 int FitPMandPar (FitAstromResult *fit, FitAstromData *data, FitAstromPoint *points, int Npoints); 512 int FitPosPMfixed (FitAstromResult *fit, FitAstromData *data, FitAstromPoint *points, int Npoints); 463 513 464 514 Mosaic *getMosaicForImage (off_t N); … … 661 711 int client_logger_init (char *dirname); 662 712 int client_logger_message (char *format,...); 713 714 int FitAstromSetChisq (FitAstromResult *fit, FitAstromPoint *points, int Npoints, FitMode mode); 715 double VectorFractionInterpolate (double *values, float fraction, int Npts); 716 int BootstrapRobustStats (FitAstromResult *result, FitAstromResult *fit, int Nfit, int mode); 717 int BootstrapResample (FitAstromPoint *sample, FitAstromPoint *points, int Npoints); 718 int CatalogMaxNmeasure (Catalog *catalog, int Ncatalog); 719 int FitAstromPoints_Project (FitStats *fitStats, double *Tmean, double *Trange, double *parRange); 720 int UpdateObjects_SelectMeasures (FitStats *fit, Average *average, SecFilt *secfilt, MeasureTiny *measure, Measure *measureBig, int isStack); 721 int UpdateObjects_Stack (Average *average, SecFilt *secfilt, MeasureTiny *measure, Measure *measureBig, int Nsecfilt, FitStats *fitStats); 722 int UpdateObjects_Chips (Average *average, SecFilt *secfilt, MeasureTiny *measure, Measure *measureBig, int Nsecfilt, FitStats *fitStats, int cat, off_t measOff); 723 724 void FitAstromResultInit (FitAstromResult *fit); 725 void FitAstromPointInit (FitAstromPoint *object); 726 void FitAstromDataFree (FitAstromData *fit); 727 FitAstromData *FitAstromDataInit (int Nterms); 728 void FitStatsFree (FitStats *fitStats); 729 void FitStatsSum (FitStats *src, FitStats *tgt); 730 void FitStatsReset (FitStats *tgt); 731 FitStats *FitStatsInit (int Nmax, int Nboot); 732 int FitAstromResultSetPM (FitAstromResult *fit, int Nfit, Average *average); 733 void AstromErrorSetLoop (int Nloop, int isImageMode);
Note:
See TracChangeset
for help on using the changeset viewer.
