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