Changeset 33503
- Timestamp:
- Mar 13, 2012, 1:49:44 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20111122/Ohana/src/relphot/src
- Files:
-
- 6 edited
-
BrightCatalog.c (modified) (3 diffs)
-
ImageOps.c (modified) (2 diffs)
-
MosaicOps.c (modified) (1 diff)
-
args.c (modified) (3 diffs)
-
reload_catalogs.c (modified) (2 diffs)
-
relphot_objects.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/BrightCatalog.c
r33483 r33503 635 635 if (catalogs->Ncatalog >= catalogs->NCATALOG) { 636 636 catalogs->NCATALOG += D_NCATALOG; 637 D_NCATALOG = MAX(2000, 2*D_NCATALOG);638 637 639 638 // fprintf (stderr, "realloc catalogs->catalog: old: %llx ", (long long) catalogs->catalog); … … 652 651 653 652 int j; 654 for (j = catalogs->NCATALOG - 16; j < catalogs->NCATALOG; j++) {653 for (j = catalogs->NCATALOG - D_NCATALOG; j < catalogs->NCATALOG; j++) { 655 654 dvo_catalog_init (&catalogs->catalog[j], TRUE); 656 655 catalogs->catIDs[j] = 0; … … 663 662 ALLOCATE (catalogs->catalog[j].secfilt, SecFilt, catalogs->NAVERAGE[j]*Nsecfilt); 664 663 } 664 D_NCATALOG = MAX(2000, 2*D_NCATALOG); 665 665 } 666 666 } -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/ImageOps.c
r33406 r33503 154 154 for (i = 0; i < Nimage; i++) { 155 155 N_onImage[i] = 0; 156 N_ONIMAGE[i] = 100;156 N_ONIMAGE[i] = 30; 157 157 ALLOCATE (ImageToCatalog[i], off_t, N_ONIMAGE[i]); 158 158 ALLOCATE (ImageToMeasure[i], off_t, N_ONIMAGE[i]); … … 288 288 289 289 if (N_onImage[idx] == N_ONIMAGE[idx]) { 290 N_ONIMAGE[idx] += 100;290 N_ONIMAGE[idx] += 30; 291 291 REALLOCATE (ImageToCatalog[idx], off_t, N_ONIMAGE[idx]); 292 292 REALLOCATE (ImageToMeasure[idx], off_t, N_ONIMAGE[idx]); -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/MosaicOps.c
r33481 r33503 527 527 { 528 528 Image *image = getimage(idx); 529 unsigned int imageStart = image[0].tzero - MAX(0.01*image[0].trate*image[0].NY, 1); 529 // XXX we are now matching with just tzero. be careful for cameras with drift 530 // unsigned int imageStart = image[0].tzero - MAX(0.01*image[0].trate*image[0].NY, 1); 531 unsigned int imageStart = image[0].tzero; 530 532 if (imageStart != mosaic[mosID].start) { 531 533 fprintf (stderr, "error in image to mosaic match\n"); -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/args.c
r33472 r33503 349 349 remove_argument (N, &argc, argv); 350 350 } 351 if ((N = get_argument (argc, argv, "-update "))) {351 if ((N = get_argument (argc, argv, "-update-catalogs"))) { 352 352 if (MODE) { 353 fprintf (stderr, "ERROR: cannot use both -load and -update options!\n");353 fprintf (stderr, "ERROR: cannot mix modes (-load, -update-catalogs, -update-objects)\n"); 354 354 relphot_client_usage(); 355 355 } … … 361 361 if ((N = get_argument (argc, argv, "-update-objects"))) { 362 362 if (MODE) { 363 fprintf (stderr, "ERROR: cannot mix modes (-load, -update , -update-objects)\n");363 fprintf (stderr, "ERROR: cannot mix modes (-load, -update-catalogs, -update-objects)\n"); 364 364 relphot_client_usage(); 365 365 } … … 451 451 } 452 452 453 UPDATE = FALSE; 454 if ((N = get_argument (argc, argv, "-update"))) { 455 remove_argument (N, &argc, argv); 456 UPDATE = TRUE; 457 } 458 453 459 UPDATE_CATFORMAT = NULL; 454 460 if ((N = get_argument (argc, argv, "-update-catformat"))) { -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/reload_catalogs.c
r33480 r33503 143 143 144 144 char command[1024]; 145 snprintf (command, 1024, "relphot_client %s -update %s -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -statmode %s -D CAMERA %s -D STAR_TOOFEW %d -minerror %f",145 snprintf (command, 1024, "relphot_client %s -update-catalogs %s -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -statmode %s -D CAMERA %s -D STAR_TOOFEW %d -minerror %f", 146 146 PhotcodeList, imageFile, table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, STATMODE, CAMERA, STAR_TOOFEW, MIN_ERROR); 147 147 148 // options & configs which affect relphot_client -update 148 // options & configs which affect relphot_client -update-catalogs 149 149 // VERBOSE, VERBOSE2 150 150 // RESET … … 159 159 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 160 160 if (RESET) { snprintf (tmpline, 1024, "%s -reset", command); strcpy (command, tmpline); } 161 if (UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); } 161 162 if (!KEEP_UBERCAL) { snprintf (tmpline, 1024, "%s -reset-ubercal", command); strcpy (command, tmpline); } 162 163 if (UPDATE_CATFORMAT) { snprintf (tmpline, 1024, "%s -update-catformat %s", command, UPDATE_CATFORMAT); strcpy (command, tmpline); } -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/relphot_objects.c
r33480 r33503 150 150 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 151 151 if (RESET) { snprintf (tmpline, 1024, "%s -reset", command); strcpy (command, tmpline); } 152 if (UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); } 152 153 if (!KEEP_UBERCAL) { snprintf (tmpline, 1024, "%s -reset-ubercal", command); strcpy (command, tmpline); } 153 154
Note:
See TracChangeset
for help on using the changeset viewer.
