Changeset 4470 for trunk/Ohana/src/opihi/dvo/dmagaves.c
- Timestamp:
- Jul 6, 2005, 2:37:31 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/dmagaves.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/dmagaves.c
r4420 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, M2; 13 int i, j, k, m, N1 ;13 int i, j, k, m, N1, N; 14 14 int Npts, NPTS, param, mode[3]; 15 15 int Ngraph, Nsec, Nregions; … … 31 31 /* find CATDIR in config system */ 32 32 VarConfig ("CATDIR", "%s", catdir); 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 } 33 41 34 42 /* interpret command-line options */ … … 57 65 } 58 66 59 /* find catalog files which overlap this region */ 60 Radius = MAX (fabs(graphsky.xmax), fabs(graphsky.ymax)); 61 regions = find_regions (graphsky.coords.crval1, graphsky.coords.crval2, Radius, &Nregions); 62 if (!SetImageSelection (param, &graphsky, TRUE)) return (FALSE); 63 67 /* determine region-file names */ 68 if (CPTfile == NULL) { 69 float Radius; 70 Radius = MAX (fabs(graphsky.xmax), fabs(graphsky.ymax)); 71 regions = find_regions (graphsky.coords.crval1, graphsky.coords.crval2, Radius, &Nregions); 72 } else { 73 Nregions = 1; 74 ALLOCATE (regions, RegionFile, 1); 75 strcpy (regions[0].name, CPTfile); 76 } 77 64 78 /* init vectors to save data */ 65 79 Npts = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
