Changeset 3371
- Timestamp:
- Mar 2, 2005, 6:04:49 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/src/coordops.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/src/coordops.c
r3326 r3371 17 17 /* DIS and PLY are identical & apply projection; WRP is cartesian */ 18 18 Polynomial = !strcmp(type, "-PLY") || !strcmp(type, "-DIS") || !strcmp(type, "-WRP"); 19 Zenithal = !strcmp(type, "-PLY") || !strcmp(type, "-DIS") || !strcmp(type, "-TAN") || !strcmp(type, "-SIN") || !strcmp(type, "- ZEA") || !strcmp(&coords[0].ctype[0], "MM");19 Zenithal = !strcmp(type, "-PLY") || !strcmp(type, "-DIS") || !strcmp(type, "-TAN") || !strcmp(type, "-SIN") || !strcmp(type, "-STG") || !strcmp(type, "-ZEA") || !strcmp(&coords[0].ctype[0], "MM"); 20 20 Cartesian = !strcmp(type, "-LIN") || !strcmp(type, "-WRP") || !strcmp(&coords[0].ctype[0], "GENE"); 21 21 PseudoCyl = !strcmp(type, "-AIT") || !strcmp(type, "-GLS") || !strcmp(type, "-PAR"); … … 59 59 } 60 60 61 if (!strcmp(type, "-PLY") || !strcmp(type, "-DIS") || !strcmp(type, "-TAN")) { 61 /* this is wrong : STG is not TAN - need to put in correct relationships. but is a close approx */ 62 if (!strcmp(type, "-PLY") || !strcmp(type, "-DIS") || !strcmp(type, "-TAN") || !strcmp(type, "-STG")) { 62 63 if (R == 0) { 63 64 stht = 1.0; … … 138 139 139 140 Polynomial = !strcmp(type, "-PLY") || !strcmp(type, "-DIS") || !strcmp(type, "-WRP"); 140 Zenithal = !strcmp(type, "-PLY") || !strcmp(type, "-DIS") || !strcmp(type, "-TAN") || !strcmp(type, "-SIN") || !strcmp(type, "- ZEA") || !strcmp(&coords[0].ctype[0], "MM");141 Zenithal = !strcmp(type, "-PLY") || !strcmp(type, "-DIS") || !strcmp(type, "-TAN") || !strcmp(type, "-SIN") || !strcmp(type, "-STG") || !strcmp(type, "-ZEA") || !strcmp(&coords[0].ctype[0], "MM"); 141 142 Cartesian = !strcmp(type, "-LIN") || !strcmp(type, "-WRP") || !strcmp(&coords[0].ctype[0], "GENE"); 142 143 PseudoCyl = !strcmp(type, "-AIT") || !strcmp(type, "-GLS") || !strcmp(type, "-PAR"); … … 163 164 if (stht < 0) status = FALSE; 164 165 165 if (!strcmp(type, "-PLY") || !strcmp(type, "-DIS") || !strcmp(type, "-TAN") ) {166 if (!strcmp(type, "-PLY") || !strcmp(type, "-DIS") || !strcmp(type, "-TAN") || !strcmp(type, "-STG")) { 166 167 L = DEG_RAD * sphi / stht; 167 168 M = -DEG_RAD * cphi / stht; … … 280 281 coords[0].pc1_1 = coords[0].pc2_2 = 1.0; 281 282 coords[0].pc2_1 = coords[0].pc1_2 = 0.0; 283 coords[0].Npolyterms = 1; 282 284 strcpy (coords[0].ctype, "NONE"); 283 285
Note:
See TracChangeset
for help on using the changeset viewer.
