Changeset 30762
- Timestamp:
- Feb 28, 2011, 2:34:09 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110213/Ohana/src/relastro
- Files:
-
- 3 edited
-
include/relastro.h (modified) (2 diffs)
-
src/args.c (modified) (1 diff)
-
src/high_speed_objects.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/Ohana/src/relastro/include/relastro.h
r30616 r30762 89 89 char GSCFILE[256]; 90 90 char CATDIR[256]; 91 char *HIGH_SPEED_DIR; 91 92 char CATMODE[16]; /* raw, mef, split, mysql */ 92 93 char CATFORMAT[16]; /* internal, elixir, loneos, panstarrs */ … … 95 96 96 97 double SIGMA_LIM; 97 int SRC_MEAS_TOOFEW; //catalog objects wich fewer detections then this are ignored98 int SRC_MEAS_TOOFEW; //catalog objects wich fewer detections then this are ignored 98 99 double MIN_ERROR; 99 100 -
branches/eam_branches/ipp-20110213/Ohana/src/relastro/src/args.c
r30616 r30762 39 39 remove_argument (N, &argc, argv); 40 40 RADIUS = atof(argv[N]); 41 remove_argument (N, &argc, argv); 42 HIGH_SPEED_DIR = strcreate(argv[N]); 41 43 remove_argument (N, &argc, argv); 42 44 } -
branches/eam_branches/ipp-20110213/Ohana/src/relastro/src/high_speed_objects.c
r29938 r30762 22 22 int zcode, zNsec, ycode, yNsec, jcode, jNsec, hcode, hNsec, kcode, kNsec, USNO_R, USNO_N, Nsecfilt; 23 23 char filename[1024]; 24 char outdir[]="/data/ipp022.0/ndeacon/hispeedzy";25 24 Noff = strlen(CATDIR); 26 sprintf (filename, "%s/%s", outdir, &catalog[0].filename[Noff]); 25 sprintf (filename, "%s/%s", HIGH_SPEED_DIR, &catalog[0].filename[Noff]); 26 printf("%s\n",filename); 27 27 dvo_catalog_init(&catalog1, TRUE); /*initialise new catalogue*/ 28 28 catalog1.filename = strcreate(filename); … … 121 121 foundA = FALSE; 122 122 for (j = 0; !foundA && (j < catalog[0].average[i].Nmeasure); j++, m++) { 123 if((catalog[0].average[i].R>204.1923)&&(catalog[0].average[i].R<204.1924)&&(catalog[0].average[i].D>11.376)&&(catalog[0].average[i].D<11.377))124 {125 printf("Hello");126 }127 123 128 124 if (MeasMatchesPhotcode(&catalog[0].measure[m], photcodesGroupA, NphotcodesGroupA)) { … … 135 131 foundB = FALSE; 136 132 for (j = 0; !foundB && (j < catalog[0].average[i].Nmeasure); j++, m++) { 137 138 if((catalog[0].average[i].R>204.192)&&(catalog[0].average[i].R<204.1925)&&(catalog[0].average[i].D>11.376)&&(catalog[0].average[i].D<11.377)) 139 { 140 printf("Hello"); 141 } 133 142 134 143 135 if (MeasMatchesPhotcode(&catalog[0].measure[m], photcodesGroupB, NphotcodesGroupB)) { … … 158 150 if (foundA && !foundB) { 159 151 // average-based tests: 160 161 if((catalog[0].average[i].R>204.1923)&&(catalog[0].average[i].R<204.1924)&&(catalog[0].average[i].D>11.376)&&(catalog[0].average[i].D<11.377)) 162 { 163 printf("Hello"); 164 } 152 165 153 166 154 valid = TRUE; … … 204 192 205 193 // average-based tests: 206 if((catalog[0].average[i].R>204.192)&&(catalog[0].average[i].R<204.193)&&(catalog[0].average[i].D>11.372)&&(catalog[0].average[i].D<11.373))207 {208 printf("Hello");209 }210 194 valid = TRUE; 211 195 valid &= ((catalog[0].average[i].flags & 0x01000000) == 0); … … 214 198 215 199 valid &= ((catalog[0].secfilt[i*Nsecfilt + jNsec].M < 1.0)||(isnan(catalog[0].secfilt[i*Nsecfilt + jNsec].M))); 216 valid &= ( catalog[0].secfilt[i*Nsecfilt + yNsec].Nused > 1);217 valid &= ( catalog[0].secfilt[i*Nsecfilt + yNsec].dM < 0.2);200 valid &= ((catalog[0].secfilt[i*Nsecfilt + yNsec].Nused > 1)||(catalog[0].secfilt[i*Nsecfilt + zNsec].Nused > 1)); 201 valid &= ((catalog[0].secfilt[i*Nsecfilt + yNsec].dM < 0.2)||(catalog[0].secfilt[i*Nsecfilt + zNsec].dM < 0.2)); 218 202 219 203 /*if ((catalog[0].secfilt[i*Nsecfilt + zNsec].M < 1.0) || (catalog[0].secfilt[i*Nsecfilt + zNsec].Nused == 1)) {
Note:
See TracChangeset
for help on using the changeset viewer.
