Changeset 14401 for trunk/Ohana/src/opihi/dvo/fitsed.c
- Timestamp:
- Aug 4, 2007, 10:15:51 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/fitsed.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/fitsed.c
r13479 r14401 27 27 int Nsecfilt, status; 28 28 void *oldsignal; 29 char *RegionName, *RegionList;30 29 char name[64], line[1024], key[20]; 31 30 float *fitmags, *fiterrs, *wavecode, *vegaToAB; … … 43 42 Catalog catalog, outcat; 44 43 SkyList *skylist; 44 SkyRegionSelection *selection; 45 45 46 SEDtableRow *SEDtableRaw, **SEDtable; 46 47 SEDtableRow sourceValue, sourceError; … … 49 50 /* defaults */ 50 51 skylist = NULL; 52 selection = NULL; 53 51 54 catalog.average = NULL; 52 55 catalog.measure = NULL; … … 63 66 wavecode = NULL; 64 67 hashcode = NULL; 65 RegionName = NULL;66 RegionList = NULL;67 68 magSection.name = NULL; 68 69 resSection.name = NULL; … … 81 82 82 83 /* interpret command-line options */ 83 if ( !SetRegionSelection (&argc, argv, &RegionName, &RegionList)) goto escape;84 if ((selection = SetRegionSelection (&argc, argv)) == NULL) goto escape; 84 85 if (!SetPhotSelections (&argc, argv, 4)) goto usage; 85 86 … … 179 180 180 181 /* load region corresponding to selection above */ 181 if ((skylist = SelectRegions ( RegionName, RegionList)) == NULL) goto escape;182 if ((skylist = SelectRegions (selection)) == NULL) goto escape; 182 183 183 184 /* loop over regions, extract data for each region */ … … 361 362 362 363 finish: 363 if (skylist != NULL) SkyListFree (skylist, ((RegionName != NULL) || (RegionList != NULL))); 364 if (RegionName != NULL) free (RegionName); 365 if (RegionList != NULL) free (RegionList); 364 SkyListFree (skylist); 365 FreeSkyRegionSelection (selection); 366 366 if (wavecode != NULL) free (wavecode); 367 367 if (hashcode != NULL) free (hashcode);
Note:
See TracChangeset
for help on using the changeset viewer.
