- Timestamp:
- Dec 15, 2015, 10:36:22 AM (11 years ago)
- Location:
- trunk/Ohana/src/addstar/src
- Files:
-
- 4 edited
-
FilterStars.c (modified) (2 diffs)
-
LoadData.c (modified) (1 diff)
-
LoadStars.c (modified) (3 diffs)
-
addstar.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/FilterStars.c
r39161 r39273 19 19 MTIME = (image[0].exptime > 0) ? 2.500*log10(image[0].exptime) : 0.0; 20 20 21 RMIN = 360.0;22 RMAX = 0.0;23 DMIN = +90.0;24 DMAX = -90.0;21 RMIN = region->Rmin; 22 RMAX = region->Rmax; 23 DMIN = region->Dmin; 24 DMAX = region->Dmax; 25 25 26 26 /* modify resulting star list */ … … 182 182 if (VERBOSE) fprintf (stderr, "stars cover region %f,%f - %f,%f\n", RMIN, DMIN, RMAX, DMAX); 183 183 184 float dR = RMAX - RMIN;185 float dD = DMAX - DMIN;186 187 184 // define containing region a bit generously 188 region->Rmin = RMIN - 0.1*dR;189 region->Rmax = RMAX + 0.1*dR;190 region->Dmin = DMIN - 0.1*dD;191 region->Dmax = DMAX + 0.1*dD;185 region->Rmin = RMIN; 186 region->Rmax = RMAX; 187 region->Dmin = DMIN; 188 region->Dmax = DMAX; 192 189 193 190 return (outcat); -
trunk/Ohana/src/addstar/src/LoadData.c
r39161 r39273 110 110 matchOptions.photcode = 0; // use an invalid photcode to avoid touching secfilt 111 111 112 find_matches_closest (region, newcat, catalog, matchOptions); 112 SkyRegion matchRegion; 113 float dR = region->Rmax - region->Rmin; 114 float dD = region->Dmax - region->Dmin; 115 116 // define matchRegion a bit generously 117 matchRegion.Rmin = region->Rmin - 0.1*dR; 118 matchRegion.Rmax = region->Rmax + 0.1*dR; 119 matchRegion.Dmin = region->Dmin - 0.1*dD; 120 matchRegion.Dmax = region->Dmax + 0.1*dD; 121 122 find_matches_closest (&matchRegion, newcat, catalog, matchOptions); 113 123 dvo_catalog_free (newcat); 114 124 free (newcat); -
trunk/Ohana/src/addstar/src/LoadStars.c
r39161 r39273 17 17 ALLOCATE (catalog->measure, Measure, 1); 18 18 ALLOCATE (catalog->lensing, Lensing, 1); 19 20 SkyRegion region; 21 region.Rmin = 720.0; 22 region.Rmax = -720.0; 23 region.Dmin = 180.0; 24 region.Dmax = -180.0; 19 25 20 26 for (i = 0; i < Nfile; i++) { … … 75 81 } 76 82 77 SkyRegion region;78 83 newcat = LoadData (f, &file[i], images, Nimages, headers, extsize, headerSets, NheaderSets, ®ion, options); 79 84 … … 89 94 matchOptions.photcode = 0; // use an invalid photcode to avoid touching secfilt 90 95 91 find_matches_closest (®ion, newcat, catalog, matchOptions); 96 SkyRegion matchRegion; 97 float dR = region.Rmax - region.Rmin; 98 float dD = region.Dmax - region.Dmin; 99 100 // define matchRegion a bit generously 101 matchRegion.Rmin = region.Rmin - 0.1*dR; 102 matchRegion.Rmax = region.Rmax + 0.1*dR; 103 matchRegion.Dmin = region.Dmin - 0.1*dD; 104 matchRegion.Dmax = region.Dmax + 0.1*dD; 105 106 find_matches_closest (&matchRegion, newcat, catalog, matchOptions); 92 107 } 93 108 -
trunk/Ohana/src/addstar/src/addstar.c
r38986 r39273 234 234 FreePhotcodeTable (); 235 235 SkyTableFree (sky); 236 ohana_memcheck (1);237 ohana_memdump (1);238 236 exit (0); 239 237 }
Note:
See TracChangeset
for help on using the changeset viewer.
