IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2005, 7:10:17 PM (21 years ago)
Author:
eugene
Message:

working on SkyRegion conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/pmeasure.c

    r5448 r5451  
    66  int i, j, k, m, N;
    77  int Ngraph;
    8   char filename[128], catdir[256];
    98  double Mz, Mr, mag;
    109  double Radius, Rmin, Rmax;
     
    2221  if (!InitPhotcodes ()) return (FALSE);
    2322  if (!GetGraph (&graphmode, NULL, &Ngraph)) return (FALSE);
    24   if (VarConfig ("CATDIR", "%s", catdir) == NULL) return (FALSE);
    2523
    2624  f = (FILE *) NULL;
     
    7674
    7775  /* load sky from correct table */
    78   sky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, -1, VERBOSE);
    79   SkyTableSetFilenames (sky, CATDIR, "cpt");
     76  sky = GetSkyTable ();
    8077  skylist = SkyListByRadius (sky, -1, graphmode.coords.crval1, graphmode.coords.crval2, Radius);
    8178 
     
    8481   
    8582    /* lock, load, unlock catalog */
    86     catalog.filename = skylist[0].regions[j][0].filename;
     83    catalog.filename = (char *) skylist[0].regions[j][0].filename;
    8784    switch (lock_catalog (&catalog, LCK_SOFT)) {
    8885    case 2:
Note: See TracChangeset for help on using the changeset viewer.