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

    r5448 r5451  
    33int lightcurve (int argc, char **argv) {
    44 
    5   char filename[128], catdir[256];
    65  double Ra, Dec, Radius, Radius2, r;
    76  float *RA, *DEC;
     
    98  int i, j, k, m, N, NPTS, Nsec, RELPHOT, *N1, TimeFormat;
    109  time_t TimeReference;
     10
     11  PhotCode *code;
     12  Catalog catalog;
     13  SkyTable *sky;
     14  SkyList *skylist;
    1115  Vector *tvec, *mvec, *dmvec;
    12   Catalog catalog;
    13   PhotCode *code;
    14 
    15   VarConfig ("CATDIR", "%s", catdir);
    1616
    1717  if (!InitPhotcodes ()) return (FALSE);
     
    4949  Radius = atof (argv[3]);
    5050
    51   sky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, -1, VERBOSE);
    52   SkyTableSetFilenames (sky, CATDIR, "cpt");
     51  sky = GetSkyTable ();
    5352  skylist = SkyListByRadius (sky, -1, Ra, Dec, Radius);
    5453
     
    5857
    5958  /* set filename, read in header */
    60   catalog.filename = skylist[0].regions[0][0].filename;
     59  catalog.filename = (char *) skylist[0].regions[0][0].filename;
    6160  switch (lock_catalog (&catalog, LCK_SOFT)) {
    6261  case 2:
     
    148147  if (catalog.secfilt != 0) free (catalog.secfilt);
    149148 
    150   SkyListFree (skylist);
     149  SkyListFree (skylist, FALSE);
    151150  return (TRUE);
    152151}
Note: See TracChangeset for help on using the changeset viewer.