Changeset 5448 for trunk/Ohana/src/opihi/dvo/lcurve.c
- Timestamp:
- Oct 27, 2005, 10:38:30 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/lcurve.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/lcurve.c
r5320 r5448 8 8 int Ngraph, Xgraph, TimeFormat; 9 9 int Nstars, found, AutoLimits, ErrorBars, GalMag, AbsPhot, SaveVectors; 10 int i, j, m, N, NPTS, *N1 , Nregions;10 int i, j, m, N, NPTS, *N1; 11 11 time_t TimeReference; 12 12 struct tm *timeptr; 13 RegionFile *regions;14 13 Vector *xvec, *yvec; 15 14 Vector Xvec, Yvec, dYvec; 16 15 Catalog catalog; 17 16 Graphdata graphmode; 17 SkyTable *sky; 18 SkyList *skylist; 18 19 19 20 VarConfig ("CATDIR", "%s", catdir); … … 69 70 } 70 71 72 /* load sky from correct table */ 73 sky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, -1, VERBOSE); 74 SkyTableSetFilenames (sky, CATDIR, "cpt"); 75 71 76 Ra = atof (argv[1]); 72 77 Dec = atof (argv[2]); 73 78 Radius = atof (argv[3]); 74 79 75 regions = find_regions (Ra, Dec, Radius, &Nregions);76 77 if ( Nregions > 1) {80 skylist = SkyListByRadius (sky, -1, Ra, Dec, Radius); 81 82 if (skylist[0].Nregions > 1) { 78 83 fprintf (stderr, "warning, radius overlaps region boundary, not yet implemented\n"); 79 84 } 80 85 81 86 /* set filename, read in header */ 82 sprintf (filename, "%s/%s", catdir, regions[0].name); 83 catalog.filename = filename; 87 catalog.filename = skylist[0].regions[0][0].filename; 84 88 switch (lock_catalog (&catalog, LCK_SOFT)) { 85 89 case 2: … … 198 202 if (catalog.measure != 0) free (catalog.measure); 199 203 204 SkyListFree (skylist); 200 205 return (TRUE); 201 202 206 }
Note:
See TracChangeset
for help on using the changeset viewer.
