IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2455


Ignore:
Timestamp:
Nov 24, 2004, 2:00:46 PM (22 years ago)
Author:
eugene
Message:

minor cleanup

Location:
trunk/Ohana/src/imregister/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/src/imphotsearch.c

    r126 r2455  
    22
    33static char PhotError[] = "unknown";
    4 static char *version = "imphotsearch $Revision: 1.2 $";
     4static char *version = "imphotsearch $Revision: 1.3 $";
    55
    66main (int argc, char **argv) {
     
    1515  Image *image;
    1616  int PhotCodeSelect, Nin;
     17  int CodeSelect, Code;
    1718  char *FitsOutput, *NameSelect;
    1819  int NameSelectLength;
     
    5455    remove_argument (N, &argc, argv);
    5556    NameSelectLength = strlen (NameSelect);
     57  }
     58
     59  /* string in image name */
     60  CodeSelect = FALSE;
     61  if (N = get_argument (argc, argv, "-code")) {
     62    CodeSelect = TRUE;
     63    remove_argument (N, &argc, argv);
     64    Code = atoi (argv[N]);
     65    remove_argument (N, &argc, argv);
    5666  }
    5767
     
    135145    if (PhotCodeSelect && (image[i].source != PHOTCODE)) continue;
    136146    if ((NameSelect != (char *) NULL) && (strncasecmp (image[i].name, NameSelect, NameSelectLength))) continue;
     147    if (CodeSelect && (image[i].code != Code)) continue;
    137148
    138149    index[Nin] = i;
     
    154165      if (photstr == (char *) NULL) photstr = PhotError;
    155166     
    156       fprintf (stdout, "%s %s %s  %7.4f %7.4f  %7.4f %d\n", image[i].name, photstr, timestr,
    157                0.001*image[i].Mcal, 0.001*image[i].dMcal, 0.001*image[i].secz, image[i].nstar);
     167      fprintf (stdout, "%s %s %s  %7.4f %7.4f  %7.4f %5d %02x\n", image[i].name, photstr, timestr,
     168               0.001*image[i].Mcal, 0.001*image[i].dMcal, 0.001*image[i].secz, image[i].nstar, image[i].code);
    158169      free (timestr);
    159170    }
  • trunk/Ohana/src/imregister/src/imregtable.c

    r70 r2455  
    11# include "imregister.h"
    22# include "imreg.h"
    3 static char *version = "imregtable $Revision: 3.2 $";
     3static char *version = "imregtable $Revision: 3.3 $";
    44
    55int main (int argc, char **argv) {
     
    2727  table.header = &theader;
    2828  if (!fits_read_header (infile, &header))                   escape (UNLOCK, "can't open file header");
    29   if (!fits_read_matrix (infile, &matrix, &header))          escape (UNLOCK, "can't open file matrix");
     29  if (!fits_read_matrix (infile, &matrix))                   escape (UNLOCK, "can't open file matrix");
    3030  if (!fits_read_ftable  (infile, &table, "IMAGE_DATABASE")) escape (UNLOCK, "can't open file table");
    3131
Note: See TracChangeset for help on using the changeset viewer.