Changeset 39457 for trunk/Ohana/src/addstar
- Timestamp:
- Mar 11, 2016, 10:23:42 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 13 edited
-
. (modified) (1 prop)
-
src/addstar/src/ConfigInit.c (modified) (1 diff)
-
src/addstar/src/LoadDataSDSS.c (modified) (1 diff)
-
src/addstar/src/ReadImageHeader.c (modified) (2 diffs)
-
src/addstar/src/ReadStarsFITS.c (modified) (1 diff)
-
src/addstar/src/SkyRegionUtils.c (modified) (1 diff)
-
src/addstar/src/build_links.c (modified) (3 diffs)
-
src/addstar/src/calibrate.c (modified) (1 diff)
-
src/addstar/src/greference.c (modified) (1 diff)
-
src/addstar/src/loadgalphot_table.c (modified) (1 diff)
-
src/addstar/src/loadsupercos_rawdata.c (modified) (1 diff)
-
src/addstar/src/mkcmf.c (modified) (5 diffs)
-
src/addstar/src/sky_tessalation.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ohana.20160226 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/addstar/src/ConfigInit.c
r39041 r39457 224 224 225 225 /* get detection filtering mask */ 226 if (!ScanConfig (config, "DETECTIONFILTER", "% d", 0, &options.detectionFilter)) {226 if (!ScanConfig (config, "DETECTIONFILTER", "%u", 0, &options.detectionFilter)) { 227 227 options.detectionFilter = 0; 228 228 } -
trunk/Ohana/src/addstar/src/LoadDataSDSS.c
r38553 r39457 5 5 // each SDSS data set corresponds to 5 images (ugriz) 6 6 Catalog *LoadDataSDSS (FILE *f, char *imagename, Image **images, off_t *nvalid, Header **headers, off_t *extsize, HeaderSet *headerSets, off_t Nimages) { 7 OHANA_UNUSED_PARAM(Nimages); 7 8 8 9 off_t Nskip, Nvalid, NVALID; -
trunk/Ohana/src/addstar/src/ReadImageHeader.c
r39041 r39457 209 209 } 210 210 211 if (!gfits_scan (header, ImageIDKeyword, "% d", 1, &image[0].externID)) {211 if (!gfits_scan (header, ImageIDKeyword, "%u", 1, &image[0].externID)) { 212 212 image[0].externID = 0; 213 213 } … … 272 272 273 273 /* find expected number of stars */ 274 if (!gfits_scan (header, "NSTARS", "% d", 1, &image[0].nstar) && !NO_STARS) {274 if (!gfits_scan (header, "NSTARS", "%u", 1, &image[0].nstar) && !NO_STARS) { 275 275 fprintf (stderr, "WARNING: can't get NSTARS from header (TEXT mode will be invalid)\n"); 276 276 } -
trunk/Ohana/src/addstar/src/ReadStarsFITS.c
r38553 r39457 43 43 // corresponding image header, load the stars from the table 44 44 Catalog *ReadStarsFITS (FILE *f, Header *header, Header *in_theader) { 45 OHANA_UNUSED_PARAM(header); 45 46 46 47 off_t Nskip; -
trunk/Ohana/src/addstar/src/SkyRegionUtils.c
r24977 r39457 2 2 3 3 SkyList *SkyListExistingSubset (SkyList *input, char *path) { 4 OHANA_UNUSED_PARAM(path); 4 5 5 6 int i, status, Nsubset, NSUBSET; -
trunk/Ohana/src/addstar/src/build_links.c
r39346 r39457 27 27 not partial, and has a correct set of average[].measureOffset,Nmeasure values */ 28 28 off_t *init_measure_links (Average *average, off_t Naverage, Measure *measure, off_t Nmeasure) { 29 OHANA_UNUSED_PARAM(measure); 29 30 30 31 off_t i, j, N; … … 161 162 /* build the initial links assuming the table is sorted */ 162 163 off_t *init_missing_links (Average *average, off_t Naverage, Missing *missing, off_t Nmissing) { 164 OHANA_UNUSED_PARAM(missing); 163 165 164 166 off_t i, j, N; … … 229 231 not partial, and has a correct set of average[].lensingOffset,Nlensing values */ 230 232 off_t *init_lensing_links (Average *average, off_t Naverage, Lensing *lensing, off_t Nlensing) { 233 OHANA_UNUSED_PARAM(lensing); 231 234 232 235 off_t i, j, N; -
trunk/Ohana/src/addstar/src/calibrate.c
r30613 r39457 157 157 /* create a hash array from Nstar[] entries */ 158 158 ALLOCATE (Nlist, int, MaxN + 1); 159 memset (Nlist, 0, MAX (0, MaxN*sizeof(int))); 159 if (MaxN >= 0) { 160 memset (Nlist, 0, sizeof(int)); 161 } 160 162 for (i = 0; i < Ncal; i++) { 161 163 Nlist[Nstar[i]] ++; -
trunk/Ohana/src/addstar/src/greference.c
r38986 r39457 4 4 5 5 Catalog *greference (char *Refcat, SkyRegion *region, int photcode) { 6 OHANA_UNUSED_PARAM(photcode); 6 7 7 8 Catalog *catalog = NULL; -
trunk/Ohana/src/addstar/src/loadgalphot_table.c
r39282 r39457 3 3 4 4 int loadgalphot_table (SkyList *skylistInput, HostTable *hosts, char *filename, AddstarClientOptions *options) { 5 OHANA_UNUSED_PARAM(hosts); 5 6 6 7 int i, Nstars; -
trunk/Ohana/src/addstar/src/loadsupercos_rawdata.c
r38986 r39457 7 7 8 8 int loadsupercos_rawdata (Image *image, int *imlist, int Nimage, SkyTable *skytable, char *filename, AddstarClientOptions options) { 9 OHANA_UNUSED_PARAM(Nimage); 9 10 10 11 int i; -
trunk/Ohana/src/addstar/src/mkcmf.c
r39248 r39457 1368 1368 1369 1369 int WriteXSRCtable (FILE *fits, char *extroot, double *X, double *Y, double *M, unsigned int *Flag, int Nstars, float zeroPt, float exptime) { 1370 OHANA_UNUSED_PARAM(Flag); 1370 1371 1371 1372 int i, j; … … 1527 1528 1528 1529 int WriteXFITtable (FILE *fits, char *extroot, double *X, double *Y, double *M, unsigned int *Flag, int Nstars) { 1530 OHANA_UNUSED_PARAM(Flag); 1529 1531 1530 1532 int i; … … 1688 1690 1689 1691 int WriteXGALtable (FILE *fits, char *extroot, double *X, double *Y, double *M, unsigned int *Flag, int Nstars) { 1692 OHANA_UNUSED_PARAM(Flag); 1690 1693 1691 1694 int i; … … 1804 1807 1805 1808 int WriteXRADtable (FILE *fits, char *extroot, double *X, double *Y, double *M, unsigned int *Flag, int Nstars, int Nrad) { 1809 OHANA_UNUSED_PARAM(Flag); 1806 1810 1807 1811 int i, j, k; … … 1881 1885 1882 1886 int WriteDETFtable (FILE *fits, char *extroot, double *X, double *Y, double *M, unsigned int *Flag, int Nstars) { 1887 OHANA_UNUSED_PARAM(X); 1888 OHANA_UNUSED_PARAM(Y); 1889 OHANA_UNUSED_PARAM(M); 1890 OHANA_UNUSED_PARAM(Flag); 1891 OHANA_UNUSED_PARAM(Nstars); 1883 1892 1884 1893 int i; -
trunk/Ohana/src/addstar/src/sky_tessalation.c
r37807 r39457 202 202 // for local projects such as the PS1 Medium Deep fields 203 203 int sky_tessellation_local (FITS_DB *db, int level, int Nmax) { 204 OHANA_UNUSED_PARAM(level); 205 OHANA_UNUSED_PARAM(Nmax); 204 206 205 207 int Nimage; … … 239 241 // we generate projects on uniform rings of constant dec height 240 242 int sky_tessellation_rings (FITS_DB *db, int level, int Nmax) { 243 OHANA_UNUSED_PARAM(level); 244 OHANA_UNUSED_PARAM(Nmax); 241 245 242 246 int j, nDEC, Nimage, Nring, Ntotal, Ndigit; … … 294 298 // based on code supplied by Tamas 2012.07.23 295 299 int sky_tessellation_tamas (FITS_DB *db, int level, int Nmax) { 300 OHANA_UNUSED_PARAM(level); 301 OHANA_UNUSED_PARAM(Nmax); 296 302 297 303 int j, nDEC, Nimage, Nring, Ntotal, Ndigit; … … 740 746 // format : guide to generate the filenames (c-type string format) 741 747 SkyRectangle *sky_rectangle_tamas (double *Dec, double dm, double halfa, double halftheta, int *nring, char *format) { 748 OHANA_UNUSED_PARAM(halfa); 742 749 743 750 static int Nname = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
