IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 27, 2010, 10:39:57 AM (16 years ago)
Author:
eugene
Message:

adding checks for bad fit and repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relastro.20100326/src/CoordOps.c

    r27488 r27489  
    1010void initCoords (void) {
    1111
    12   images = getImages (&N);
     12  off_t N;
     13  Image *images;
     14
     15  images = getimages (&N);
    1316
    1417  NoldCoords = N;
     
    3235}
    3336
    34 Coords getCoords (off_t N) {
     37Coords *getCoords (off_t N) {
    3538
    3639  if (N < 0) return NULL;
     
    6871}
    6972 
     73void getOffsets (double *dPos, off_t *nPos, off_t N) {
     74
     75  if (N < 0) return;
     76  if (N >= NoldCoords) return;
     77
     78  *dPos = dPosSum[N];
     79  *nPos = nPosSum[N];
     80 
     81  return;
     82}
     83 
Note: See TracChangeset for help on using the changeset viewer.