Changeset 536

Show
Ignore:
Timestamp:
03/30/08 23:11:07 (15 months ago)
Author:
hobu
Message:

add summary of points by return

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/apps/lascommon.c

    r483 r536  
    164164 
    165165    long rgpsum = 0; 
     166    long pbretsum = 0; 
     167     
    166168    int i = 0; 
    167169 
     
    225227                    LASPoint_GetClassification(summary->pmax) 
    226228                    ); 
     229 
     230    fprintf(stderr, "\n  Number of Points by Return\n"); 
     231    fprintf(stderr, "---------------------------------------------------------\n"); 
     232 
     233    for (i = 0; i < 5; i++) { 
     234        pbretsum = pbretsum + summary->number_of_points_by_return[i]; 
     235        fprintf(stderr, "\t(%d) %d", i,summary->number_of_points_by_return[i]); 
     236    } 
     237    fprintf(stderr, "\n Total Points: %ld\n", pbretsum);  
    227238                     
    228239    fprintf(stderr, "\n  Number of Returns by Pulse\n");