Changeset 33616
- Timestamp:
- Mar 28, 2012, 8:49:26 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20111122/Ohana/src/opihi/dvo
- Files:
-
- 2 edited
-
mextract.c (modified) (7 diffs)
-
region_list.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/opihi/dvo/mextract.c
r33615 r33616 25 25 selection = NULL; 26 26 27 fprintf (stderr, "start...");27 // fprintf (stderr, "start..."); 28 28 if ((N = get_argument (argc, argv, "-h"))) goto help; 29 29 if ((N = get_argument (argc, argv, "--help"))) goto help; … … 39 39 remove_argument (N, &argc, argv); 40 40 PARALLEL = TRUE; 41 } 42 43 // this is used to NOT save the results in the results file 44 // use this option when mextract is used in a script which does its 45 // own job of packaging the results 46 int SKIP_RESULTS = FALSE; 47 if ((N = get_argument (argc, argv, "-skip-results"))) { 48 remove_argument (N, &argc, argv); 49 SKIP_RESULTS = TRUE; 41 50 } 42 51 … … 146 155 interrupt = FALSE; 147 156 148 fprintf (stderr, "done setup...");157 // fprintf (stderr, "done setup..."); 149 158 150 159 for (i = 0; (i < skylist[0].Nregions) && !interrupt; i++) { … … 171 180 /* XXX need to call dvo_catalog_chipcoords here passing the loaded images */ 172 181 173 fprintf (stderr, "done read...");182 // fprintf (stderr, "done read..."); 174 183 175 184 for (j = 0; (j < catalog.Naverage) && !interrupt; j++) { … … 223 232 interrupt = FALSE; 224 233 225 fprintf (stderr, "done load...");234 // fprintf (stderr, "done load..."); 226 235 227 236 for (n = 0; n < Nreturn; n++) { … … 230 239 231 240 // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere) 232 if (RESULT_FILE ) {241 if (RESULT_FILE && !SKIP_RESULTS) { 233 242 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nreturn, FALSE, NULL); 234 243 if (!status) goto escape; … … 244 253 FreeSkyRegionSelection (selection); 245 254 246 fprintf (stderr, "done extr...\n");255 // fprintf (stderr, "done extr...\n"); 247 256 return (TRUE); 248 257 -
branches/eam_branches/ipp-20111122/Ohana/src/opihi/dvo/region_list.c
r33615 r33616 183 183 /* determine region-file names */ 184 184 if (selection->name != NULL) { 185 char filename[256]; 186 char *CATDIR = dvo_get_catdir(); 187 188 ALLOCATE (skylist, SkyList, 1); 189 ALLOCATE (skylist[0].regions, SkyRegion *, 1); 190 ALLOCATE (skylist[0].regions[0], SkyRegion, 1); 191 ALLOCATE (skylist[0].filename, char *, 1); 192 skylist[0].ownElements = TRUE; // free these elements when freeing the list 193 194 strcpy (skylist[0].regions[0][0].name, selection->name); 195 sprintf (filename, "%s/%s.cpt", CATDIR, selection->name); 196 skylist[0].filename[0] = strcreate (filename); 197 skylist[0].Nregions = 1; 185 skylist = SkyListByName (sky, selection->name); 198 186 return (skylist); 199 187 }
Note:
See TracChangeset
for help on using the changeset viewer.
