Changeset 37807 for trunk/Ohana/src/mosastro/src/field.c
- Timestamp:
- Jan 11, 2015, 2:14:39 PM (12 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/mosastro/src/field.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/mosastro/src/field.c
r7401 r37807 12 12 13 13 /* bore site center guess */ 14 strcpy (field.project.ctype, "DEC--TAN");14 InitCoords (&field.project, "DEC--TAN"); 15 15 16 16 # if (PSASTRO_MODE) … … 23 23 # endif 24 24 25 field.project.crpix1 = 0;26 field.project.crpix2 = 0;27 28 25 /* measure average plate scale - would be better using parabolic min... */ 29 26 field.project.cdelt1 = 0; … … 47 44 3600*field.project.cdelt1, 3600*field.project.cdelt2); 48 45 49 /** allow guess at field rotation?? **/50 field.project.pc1_1 = 1;51 field.project.pc2_2 = 1;52 field.project.pc1_2 = 0;53 field.project.pc2_1 = 0;54 field.project.Npolyterms = 1;55 56 46 /* bore site center guess */ 57 strcpy (field.distort.ctype, "DEC--PLY"); 58 field.distort.crval1 = 0.0; 59 field.distort.crval2 = 0.0; 60 field.distort.crpix1 = 0.0; 61 field.distort.crpix2 = 0.0; 62 field.distort.cdelt1 = 1.0; 63 field.distort.cdelt2 = 1.0; 64 65 /** allow guess at field rotation?? **/ 66 field.distort.pc1_1 = 1; 67 field.distort.pc2_2 = 1; 68 field.distort.pc1_2 = 0; 69 field.distort.pc2_1 = 0; 70 71 /* allow 2nd and 3rd order? */ 72 /* how do we handle renormalization? (fixed at 1000 pixels??) */ 73 field.distort.Npolyterms = 1; 74 for (i = 0; i < 7; i++) { 75 field.distort.polyterms[i][0] = 0; 76 field.distort.polyterms[i][1] = 0; 77 } 47 InitCoords (&field.distort, "DEC--PLY"); 78 48 return (TRUE); 79 49 } … … 138 108 int load_field (char *filename) { 139 109 140 int i;141 110 Coords coords; 142 111 Header header; … … 156 125 157 126 /* bore site center guess */ 158 strcpy (field.project.ctype, "DEC--TAN");127 InitCoords (&field.project, "DEC--TAN"); 159 128 field.project.crval1 = 0.5*(field.Rmin + field.Rmax); 160 129 field.project.crval2 = 0.5*(field.Dmin + field.Dmax); 161 field.project.crpix1 = 0;162 field.project.crpix2 = 0;163 130 164 131 /* measure average plate scale - would be better using parabolic min... */ … … 174 141 175 142 /* bore site center guess */ 176 strcpy (field.distort.ctype, "DEC--PLY"); 177 field.distort.crval1 = 0.0; 178 field.distort.crval2 = 0.0; 179 field.distort.crpix1 = 0.0; 180 field.distort.crpix2 = 0.0; 181 field.distort.cdelt1 = 1.0; 182 field.distort.cdelt2 = 1.0; 183 184 /** allow guess at field rotation?? **/ 185 field.distort.pc1_1 = 1; 186 field.distort.pc2_2 = 1; 187 field.distort.pc1_2 = 0; 188 field.distort.pc2_1 = 0; 143 InitCoords (&field.distort, "DEC--PLY"); 189 144 190 /* allow 2nd and 3rd order? */191 /* how do we handle renormalization? (fixed at 1000 pixels??) */192 field.distort.Npolyterms = coords.Npolyterms;193 for (i = 0; i < 7; i++) {194 field.distort.polyterms[i][0] = coords.polyterms[i][0];195 field.distort.polyterms[i][1] = coords.polyterms[i][1];196 }197 145 return (TRUE); 198 146 }
Note:
See TracChangeset
for help on using the changeset viewer.
