Changeset 27421
- Timestamp:
- Mar 23, 2010, 5:17:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225/Ohana/src/opihi/dvo/images.c
r20936 r27421 21 21 char name[256]; 22 22 int typehash; 23 23 PhotCode *photcode; 24 int Nsec, photcodeEquiv; 25 26 if (!InitPhotcodes ()) return (FALSE); 24 27 if (!style_args (&graphmode, &argc, argv, &kapa)) goto usage; 25 28 … … 41 44 remove_argument (N, &argc, argv); 42 45 HIDDEN = TRUE; 46 } 47 48 photcode = NULL; 49 photcodeEquiv = FALSE; 50 if ((N = get_argument (argc, argv, "-p"))) { 51 remove_argument (N, &argc, argv); 52 photcode = GetPhotcodebyName (argv[N]); 53 if (photcode == NULL) { 54 gprint (GP_ERR, "photcode %s not found\n", argv[N]); 55 return FALSE; 56 } 57 remove_argument (N, &argc, argv); 58 Nsec = GetPhotcodeNsec (photcode->code); 59 if (Nsec != -1) photcodeEquiv = TRUE; 60 } 61 if ((N = get_argument (argc, argv, "-photcode"))) { 62 remove_argument (N, &argc, argv); 63 photcode = GetPhotcodebyName (argv[N]); 64 if (photcode == NULL) { 65 gprint (GP_ERR, "photcode %s not found\n", argv[N]); 66 return FALSE; 67 } 68 remove_argument (N, &argc, argv); 69 Nsec = GetPhotcodeNsec (photcode->code); 70 if (Nsec != -1) photcodeEquiv = TRUE; 43 71 } 44 72 … … 122 150 if (TimeSelect && ((image[i].tzero < tzero) || (image[i].tzero+image[i].trate*image[i].NY > tzero + trange))) continue; 123 151 if (!FindMosaicForImage (image, Nimage, i)) continue; 152 if (photcode) { 153 if ( photcodeEquiv && (photcode[0].code != GetPhotcodeEquivCodebyCode(image[i].photcode))) continue; 154 if (!photcodeEquiv && (photcode[0].code != image[i].photcode)) continue; 155 } 124 156 125 157 Npts = 4;
Note:
See TracChangeset
for help on using the changeset viewer.
