- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
Ohana (modified) (1 prop)
-
Ohana/src/relastro (modified) (1 prop)
-
Ohana/src/relastro/include/relastro.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/tap_branches/Ohana/src/relastro
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana/src/relastro merged eligible /branches/eam_branches/20091201/Ohana/src/relastro 26295-26885 /branches/eam_branches/Ohana.20100407/src/relastro 27635-27772 /branches/eam_branches/largefiles.20100314/Ohana/src/relastro 27281-27430 /branches/eam_branches/relastro.20100326 27487-27559 /branches/pap_delete/Ohana/src/relastro 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/tap_branches/Ohana/src/relastro/include/relastro.h
r24308 r27838 91 91 92 92 int VERBOSE; 93 int VERBOSE2; 93 94 94 95 int RESET; 96 int NLOOP; 95 97 int UPDATE; 96 98 int PLOTSTUFF; … … 104 106 int CHIPORDER; 105 107 108 int UserCatalog; 109 double UserCatalogRA, UserCatalogDEC; 110 106 111 char *PHOTCODE_KEEP_LIST, *PHOTCODE_SKIP_LIST; 107 112 int NphotcodesKeep, NphotcodesSkip; … … 140 145 char *GetPhotnamebyCode PROTO((PhotCodeData *photcodes, int code)); 141 146 void InterpolateGrid PROTO((float *buffer, int Nx, int Ny, Coords *ccd, Coords *gcoords)); 142 int *SelectRefMosaic PROTO((Mosaic **refmosaic, int *Nimage));147 off_t *SelectRefMosaic PROTO((Mosaic **refmosaic, off_t *Nimage)); 143 148 int args PROTO((int argc, char **argv)); 144 149 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog)); … … 151 156 void dump_grid PROTO((void)); 152 157 int edge_check PROTO((double *x1, double *y1, double *x2, double *y2)); 153 void findImages PROTO((Catalog *catalog, int Ncatalog ));158 void findImages PROTO((Catalog *catalog, int Ncatalog, int MATCHCAT)); 154 159 int findMosaics PROTO((Catalog *catalog, int Ncatalog)); 155 Image *find_images PROTO((FITS_DB *db, GSCRegion *region, int Nregion, int *Nimage, int **LineNum));160 Image *find_images PROTO((FITS_DB *db, GSCRegion *region, off_t Nregion, off_t *Nimage, off_t **LineNum)); 156 161 void set_db (FITS_DB *in); 157 int Shutdown (char *format, ...) ;162 int Shutdown (char *format, ...) OHANA_FORMAT(printf, 1, 2); 158 163 void TrapSignal (int sig); 159 164 void SetProtect (int mode); 160 165 int SetSignals (void); 161 166 162 GSCRegion *find_regions PROTO((Image *image, int Nimage, int *Nregions, GSCRegion *fullregion));167 GSCRegion *find_regions PROTO((Image *image, off_t Nimage, int *Nregions, GSCRegion *fullregion)); 163 168 void freeGridBins PROTO((int Ncatalog)); 164 169 void freeImageBins PROTO((int Ncatalog)); … … 166 171 void free_catalogs PROTO((Catalog *catalog, int Ncatalog)); 167 172 int gcatalog PROTO((Catalog *catalog, int FINAL)); 168 Coords *getCoords PROTO((int meas, int cat));169 float getMcal PROTO(( int meas, int cat));170 float getMgrid PROTO(( int meas, int cat));171 float getMmos PROTO(( int meas, int cat));172 float getMrel PROTO((Catalog *catalog, int meas, int cat));173 GSCRegion *get_regions PROTO((double minRa, double maxRa, double minDec, double maxDec, int *Nregions));174 void getfullregion PROTO((Image *image, int Nimage, GSCRegion *fullregion));175 Image *getimage PROTO(( int N));176 Image *getimages PROTO(( int *N));173 // Coords *getCoords PROTO((off_t meas, int cat)); 174 float getMcal PROTO((off_t meas, int cat)); 175 float getMgrid PROTO((off_t meas, int cat)); 176 float getMmos PROTO((off_t meas, int cat)); 177 float getMrel PROTO((Catalog *catalog, off_t meas, int cat)); 178 GSCRegion *get_regions PROTO((double minRa, double maxRa, double minDec, double maxDec, off_t *Nregions)); 179 void getfullregion PROTO((Image *image, off_t Nimage, GSCRegion *fullregion)); 180 Image *getimage PROTO((off_t N)); 181 Image *getimages PROTO((off_t *N)); 177 182 void global_stats PROTO((Catalog *catalog, int Ncatalog)); 178 183 void initGrid PROTO((int dX, int dY)); 179 184 void initGridBins PROTO((Catalog *catalog, int Ncatalog)); 180 void initImageBins PROTO((Catalog *catalog, int Ncatalog ));181 void initImages PROTO((Image *input, int N));185 void initImageBins PROTO((Catalog *catalog, int Ncatalog, int FULLINIT)); 186 void initImages PROTO((Image *input, off_t N)); 182 187 void initMosaicBins PROTO((Catalog *catalog, int Ncatalog)); 183 void initMosaicGrid PROTO((Image *image, int Nimage));184 void initMosaics PROTO((Image *image, int Nimage));188 void initMosaicGrid PROTO((Image *image, off_t Nimage)); 189 void initMosaics PROTO((Image *image, off_t Nimage)); 185 190 void initMrel PROTO((Catalog *catalog, int Ncatalog)); 186 191 void initialize PROTO((int argc, char **argv)); … … 189 194 Catalog *load_catalogs PROTO((SkyList *skylist, int *Ncatalog, int subselect)); 190 195 SkyList *load_images PROTO((FITS_DB *db, SkyRegion *region)); 191 Image *select_images PROTO((SkyList *skylist, Image *timage, int Ntimage, int **LineNumber, int *Nimage));196 Image *select_images PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage)); 192 197 193 198 void check_permissions (char *basefile); … … 198 203 199 204 int main PROTO((int argc, char **argv)); 200 void mark_images PROTO((Image *image, int Nimage, Image *timage, int Ntimage));201 void matchImage PROTO((Catalog *catalog, int meas, int cat));202 void matchMosaics PROTO((Catalog *catalog, int meas, int cat));203 GSCRegion *name_region PROTO((char *name, int *Nregions));205 void mark_images PROTO((Image *image, off_t Nimage, Image *timage, off_t Ntimage)); 206 void matchImage PROTO((Catalog *catalog, off_t meas, int cat, int MATCHCAT)); 207 void matchMosaics PROTO((Catalog *catalog, off_t meas, int cat)); 208 GSCRegion *name_region PROTO((char *name, off_t *Nregions)); 204 209 double opening_angle PROTO((double x1, double y1, double x2, double y2, double x3, double y3)); 205 210 void plot_chisq PROTO((Catalog *catalog, int Ncatalog)); … … 224 229 int setMrelOutput PROTO((Catalog *catalog, int Ncatalog, int mark)); 225 230 void set_ZP PROTO((double ZERO)); 226 int setrefcode PROTO((Image *image, int Nimage));231 int setrefcode PROTO((Image *image, off_t Nimage)); 227 232 void skip_measurements PROTO((Catalog *catalog, int pass)); 228 233 void sortA PROTO((double *X, int N)); … … 250 255 void fit_free (CoordFit *fit); 251 256 void fit_add (CoordFit *fit, double x1, double y1, double x2, double y2, double wt); 252 voidfit_eval (CoordFit *fit);257 int fit_eval (CoordFit *fit); 253 258 void fit_apply (CoordFit *fit, double *x2, double *y2, double x1, double y1); 254 259 double **poly2d_dx (double **poly, int Nx, int Ny); … … 256 261 double **poly2d_copy (double **poly, int Nx, int Ny); 257 262 double poly2d_eval (double **poly, int Nx, int Ny, double x, double y); 258 CoordFit *fit_apply_coords (CoordFit *fit, Coords *coords);263 int fit_apply_coords (CoordFit *fit, Coords *coords); 259 264 int CoordsGetCenter (CoordFit *fit, double tol, double *xo, double *yo); 260 265 CoordFit *CoordsSetCenter (CoordFit *input, double Xo, double Yo); 261 voidFitChip (StarData *raw, StarData *ref, int Nmatch, Coords *coords);266 int FitChip (StarData *raw, StarData *ref, int Nmatch, Coords *coords); 262 267 void FitMosaic (StarData *raw, StarData *ref, int Nmatch, Coords *coords); 263 268 void FitSimple (StarData *raw, StarData *ref, int Nmatch, Coords *coords); … … 268 273 int UpdateMosaic (Catalog *catalog, int Ncatalog); 269 274 int UpdateMeasures (Catalog *catalog, int Ncatalog); 270 void fixImageRaw (Catalog *catalog, int Ncatalog, int im);275 void fixImageRaw (Catalog *catalog, int Ncatalog, off_t im); 271 276 void FlagOutliers(Catalog *catalog); 272 277 int MeasFilterTest(Measure *measure); 273 278 274 279 int sun_ecliptic (double jd, double *lambda, double *beta, double *epsilon); 275 int ParFactor (double *pR, double *pD, double R, double D, time_t T);280 int ParFactor (double *pR, double *pD, double R, double D, double T, double Tmean); 276 281 int FitPM (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *T, int Npts); 277 282 int FitPar (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *pR, double *pD, int Npts); 278 283 int FitPMandPar (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *T, double *pR, double *pD, int Npts); 279 284 280 Mosaic *getMosaicForImage ( int N);281 282 StarData *getImageRef (Catalog *catalog, int Ncatalog, int im, int *Nstars, CoordMode mode);283 StarData *getImageRaw (Catalog *catalog, int Ncatalog, int im, int *Nstars, CoordMode mode);284 285 Mosaic *getmosaics ( int *N);286 void initMosaics (Image *image, int Nimage);287 StarData *getMosaicRaw (Catalog *catalog, int Ncatalog, int mos, int *Nstars);288 StarData *getMosaicRef (Catalog *catalog, int Ncatalog, int mos, int *Nstars);289 Mosaic *getMosaicForImage ( int im);285 Mosaic *getMosaicForImage (off_t N); 286 287 StarData *getImageRef (Catalog *catalog, int Ncatalog, off_t im, off_t *Nstars, CoordMode mode); 288 StarData *getImageRaw (Catalog *catalog, int Ncatalog, off_t im, off_t *Nstars, CoordMode mode); 289 290 Mosaic *getmosaics (off_t *N); 291 void initMosaics (Image *image, off_t Nimage); 292 StarData *getMosaicRaw (Catalog *catalog, int Ncatalog, off_t mos, off_t *Nstars); 293 StarData *getMosaicRef (Catalog *catalog, int Ncatalog, off_t mos, off_t *Nstars); 294 Mosaic *getMosaicForImage (off_t im); 290 295 291 296 double getMeanR (Measure *measure, Average *average, SecFilt *secfilt); … … 297 302 int relastro_objects (void); 298 303 int UpdateObjectOffsets (SkyList *skylist); 304 305 int relastroVisualPlotRawRef(StarData *raw, StarData *ref, double dRmax, int numObj); 306 int relastroVisualPlotScatter(double values[], double thresh, int npts); 307 int relastroVisualPlotOutliers(Catalog *catalog, int offset, int Nmeasure, 308 StatType statsR, StatType statsD, double thresh); 309 310 311 312 int FixProblemImages (SkyList *skylist); 313 int *getCatlist (int *N, off_t im); 314 315 void initCoords (void); 316 void getOffsets (double *dPos, off_t *nPos, off_t N); 317 void saveOffsets (double dPos, off_t nPos, off_t N); 318 void setBadCoords (off_t N); 319 int badCoords (off_t N); 320 Coords *getCoords (off_t N); 321 int saveCoords (Coords *coords, off_t N); 322 void resetImageRaw (Catalog *catalog, int Ncatalog, off_t im);
Note:
See TracChangeset
for help on using the changeset viewer.
