IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33242


Ignore:
Timestamp:
Feb 10, 2012, 2:10:21 PM (14 years ago)
Author:
eugene
Message:

fix some minor index-related bugs (setphot_client now seems to work)

Location:
branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/ImageSubset.c

    r33241 r33242  
    6969  // XXX free the fits table data here
    7070
    71   ALLOCATE (image, ImageSubset, Ncol);
     71  ALLOCATE (image, ImageSubset, Nrow);
    7272  for (i = 0; i < Nrow; i++) {
    7373    image[i].imageID       = imageID[i];
     
    7777    image[i].dMcal         = dMcal[i];
    7878  }
    79   fprintf (stderr, "loaded data for %d images\n", Ncol);
     79  fprintf (stderr, "loaded data for %lld images\n", (long long) Nrow);
    8080
    8181  free (Mcal);
     
    8585  free (flags);
    8686
    87   *nimage = Ncol;
     87  *nimage = Nrow;
    8888  return image;
    8989}
  • branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/update_dvo_setphot_client.c

    r33241 r33242  
    1717  }
    1818  ALLOCATE (index, off_t, maxID + 1);
     19  for (i = 0; i < maxID + 1; i++) {
     20    index[i] = -1;
     21  }
    1922  for (i = 0; i < Nimage; i++) {
    2023    if (!image[i].imageID) continue; // images with ID == 0 are virtual
Note: See TracChangeset for help on using the changeset viewer.