Changeset 34088 for trunk/Ohana/src/relastro
- Timestamp:
- Jun 26, 2012, 11:46:01 AM (14 years ago)
- Location:
- trunk/Ohana/src/relastro/src
- Files:
-
- 7 edited
-
CoordOps.c (modified) (1 diff)
-
ImageOps.c (modified) (1 diff)
-
StarMaps.c (modified) (2 diffs)
-
relastro_merge_source.c (modified) (3 diffs)
-
resort_catalog.c (modified) (1 diff)
-
select_images.c (modified) (2 diffs)
-
testparallax.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/src/CoordOps.c
r32346 r34088 11 11 12 12 off_t N; 13 Image *images;14 13 15 images = getimages (&N, NULL); 14 // Images *images = getimages (&N, NULL); return value ignored 15 getimages (&N, NULL); 16 16 17 17 NoldCoords = N; -
trunk/Ohana/src/relastro/src/ImageOps.c
r33652 r34088 426 426 XY_to_LM (&Rx, &Dx, dLsig, 0.0, coords); 427 427 dP0 = 3600.0 * hypot(Rx - Ro, Dx - Do); // convert to arcsec 428 XY_to_LM (&Rx, &Dx, 0.0, d Lsig, coords);428 XY_to_LM (&Rx, &Dx, 0.0, dMsig, coords); 429 429 dP1 = 3600.0 * hypot(Rx - Ro, Dx - Do); // convert to arcsec 430 430 dPosSys = 0.5 * (dP0 + dP1); -
trunk/Ohana/src/relastro/src/StarMaps.c
r33652 r34088 57 57 int updateStarMaps(Catalog *catalog) { 58 58 59 Image *images;60 59 off_t i, N, Nimages; 61 60 int xbin, ybin; … … 64 63 gettimeofday (&start, (void *) NULL); 65 64 66 images = getimages(&Nimages, NULL); 65 // Images *images = getimages(&Nimages, NULL); return value ignored 66 getimages(&Nimages, NULL); 67 67 68 68 for (i = 0; i < catalog[0].Nmeasure; i++) { -
trunk/Ohana/src/relastro/src/relastro_merge_source.c
r33652 r34088 18 18 dvo_catalog_init (&catalog_dst, TRUE); 19 19 SkyRegion *region_src = NULL; 20 SkyRegion *region_dst = NULL;20 // SkyRegion *region_dst = NULL; 21 21 22 22 // load data from each region file, only use bright stars … … 26 26 region_src = &sky[0].regions[i]; 27 27 } 28 // currently, we only accept dst == src... 28 29 if (sky[0].regions[i].index == CAT_ID_DST) { 29 30 catalog_dst.filename = sky[0].filename[i]; 30 region_dst = &sky[0].regions[i];31 // region_dst = &sky[0].regions[i]; 31 32 } 32 33 } … … 91 92 92 93 // repoint the src measures at this object 93 Measure *measures_src;94 ALLOCATE (measures_src, Measure, catalog_src.average[index_src].Nmeasure);95 94 m = catalog_src.average[index_src].measureOffset; 96 95 for (i = 0; i < catalog_src.average[index_src].Nmeasure; i++, m++) { -
trunk/Ohana/src/relastro/src/resort_catalog.c
r33652 r34088 112 112 int NmeasureTotal = 0; 113 113 int measureOffsetOK = TRUE; 114 for (i = 0; i < catalog[0].Naverage; i++) {114 for (i = 0; i < Naverage; i++) { 115 115 NmeasureTotal += catalog[0].average[i].Nmeasure; 116 116 if (VERBOSE && !(NmeasureTotal <= catalog[0].Nmeasure)) { -
trunk/Ohana/src/relastro/src/select_images.c
r33652 r34088 292 292 293 293 double theta1, theta2; 294 double Theta1, Theta2;295 294 296 295 theta1 = opening_angle (x1[0], y1[0], x2[0], y2[0], x1[1], y1[1]); … … 305 304 } 306 305 307 Theta1 = theta1;308 Theta2 = theta2;309 306 theta1 = opening_angle (x2[0], y2[0], x1[1], y1[1], x2[1], y2[1]); 310 307 theta2 = opening_angle (x2[0], y2[0], x1[1], y1[1], x1[0], y1[0]); -
trunk/Ohana/src/relastro/src/testparallax.c
r33652 r34088 10 10 double R[NPTS], D[NPTS], Time[NPTS], JD[NPTS]; 11 11 double X[NPTS], Y[NPTS], dX[NPTS], dY[NPTS], pX[NPTS], pY[NPTS]; 12 double Tref[NPTS], Tjyrs[NPTS], TrefS, TjyrsS, TrefMean, TjyrsMean,Ro, Do;12 double Tref[NPTS], Tjyrs[NPTS], TrefS, TjyrsS, TrefMean, Ro, Do; 13 13 Coords coords; 14 14 PMFit fitPAR; … … 82 82 } 83 83 TrefMean = TrefS / Npts; 84 TjyrsMean = TjyrsS / Npts;84 // double TjyrsMean = TjyrsS / Npts; 85 85 86 86 for (i = 0; i < Npts; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
