Changeset 37593
- Timestamp:
- Nov 12, 2014, 3:59:32 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904/Ohana/src
- Files:
-
- 7 edited
-
opihi/dvo/imlist.c (modified) (3 diffs)
-
relphot/src/ImageTable.c (modified) (1 diff)
-
relphot/src/MosaicOps.c (modified) (1 diff)
-
relphot/src/assign_images.c (modified) (1 diff)
-
relphot/src/reload_catalogs.c (modified) (1 diff)
-
relphot/src/relphot_objects.c (modified) (1 diff)
-
relphot/src/relphot_parallel_regions.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/opihi/dvo/imlist.c
r37571 r37593 38 38 } 39 39 40 // int RegionSelect = FALSE;41 // if ((N = get_argument (argc, argv, "-region"))) {42 // remove_argument (N, &argc, argv);43 // RegionSelect = TRUE;44 // }45 46 40 PhotcodeValue = NULL; 47 41 PhotcodeSelect = FALSE; … … 76 70 } 77 71 72 int MAX_LIST = -1; 73 if ((N = get_argument (argc, argv, "-max-list"))) { 74 remove_argument (N, &argc, argv); 75 MAX_LIST = atoi (argv[N]); 76 remove_argument (N, &argc, argv); 77 } 78 78 79 if (argc != 1) { 79 gprint (GP_ERR, "USAGE: image [-time start range] [-region] [-name string] \n");80 gprint (GP_ERR, "USAGE: image [-time start range] [-region] [-name string] [-photcode code] [-Nphotcode N] [-max-list N]\n"); 80 81 return (FALSE); 81 82 } … … 83 84 if ((image = LoadImagesDVO (&Nimage)) == NULL) return (FALSE); 84 85 image_subset (image, Nimage, &subset, &Nsubset, selection, tzero, trange, TimeSelect); 85 // BuildChipMatch (image, Nimage);86 MAX_LIST = MAX_LIST < 0 ? Nsubset : MIN(MAX_LIST, Nsubset); 86 87 87 88 GetTimeFormat (&TimeReference, &TimeFormat); 88 89 89 for (j = 0; j < Nsubset; j++) {90 for (j = 0; j < MAX_LIST; j++) { 90 91 i = subset[j]; 91 92 if (NameSelect && (strstr (image[i].name, name) == (char *) NULL)) continue; -
branches/eam_branches/ipp-20140904/Ohana/src/relphot/src/ImageTable.c
r36630 r37593 32 32 } 33 33 34 // XXX do not make the chip match -- we have not loaded the PHU entries 35 // BuildChipMatch (image, Nimage); 36 34 37 *nimage = Nimage; 35 38 return image; -
branches/eam_branches/ipp-20140904/Ohana/src/relphot/src/MosaicOps.c
r37531 r37593 620 620 NY = image[m].NY; 621 621 dS += hypot (image[m].coords.cdelt1*image[m].coords.pc1_1, image[m].coords.cdelt1*image[m].coords.pc2_1); 622 XY_to_RD (&R, &D, 0.0, 0.0, &image[m].coords); 622 623 OhanaProjection proj = GetProjection (image[m].coords.ctype); 624 if ((proj == PROJ_WRP) && !image[m].coords.mosaic) { 625 XY_to_LM (&R, &D, 0.0, 0.0, &image[m].coords); 626 } else { 627 XY_to_RD (&R, &D, 0.0, 0.0, &image[m].coords); 628 } 623 629 Rmin = MIN (Rmin, R); 624 630 Rmax = MAX (Rmax, R); 625 631 Dmin = MIN (Dmin, D); 626 632 Dmax = MAX (Dmax, D); 627 XY_to_RD (&R, &D, (double) NX, 0.0, &image[m].coords); 633 634 if ((proj == PROJ_WRP) && !image[m].coords.mosaic) { 635 XY_to_LM (&R, &D, (double) NX, 0.0, &image[m].coords); 636 } else { 637 XY_to_RD (&R, &D, (double) NX, 0.0, &image[m].coords); 638 } 628 639 Rmin = MIN (Rmin, R); 629 640 Rmax = MAX (Rmax, R); 630 641 Dmin = MIN (Dmin, D); 631 642 Dmax = MAX (Dmax, D); 632 XY_to_RD (&R, &D, (double) NX, (double) NY, &image[m].coords); 643 644 if ((proj == PROJ_WRP) && !image[m].coords.mosaic) { 645 XY_to_LM (&R, &D, (double) NX, (double) NY, &image[m].coords); 646 } else { 647 XY_to_RD (&R, &D, (double) NX, (double) NY, &image[m].coords); 648 } 633 649 Rmin = MIN (Rmin, R); 634 650 Rmax = MAX (Rmax, R); 635 651 Dmin = MIN (Dmin, D); 636 652 Dmax = MAX (Dmax, D); 637 XY_to_RD (&R, &D, 0.0, (double) NY, &image[m].coords); 653 654 if ((proj == PROJ_WRP) && !image[m].coords.mosaic) { 655 XY_to_LM (&R, &D, 0.0, (double) NY, &image[m].coords); 656 } else { 657 XY_to_RD (&R, &D, 0.0, (double) NY, &image[m].coords); 658 } 638 659 Rmin = MIN (Rmin, R); 639 660 Rmax = MAX (Rmax, R); -
branches/eam_branches/ipp-20140904/Ohana/src/relphot/src/assign_images.c
r37378 r37593 117 117 118 118 if (MOSAIC_ZEROPT) { 119 // use the coords of the associated mosaic to select 119 // use the coords of the associated mosaic to select (only for chips; stacks use their own center) 120 120 Mosaic *mosaic = getMosaicForImage (j); 121 Rc = mosaic->coords.crval1; 122 Dc = mosaic->coords.crval2; 123 // NOTE : have defined mosaic Rc,Dc to choose the side of 0,360 on which most of the 124 // chips are located. but, for host assignment, we rationalize to 0.0 - 360.0 125 Rc = ohana_normalize_angle_to_midpoint (Rc, 180.0); 121 if (mosaic) { 122 Rc = mosaic->coords.crval1; 123 Dc = mosaic->coords.crval2; 124 // NOTE : have defined mosaic Rc,Dc to choose the side of 0,360 on which most of the 125 // chips are located. but, for host assignment, we rationalize to 0.0 - 360.0 126 Rc = ohana_normalize_angle_to_midpoint (Rc, 180.0); 127 } 126 128 } 127 129 -
branches/eam_branches/ipp-20140904/Ohana/src/relphot/src/reload_catalogs.c
r36630 r37593 165 165 free (BOUNDARY_TREE); 166 166 BOUNDARY_TREE = tmppath; 167 168 167 } 169 168 -
branches/eam_branches/ipp-20140904/Ohana/src/relphot/src/relphot_objects.c
r35104 r37593 36 36 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 37 37 38 // set up the basic catalog info39 38 // set up the basic catalog info 40 39 char hostfile[1024]; -
branches/eam_branches/ipp-20140904/Ohana/src/relphot/src/relphot_parallel_regions.c
r37037 r37593 42 42 if (!dvo_image_load (&db, VERBOSE, FALSE)) Shutdown ("can't read image catalog %s", db.filename); 43 43 MARKTIME("-- load image data: %f sec\n", dtime); 44 45 // save Images.dat using the copied structure 46 if (UPDATE_CATFORMAT) { 47 // ensure the db format is updated 48 db.format = dvo_catalog_catformat (UPDATE_CATFORMAT); 49 } 44 50 45 51 /* assign the images to the different region hosts */
Note:
See TracChangeset
for help on using the changeset viewer.
