Changeset 4470 for trunk/Ohana/src/opihi/dvo/cmd.c
- Timestamp:
- Jul 6, 2005, 2:37:31 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/cmd.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/cmd.c
r3462 r4470 9 9 Vector *xvec, *yvec; 10 10 11 char filename[256], catdir[256] ;11 char filename[256], catdir[256], *CPTfile; 12 12 double Radius, *M1, *M3; 13 int i, j, m, i1, i3, N1, N3 ;13 int i, j, m, i1, i3, N1, N3, N; 14 14 int Npts, NPTS, mode[3]; 15 15 int Ngraph, Nsec, Nregions; … … 32 32 VarConfig ("CATDIR", "%s", catdir); 33 33 34 /* check for CPT selection */ 35 CPTfile = NULL; 36 if (N = get_argument (argc, argv, "-cpt")) { 37 remove_argument (N, &argc, argv); 38 CPTfile = strcreate (argv[N]); 39 remove_argument (N, &argc, argv); 40 } 41 34 42 /* interpret command-line options */ 35 43 if (!SetPhotSelections (&argc, argv)) goto usage; … … 43 51 if (!GetPhotcodeInfo (argv[5], &code[2], &mode[2])) return (FALSE); 44 52 45 /* find catalog files which overlap this region */ 46 Radius = MAX (fabs(graphsky.xmax), fabs(graphsky.ymax)); 47 regions = find_regions (graphsky.coords.crval1, graphsky.coords.crval2, Radius, &Nregions); 53 /* determine region-file names */ 54 if (CPTfile == NULL) { 55 float Radius; 56 Radius = MAX (fabs(graphsky.xmax), fabs(graphsky.ymax)); 57 regions = find_regions (graphsky.coords.crval1, graphsky.coords.crval2, Radius, &Nregions); 58 } else { 59 Nregions = 1; 60 ALLOCATE (regions, RegionFile, 1); 61 strcpy (regions[0].name, CPTfile); 62 } 48 63 49 64 /* init vectors to save data */
Note:
See TracChangeset
for help on using the changeset viewer.
