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

    r5448 r5451  
    66  int i, m, k, N, Ngraph, SaveVectors;
    77  int Ns, Nsec, NPTS;
    8   char catdir[256], filename[256];
    98  double Radius;
    109  float dt1, dt2, dmt1, dmt2;
     
    1918
    2019  if (!InitPhotcodes ()) return (FALSE);
    21 
    22   VarConfig ("CATDIR", "%s", catdir);
    2320
    2421  vec1 = vec2 = vec3 = vec4 = vec5 = NULL;
     
    5451  Ns = GetPhotcodeNsec (code[0].code);
    5552
    56   /* load sky from correct table */
    57   sky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, -1, VERBOSE);
    58   SkyTableSetFilenames (sky, CATDIR, "cpt");
     53  Radius = MAX (fabs(graphsky.xmax), fabs(graphsky.ymax));
    5954
    60   Radius = MAX (fabs(graphsky.xmax), fabs(graphsky.ymax));
     55  sky = GetSkyTable ();
    6156  skylist = SkyListByRadius (sky, -1, graphsky.coords.crval1, graphsky.coords.crval2, Radius);
    6257 
     
    7469
    7570    /* lock, load, unlock catalog */
    76     catalog.filename = skylist[0].regions[k][0].filename;
     71    catalog.filename = (char *) skylist[0].regions[k][0].filename;
    7772    switch (lock_catalog (&catalog, LCK_SOFT)) {
    7873    case 2:
Note: See TracChangeset for help on using the changeset viewer.