Changeset 2455
- Timestamp:
- Nov 24, 2004, 2:00:46 PM (22 years ago)
- Location:
- trunk/Ohana/src/imregister/src
- Files:
-
- 2 edited
-
imphotsearch.c (modified) (5 diffs)
-
imregtable.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/imregister/src/imphotsearch.c
r126 r2455 2 2 3 3 static char PhotError[] = "unknown"; 4 static char *version = "imphotsearch $Revision: 1. 2$";4 static char *version = "imphotsearch $Revision: 1.3 $"; 5 5 6 6 main (int argc, char **argv) { … … 15 15 Image *image; 16 16 int PhotCodeSelect, Nin; 17 int CodeSelect, Code; 17 18 char *FitsOutput, *NameSelect; 18 19 int NameSelectLength; … … 54 55 remove_argument (N, &argc, argv); 55 56 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); 56 66 } 57 67 … … 135 145 if (PhotCodeSelect && (image[i].source != PHOTCODE)) continue; 136 146 if ((NameSelect != (char *) NULL) && (strncasecmp (image[i].name, NameSelect, NameSelectLength))) continue; 147 if (CodeSelect && (image[i].code != Code)) continue; 137 148 138 149 index[Nin] = i; … … 154 165 if (photstr == (char *) NULL) photstr = PhotError; 155 166 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); 158 169 free (timestr); 159 170 } -
trunk/Ohana/src/imregister/src/imregtable.c
r70 r2455 1 1 # include "imregister.h" 2 2 # include "imreg.h" 3 static char *version = "imregtable $Revision: 3. 2$";3 static char *version = "imregtable $Revision: 3.3 $"; 4 4 5 5 int main (int argc, char **argv) { … … 27 27 table.header = &theader; 28 28 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"); 30 30 if (!fits_read_ftable (infile, &table, "IMAGE_DATABASE")) escape (UNLOCK, "can't open file table"); 31 31
Note:
See TracChangeset
for help on using the changeset viewer.
