Changeset 34873
- Timestamp:
- Dec 23, 2012, 6:48:28 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20121219/Ohana/src
- Files:
-
- 12 edited
-
libdvo/src/skyregion_ops.c (modified) (3 diffs)
-
uniphot/include/setastrom.h (modified) (1 diff)
-
uniphot/include/setphot.h (modified) (2 diffs)
-
uniphot/include/setphot_client.h (modified) (1 diff)
-
uniphot/include/setposangle.h (modified) (2 diffs)
-
uniphot/src/initialize_setastrom.c (modified) (1 diff)
-
uniphot/src/initialize_setphot.c (modified) (1 diff)
-
uniphot/src/initialize_setphot_client.c (modified) (1 diff)
-
uniphot/src/initialize_setposangle.c (modified) (1 diff)
-
uniphot/src/update_dvo_setastrom.c (modified) (1 diff)
-
uniphot/src/update_dvo_setphot.c (modified) (3 diffs)
-
uniphot/src/update_dvo_setposangle.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219/Ohana/src/libdvo/src/skyregion_ops.c
r34872 r34873 11 11 char *filebasename_ptr (char *name) { 12 12 13 char *c , *file;13 char *c; 14 14 15 15 c = strrchr (name, '/'); … … 21 21 SkyList *SkyRegionByCPT (SkyTable *table, char *filename) { 22 22 23 int i, Ns, Ne, No; 24 SkyRegion *region; 23 int i; 25 24 SkyList *list; 26 25 … … 44 43 45 44 for (i = 0; i < table[0].Nregions; i++) { 46 char *regbase = filebasename_ptr (table[0].region [i].name);45 char *regbase = filebasename_ptr (table[0].regions[i].name); 47 46 if (strncmp (regbase, tgtbase, Ntgtbase)) continue; 48 47 49 list[0].regions[0] = &table[0].region [i];48 list[0].regions[0] = &table[0].regions[i]; 50 49 list[0].filename[0] = table[0].filename[i]; 51 50 list[0].Nregions = 1; 52 51 return (list); 53 52 } 53 54 free (list[0].regions); 55 free (list[0].filename); 56 free (list); 54 57 return NULL; 55 58 } -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/include/setastrom.h
r34868 r34873 23 23 int PARALLEL_SERIAL; 24 24 char *UPDATE_CATFORMAT; 25 char *SINGLE_CPT; 25 26 26 27 SkyRegion UserPatch; -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/include/setphot.h
r33963 r34873 25 25 char *HOSTDIR; 26 26 char *IMAGES; 27 char *SINGLE_CPT; 27 28 int VERBOSE; 28 29 int RESET; … … 34 35 int PARALLEL_SERIAL; 35 36 int IMAGES_ONLY; 37 38 SkyRegion UserPatch; 36 39 37 40 /***** prototypes ****/ -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/include/setphot_client.h
r33654 r34873 78 78 time_t TSTOP; 79 79 PhotCode *photcode; 80 81 SkyRegion UserPatch; 80 82 81 83 enum {black, white, red, orange, yellow, green, blue, indigo, violet}; -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/include/setposangle.h
r34749 r34873 25 25 char *HOSTDIR; 26 26 char *IMAGES; 27 char *SINGLE_CPT; 27 28 int VERBOSE; 28 29 int RESET; … … 31 32 int PARALLEL_MANUAL; 32 33 int PARALLEL_SERIAL; 34 35 SkyRegion UserPatch; 33 36 34 37 /***** prototypes ****/ -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/src/initialize_setastrom.c
r34868 r34873 49 49 int N; 50 50 51 SINGLE_CPT = NULL; 52 if ((N = get_argument (argc, argv, "-cpt"))) { 53 remove_argument (N, &argc, argv); 54 SINGLE_CPT = strcreate (argv[N]); 55 remove_argument (N, &argc, argv); 56 } 57 51 58 /* specify portion of the sky : allow default of all sky? */ 52 59 UserPatch.Rmin = 0; -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/src/initialize_setphot.c
r34749 r34873 49 49 if ((N = get_argument (argc, argv, "-reset"))) { 50 50 RESET = TRUE; 51 remove_argument (N, &argc, argv); 52 } 53 54 SINGLE_CPT = NULL; 55 if ((N = get_argument (argc, argv, "-cpt"))) { 56 remove_argument (N, &argc, argv); 57 SINGLE_CPT = strcreate (argv[N]); 58 remove_argument (N, &argc, argv); 59 } 60 61 // region of interest 62 UserPatch.Rmin = 0; 63 UserPatch.Rmax = 360; 64 UserPatch.Dmin = -90; 65 UserPatch.Dmax = +90; 66 if ((N = get_argument (argc, argv, "-region"))) { 67 remove_argument (N, &argc, argv); 68 UserPatch.Rmin = atof (argv[N]); 69 remove_argument (N, &argc, argv); 70 UserPatch.Rmax = atof (argv[N]); 71 remove_argument (N, &argc, argv); 72 UserPatch.Dmin = atof (argv[N]); 73 remove_argument (N, &argc, argv); 74 UserPatch.Dmax = atof (argv[N]); 51 75 remove_argument (N, &argc, argv); 52 76 } -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/src/initialize_setphot_client.c
r34749 r34873 36 36 if ((N = get_argument (argc, argv, "-reset"))) { 37 37 RESET = TRUE; 38 remove_argument (N, &argc, argv); 39 } 40 41 // region of interest 42 UserPatch.Rmin = 0; 43 UserPatch.Rmax = 360; 44 UserPatch.Dmin = -90; 45 UserPatch.Dmax = +90; 46 if ((N = get_argument (argc, argv, "-region"))) { 47 remove_argument (N, &argc, argv); 48 UserPatch.Rmin = atof (argv[N]); 49 remove_argument (N, &argc, argv); 50 UserPatch.Rmax = atof (argv[N]); 51 remove_argument (N, &argc, argv); 52 UserPatch.Dmin = atof (argv[N]); 53 remove_argument (N, &argc, argv); 54 UserPatch.Dmax = atof (argv[N]); 38 55 remove_argument (N, &argc, argv); 39 56 } -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/src/initialize_setposangle.c
r34872 r34873 170 170 } 171 171 172 // region of interest 173 UserPatch.Rmin = 0; 174 UserPatch.Rmax = 360; 175 UserPatch.Dmin = -90; 176 UserPatch.Dmax = +90; 177 if ((N = get_argument (argc, argv, "-region"))) { 178 remove_argument (N, &argc, argv); 179 UserPatch.Rmin = atof (argv[N]); 180 remove_argument (N, &argc, argv); 181 UserPatch.Rmax = atof (argv[N]); 182 remove_argument (N, &argc, argv); 183 UserPatch.Dmin = atof (argv[N]); 184 remove_argument (N, &argc, argv); 185 UserPatch.Dmax = atof (argv[N]); 186 remove_argument (N, &argc, argv); 187 } 188 172 189 HOST_ID = 0; 173 190 if ((N = get_argument (argc, argv, "-hostID"))) { -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/src/update_dvo_setastrom.c
r34868 r34873 20 20 21 21 // determine the populated SkyRegions overlapping the requested area (default depth) 22 skylist = SkyListByPatch (sky, -1, &UserPatch); 22 if (SINGLE_CPT) { 23 skylist = SkyRegionByCPT (sky, SINGLE_CPT); 24 } else { 25 skylist = SkyListByPatch (sky, -1, &UserPatch); 26 } 27 myAssert (skylist, "ooops!"); 23 28 24 29 // update measurements for each populated catalog -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/src/update_dvo_setphot.c
r33963 r34873 4 4 int update_dvo_setphot (Image *image, off_t Nimage, FlatCorrectionTable *flatcorr) { 5 5 6 SkyRegion UserPatch;7 6 SkyTable *sky = NULL; 8 7 SkyList *skylist = NULL; … … 34 33 35 34 // determine the populated SkyRegions overlapping the requested area (default depth) 36 UserPatch.Rmin = 0; 37 UserPatch.Rmax = 360; 38 UserPatch.Dmin = -90; 39 UserPatch.Dmax = +90; 40 skylist = SkyListByPatch (sky, -1, &UserPatch); 35 if (SINGLE_CPT) { 36 skylist = SkyRegionByCPT (sky, SINGLE_CPT); 37 } else { 38 skylist = SkyListByPatch (sky, -1, &UserPatch); 39 } 40 myAssert (skylist, "ooops!"); 41 41 42 42 // update measurements for each populated catalog … … 110 110 111 111 char command[1024]; 112 snprintf (command, 1024, "setphot_client -hostID %d -catdir %s -hostdir %s -images %s", 113 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, imageFile); 112 snprintf (command, 1024, "setphot_client -hostID %d -catdir %s -hostdir %s -images %s -region %f %f %f %f", 113 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, imageFile, 114 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 114 115 115 116 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20121219/Ohana/src/uniphot/src/update_dvo_setposangle.c
r34872 r34873 3 3 int update_dvo_setposangle (ImageSubset *image, off_t Nimage) { 4 4 5 SkyRegion UserPatch;6 5 SkyTable *sky = NULL; 7 6 SkyList *skylist = NULL; … … 36 35 37 36 // determine the populated SkyRegions overlapping the requested area (default depth) 38 if (!SINGLE_CPT) { 37 if (SINGLE_CPT) { 38 skylist = SkyRegionByCPT (sky, SINGLE_CPT); 39 } else { 39 40 skylist = SkyListByPatch (sky, -1, &UserPatch); 40 } else {41 skylist = SkyListByCPT (sky, cptname);42 41 } 43 42 myAssert (skylist, "ooops!"); … … 114 113 115 114 char command[1024]; 116 snprintf (command, 1024, "setposangle_client -hostID %d -catdir %s -hostdir %s -images %s -region STUFF", 117 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, imageFile); 115 snprintf (command, 1024, "setposangle_client -hostID %d -catdir %s -hostdir %s -images %s -region %f %f %f %f", 116 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, imageFile, 117 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 118 118 119 119 fprintf (stderr, "command: %s\n", command);
Note:
See TracChangeset
for help on using the changeset viewer.
