IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 12:21:18 PM (19 years ago)
Author:
eugene
Message:

complete merge from branch dvo-mods-2007-02

Location:
trunk/Ohana/src/getstar/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/getstar/src/ConfigInit.c

    r6968 r12332  
    44
    55  char *config, *file;
    6   char PhotCodeFile[256];
     6  char CatdirPhotcodeFile[256];
     7  char MasterPhotcodeFile[256];
    78
    89  /*** load configuration info ***/
     
    2021  ScanConfig (config, "CATMODE",                "%s",  0, CATMODE);
    2122  ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
    22   ScanConfig (config, "PHOTCODE_FILE",          "%s", 0, PhotCodeFile);
     23  ScanConfig (config, "PHOTCODE_FILE",          "%s",  0, MasterPhotcodeFile);
    2324  if (!ScanConfig (config, "SKY_DEPTH",         "%d",  0, &SKY_DEPTH)) {
    2425    SKY_DEPTH = 2;
     
    3132  if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
    3233
    33   if (!LoadPhotcodes (PhotCodeFile)) {
    34     fprintf (stderr, "error loading photcodes\n");
     34  /* XXX this does not yet write out the master photcode table */
     35  sprintf (MasterPhotcodeFile, "%s/Photcodes.dat", CATDIR);
     36  if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile)) {
     37    fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);
    3538    exit (1);
    3639  }
  • trunk/Ohana/src/getstar/src/select_by_image.c

    r6812 r12332  
    2121    start = image[0].tzero;
    2222    end   = image[0].tzero + 1e-4*image[0].NY*image[0].trate;  /* trate is in 0.1 msec / row */
    23     photcode = image[0].source;
     23    photcode = image[0].photcode;
    2424  }
    2525  if (VERBOSE) fprintf (stderr, "extracting for range %d to %d (photcode %s)\n", start, end, photcode);
     
    2727  for (i = 0; (i < catalog[0].Nmeasure); i++) {
    2828    if ((i % 10000) == 0) fprintf (stderr, ". ");
    29     if ((catalog[0].measure[i].t >= start) && (catalog[0].measure[i].t <= end) && (photcode == catalog[0].measure[i].source)) {
     29    if ((catalog[0].measure[i].t >= start) && (catalog[0].measure[i].t <= end) && (photcode == catalog[0].measure[i].photcode)) {
    3030      n = catalog[0].measure[i].averef;
    3131      stars[N].R      = catalog[0].average[n].R - catalog[0].measure[i].dR / 360000.0;
  • trunk/Ohana/src/getstar/src/select_by_region.c

    r9630 r12332  
    3838    if (D > region[0].Dmax) continue;
    3939
    40     if (MagLimitUse && (catalog[0].average[i].M > MagLimitValue)) continue;
     40    /* XXX add photcode as argument to MagLimitUse */
     41    if (MagLimitUse && (catalog[0].secfilt[Nsecfilt*i].M > MagLimitValue)) continue;
    4142
    4243    output[0].average[Nave] = catalog[0].average[i];
Note: See TracChangeset for help on using the changeset viewer.