Changeset 37807 for trunk/Ohana/src/opihi/dvo/imlist.c
- Timestamp:
- Jan 11, 2015, 2:14:39 PM (12 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/dvo/imlist.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/opihi/dvo/imlist.c
r34088 r37807 38 38 } 39 39 40 // int RegionSelect = FALSE;41 // if ((N = get_argument (argc, argv, "-region"))) {42 // remove_argument (N, &argc, argv);43 // RegionSelect = TRUE;44 // }45 46 40 PhotcodeValue = NULL; 47 41 PhotcodeSelect = FALSE; … … 76 70 } 77 71 72 int MAX_LIST = -1; 73 if ((N = get_argument (argc, argv, "-max-list"))) { 74 remove_argument (N, &argc, argv); 75 MAX_LIST = atoi (argv[N]); 76 remove_argument (N, &argc, argv); 77 } 78 78 79 if (argc != 1) { 79 gprint (GP_ERR, "USAGE: image [-time start range] [-region] [-name string] \n");80 gprint (GP_ERR, "USAGE: image [-time start range] [-region] [-name string] [-photcode code] [-Nphotcode N] [-max-list N]\n"); 80 81 return (FALSE); 81 82 } … … 83 84 if ((image = LoadImagesDVO (&Nimage)) == NULL) return (FALSE); 84 85 image_subset (image, Nimage, &subset, &Nsubset, selection, tzero, trange, TimeSelect); 85 BuildChipMatch (image, Nimage);86 MAX_LIST = MAX_LIST < 0 ? Nsubset : MIN(MAX_LIST, Nsubset); 86 87 87 88 GetTimeFormat (&TimeReference, &TimeFormat); 88 89 89 for (j = 0; j < Nsubset; j++) {90 for (j = 0; j < MAX_LIST; j++) { 90 91 i = subset[j]; 91 92 if (NameSelect && (strstr (image[i].name, name) == (char *) NULL)) continue; … … 97 98 } 98 99 } 99 if (!FindMosaicForImage (image, Nimage, i)) continue;100 100 t = TimeValue (image[i].tzero, TimeReference, TimeFormat); 101 101 if (!strcmp(&image[i].coords.ctype[4], "-DIS")) {
Note:
See TracChangeset
for help on using the changeset viewer.
