Changeset 35736
- Timestamp:
- Jul 2, 2013, 11:01:06 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130509/Ohana/src/libdvo
- Files:
-
- 2 edited
-
include/dvo.h (modified) (1 diff)
-
src/BoundaryTree.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/Ohana/src/libdvo/include/dvo.h
r35731 r35736 329 329 double **dec; // DEC of projection cell center 330 330 int **cell; // zone,band -> proj cell sequence 331 int **projID; // zone,band -> proj cell ID 331 332 char ***name; // projection cell name 332 333 -
branches/eam_branches/ipp-20130509/Ohana/src/libdvo/src/BoundaryTree.c
r35731 r35736 84 84 ALLOCATE (tree->dY, int *, tree->Nzone); 85 85 ALLOCATE (tree->cell, int *, tree->Nzone); 86 ALLOCATE (tree->projID, int *, tree->Nzone); 86 87 ALLOCATE (tree->name, char **, tree->Nzone); 87 88 for (i = 0; i < tree->Nzone; i++) { … … 93 94 ALLOCATE (tree->dY[i], int, tree->Nband[i]); 94 95 ALLOCATE (tree->cell[i], int, tree->Nband[i]); 96 ALLOCATE (tree->projID[i], int, tree->Nband[i]); 95 97 ALLOCATE (tree->name[i], char *, tree->Nband[i]); 96 98 for (j = 0; j < tree->Nband[i]; j++) { … … 136 138 memcpy(tree->name[nz][nb], &name[i*BOUNDARY_TREE_NAME_LENGTH], BOUNDARY_TREE_NAME_LENGTH); 137 139 // 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]); 139 141 } 140 142
Note:
See TracChangeset
for help on using the changeset viewer.
