IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:46:01 AM (14 years ago)
Author:
eugene
Message:

updates for pedantic gcc, mods to relphot average mags to handle GPC1 stacks

Location:
trunk/Ohana/src/relastro/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/src/CoordOps.c

    r32346 r34088  
    1111
    1212  off_t N;
    13   Image *images;
    1413
    15   images = getimages (&N, NULL);
     14  // Images *images = getimages (&N, NULL); return value ignored
     15  getimages (&N, NULL);
    1616
    1717  NoldCoords = N;
  • trunk/Ohana/src/relastro/src/ImageOps.c

    r33652 r34088  
    426426    XY_to_LM (&Rx, &Dx, dLsig, 0.0, coords);
    427427    dP0 = 3600.0 * hypot(Rx - Ro, Dx - Do); // convert to arcsec
    428     XY_to_LM (&Rx, &Dx, 0.0, dLsig, coords);
     428    XY_to_LM (&Rx, &Dx, 0.0, dMsig, coords);
    429429    dP1 = 3600.0 * hypot(Rx - Ro, Dx - Do); // convert to arcsec
    430430    dPosSys = 0.5 * (dP0 + dP1);
  • trunk/Ohana/src/relastro/src/StarMaps.c

    r33652 r34088  
    5757int updateStarMaps(Catalog *catalog) {
    5858
    59   Image *images;
    6059  off_t i, N, Nimages;
    6160  int xbin, ybin;
     
    6463  gettimeofday (&start, (void *) NULL);
    6564
    66   images = getimages(&Nimages, NULL);
     65  // Images *images = getimages(&Nimages, NULL); return value ignored
     66  getimages(&Nimages, NULL);
    6767
    6868  for (i = 0; i < catalog[0].Nmeasure; i++) {
  • trunk/Ohana/src/relastro/src/relastro_merge_source.c

    r33652 r34088  
    1818  dvo_catalog_init (&catalog_dst, TRUE);
    1919  SkyRegion *region_src = NULL;
    20   SkyRegion *region_dst = NULL;
     20  // SkyRegion *region_dst = NULL;
    2121
    2222  // load data from each region file, only use bright stars
     
    2626      region_src = &sky[0].regions[i];
    2727    }
     28    // currently, we only accept dst == src...
    2829    if (sky[0].regions[i].index == CAT_ID_DST) {
    2930      catalog_dst.filename = sky[0].filename[i];
    30       region_dst = &sky[0].regions[i];
     31      // region_dst = &sky[0].regions[i];
    3132    }
    3233  }   
     
    9192
    9293    // repoint the src measures at this object
    93     Measure *measures_src;
    94     ALLOCATE (measures_src, Measure, catalog_src.average[index_src].Nmeasure);
    9594    m = catalog_src.average[index_src].measureOffset;
    9695    for (i = 0; i < catalog_src.average[index_src].Nmeasure; i++, m++) {
  • trunk/Ohana/src/relastro/src/resort_catalog.c

    r33652 r34088  
    112112  int NmeasureTotal = 0;
    113113  int measureOffsetOK = TRUE;
    114   for (i = 0; i < catalog[0].Naverage; i++) {
     114  for (i = 0; i < Naverage; i++) {
    115115    NmeasureTotal += catalog[0].average[i].Nmeasure;
    116116    if (VERBOSE && !(NmeasureTotal <= catalog[0].Nmeasure)) {
  • trunk/Ohana/src/relastro/src/select_images.c

    r33652 r34088  
    292292
    293293  double theta1, theta2;
    294   double Theta1, Theta2;
    295294
    296295  theta1 = opening_angle (x1[0], y1[0], x2[0], y2[0], x1[1], y1[1]);
     
    305304  }
    306305
    307   Theta1 = theta1;
    308   Theta2 = theta2;
    309306  theta1 = opening_angle (x2[0], y2[0], x1[1], y1[1], x2[1], y2[1]);
    310307  theta2 = opening_angle (x2[0], y2[0], x1[1], y1[1], x1[0], y1[0]);
  • trunk/Ohana/src/relastro/src/testparallax.c

    r33652 r34088  
    1010  double R[NPTS], D[NPTS], Time[NPTS], JD[NPTS];
    1111  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;
    1313  Coords coords;
    1414  PMFit fitPAR;
     
    8282  }
    8383  TrefMean = TrefS / Npts;
    84   TjyrsMean = TjyrsS / Npts;
     84  // double TjyrsMean = TjyrsS / Npts;
    8585
    8686  for (i = 0; i < Npts; i++) {
Note: See TracChangeset for help on using the changeset viewer.