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/gstar.c

    r5448 r5451  
    55int gstar (int argc, char **argv) {
    66 
    7   char filename[128], catdir[256], *date;
     7  char *date;
    88  double Ra, Dec, Radius, Radius2, r, dec0, dec1;
    99  double Mcat, Mrel;
     
    1818  PhotCode *code;
    1919
    20   if (VarConfig ("CATDIR", "%s", catdir) == NULL) return (FALSE);
    21 
    2220  if (!InitPhotcodes ()) return (FALSE);
    2321  Nsec = GetPhotcodeNsecfilt ();
     
    5452 
    5553  /* load sky from correct table */
    56   sky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, -1, VERBOSE);
    57   SkyTableSetFilenames (sky, CATDIR, "cpt");
     54  sky = GetSkyTable ();
    5855  skylist = SkyListByRadius (sky, -1, Ra, Dec, Radius);
    5956
     
    6360
    6461  /* lock, load, unlock catalog */
    65   catalog.filename = skylist[0].regions[0][0].filename;
     62  catalog.filename = (char *) skylist[0].regions[0][0].filename;
    6663  switch (lock_catalog (&catalog, LCK_SOFT)) {
    6764  case 2:
Note: See TracChangeset for help on using the changeset viewer.