IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35736


Ignore:
Timestamp:
Jul 2, 2013, 11:01:06 AM (13 years ago)
Author:
eugene
Message:

pass projID with boundary tree

Location:
branches/eam_branches/ipp-20130509/Ohana/src/libdvo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/Ohana/src/libdvo/include/dvo.h

    r35731 r35736  
    329329  double  **dec; // DEC of projection cell center
    330330  int    **cell; // zone,band -> proj cell sequence
     331  int    **projID; // zone,band -> proj cell ID
    331332  char  ***name; // projection cell name
    332333 
  • branches/eam_branches/ipp-20130509/Ohana/src/libdvo/src/BoundaryTree.c

    r35731 r35736  
    8484    ALLOCATE (tree->dY,      int *, tree->Nzone);
    8585    ALLOCATE (tree->cell,    int *, tree->Nzone);
     86    ALLOCATE (tree->projID,  int *, tree->Nzone);
    8687    ALLOCATE (tree->name,  char **, tree->Nzone);
    8788    for (i = 0; i < tree->Nzone; i++) {
     
    9394      ALLOCATE (tree->dY[i],      int, tree->Nband[i]);
    9495      ALLOCATE (tree->cell[i],    int, tree->Nband[i]);
     96      ALLOCATE (tree->projID[i],  int, tree->Nband[i]);
    9597      ALLOCATE (tree->name[i], char *, tree->Nband[i]);
    9698      for (j = 0; j < tree->Nband[i]; j++) {
     
    136138      memcpy(tree->name[nz][nb], &name[i*BOUNDARY_TREE_NAME_LENGTH], BOUNDARY_TREE_NAME_LENGTH);
    137139      // XXX parse out the ID from the name (skycell.NNNN)
    138       tree->projID[nz][nb] = atoi(&tree->name[nz][nb][9]);
     140      tree->projID[nz][nb] = atoi(&tree->name[nz][nb][8]);
    139141    }
    140142
Note: See TracChangeset for help on using the changeset viewer.