IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 12, 2014, 9:24:36 AM (12 years ago)
Author:
eugene
Message:

adding stellar params; associating image maps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/AstromOffsetMapIO.c

    r37387 r37389  
    107107  ALLOCATE (table->map, AstromOffsetMap, Nmap);
    108108
    109   // find the max value of ID
     109  // find the max value of imageID
    110110  int MaxID = 0;
    111111  for (i = 0; i < Nmap; i++) {
    112     MaxID = MAX(map_disk[i].ID, MaxID);
     112    MaxID = MAX(map_disk[i].imageID, MaxID);
    113113  }
    114114  MaxID ++; // we want the outer bound, not the last value
     
    119119    table->IDtoSeq[i] = -1;
    120120  }
    121   table->MaxID = MaxID;
     121  table->MaxID = MaxID - 1;
    122122
    123123  // assign the ID values
    124124  for (i = 0; i < Nmap; i++) {
    125     int ID = map_disk[i].ID;
    126     myAssert (table->IDtoSeq[ID] == -1, "oops, duplicate map IDs");
     125    int ID = map_disk[i].imageID;
     126    myAssert (table->IDtoSeq[ID] == -1, "oops, duplicate image IDs");
    127127    table->IDtoSeq[ID] = i;
    128128  }
     
    162162
    163163  AstromOffsetMap_Disk_6x6 *map_disk = NULL;
    164   ALLOCATE (map_disk, AstromOffsetMap_Disk_6x6, Nmap);
     164  ALLOCATE (map_disk, AstromOffsetMap_Disk_6x6, table->Nmap);
    165165
    166166  // assign the map values (this allocates just the area needed for each image, not the
Note: See TracChangeset for help on using the changeset viewer.