Changeset 15562 for trunk/psastro/src/psastroDemoDump.c
- Timestamp:
- Nov 9, 2007, 3:09:20 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroDemoDump.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroDemoDump.c
r15199 r15562 173 173 return true; 174 174 } 175 176 // this function is used for test purposes (-trace psastro.dump 1) 177 bool psastroDumpGradients (psArray *gradients, char *filename) { 178 179 FILE *f = fopen (filename, "w"); 180 181 for (int i = 0; i < gradients->n; i++) { 182 pmAstromGradient *gradient = gradients->data[i]; 183 184 // write out the refstar data 185 fprintf (f, "%d %f %f %f %f %f %f\n", i, 186 gradient->FP.x, gradient->FP.y, 187 gradient->dTPdL.x, gradient->dTPdL.y, 188 gradient->dTPdM.x, gradient->dTPdM.y); 189 } 190 191 fclose (f); 192 return true; 193 } 194
Note:
See TracChangeset
for help on using the changeset viewer.
