Changeset 37807 for trunk/Ohana/src/relastro/src/StarMaps.c
- Timestamp:
- Jan 11, 2015, 2:14:39 PM (12 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/relastro/src/StarMaps.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/relastro/src/StarMaps.c
r36630 r37807 176 176 } 177 177 178 int printStarMap(int N, char *filename) { 179 180 off_t i, Nimages; 181 Image *images = getimages(&Nimages, NULL); 182 double L, M; 183 184 FILE *f = fopen (filename, "w"); 185 186 for (i = 0; i < starmap[N].Npoints; i++) { 187 // set the transformed coordinates 188 XY_to_LM (&L, &M, starmap[N].points[i].X, starmap[N].points[i].Y, &images[N].coords); 189 190 fprintf (f, "%d %7.2f %f : %7.2f %7.2f : %7.2f %7.2f : %7.2f %7.2f\n", (int) i, starmap[N].points[i].X, starmap[N].points[i].Y, starmap[N].points[i].L, starmap[N].points[i].M, L, M, starmap[N].points[i].L - L, starmap[N].points[i].M - M); 191 } 192 fclose (f); 193 return (TRUE); 194 } 195
Note:
See TracChangeset
for help on using the changeset viewer.
