Changeset 2653 in Sophya
- Timestamp:
- Mar 7, 2005, 5:47:18 PM (21 years ago)
- Location:
- trunk/SophyaExt/XephemAstroLib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/XephemAstroLib/dbfmt.c
r2643 r2653 387 387 if (nf < 5 || nf > 7) { 388 388 if (whynot) 389 sprintf (whynot, "%s: f needs 5-7 fields, not %d",enm(flds),nf); 389 sprintf (whynot, "%s: type f needs 5-7 fields, not %d", 390 enm(flds),nf); 390 391 return (-1); 391 392 } … … 411 412 return (-1); 412 413 } 413 } 414 } else 415 op->f_class = 'T'; /* default to star-like */ 414 416 if (nsf > 2) { 415 417 /* fill f_spect all the way */ … … 465 467 if (nf != 13 && nf != 14) { 466 468 if (whynot) 467 sprintf (whynot, "%s: e needs 13 or 14 fields, not %d",469 sprintf (whynot, "%s: type e needs 13 or 14 fields, not %d", 468 470 enm(flds), nf); 469 471 return (-1); … … 506 508 if (nf != 11 && nf != 12) { 507 509 if (whynot) 508 sprintf (whynot, "%s: h needs 11 or 12 fields, not %d",510 sprintf (whynot, "%s: type h needs 11 or 12 fields, not %d", 509 511 enm(flds), nf); 510 512 return (-1); … … 536 538 if (nf != 10 && nf != 11) { 537 539 if (whynot) 538 sprintf (whynot, "%s: p needs 10 or 11 fields, not %d",540 sprintf (whynot, "%s: type p needs 10 or 11 fields, not %d", 539 541 enm(flds), nf); 540 542 return (-1); … … 565 567 if (nf != 11 && nf != 12) { 566 568 if (whynot) 567 sprintf (whynot, "%s: E needs 11 or 12 fields, not %d",569 sprintf (whynot, "%s: type E needs 11 or 12 fields, not %d", 568 570 enm(flds), nf); 569 571 return (-1); … … 747 749 if (whynot) 748 750 sprintf (whynot, 749 "%s:B needs 3,6 or 7 subfields in field 7, not %d",751 "%s: type B needs 3,6 or 7 subfields in field 7, not %d", 750 752 enm(flds), nsf); 751 753 return (-1); … … 1004 1006 1005 1007 /* For RCS Only -- Do Not Edit */ 1006 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2005-0 1-17 10:13:04 $ $Revision: 1.4$ $Name: not supported by cvs2svn $"};1008 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2005-03-07 16:47:17 $ $Revision: 1.5 $ $Name: not supported by cvs2svn $"}; -
trunk/SophyaExt/XephemAstroLib/misc.c
r2643 r2653 373 373 return; 374 374 375 sA = sin(A); 376 y = sA*sb*sc; 377 x = cb - ca*cc; 378 B = y ? (x ? atan2(y,x) : (y>0 ? PI/2 : -PI/2)) : (x>=0 ? 0 : PI); 375 if (sc < 1e-7) 376 B = cc < 0 ? A : PI-A; 377 else { 378 sA = sin(A); 379 y = sA*sb*sc; 380 x = cb - ca*cc; 381 B = y ? (x ? atan2(y,x) : (y>0 ? PI/2 : -PI/2)) : (x>=0 ? 0 : PI); 382 } 379 383 380 384 *Bp = B; … … 477 481 478 482 /* For RCS Only -- Do Not Edit */ 479 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: misc.c,v $ $Date: 2005-0 1-17 10:13:05 $ $Revision: 1.4$ $Name: not supported by cvs2svn $"};483 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: misc.c,v $ $Date: 2005-03-07 16:47:18 $ $Revision: 1.5 $ $Name: not supported by cvs2svn $"}; -
trunk/SophyaExt/XephemAstroLib/moon.c
r2643 r2653 101 101 static double Args[NARGS]; 102 102 static double LP_equinox; 103 static double NF_arcsec; 103 104 static double Ea_arcsec; 104 105 static double pA_precession; … … 2927 2928 - 7.5311878482337989e-04) * T /* F, t^3 */ 2928 2929 - 1.3117809789650071e+01) * T2; /* F, t^2 */ 2930 NF_arcsec = x; 2929 2931 Args[10] = x; 2930 2932 … … 3463 3465 3464 3466 /* For RCS Only -- Do Not Edit */ 3465 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: moon.c,v $ $Date: 2005-0 1-17 10:13:05 $ $Revision: 1.4$ $Name: not supported by cvs2svn $"};3467 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: moon.c,v $ $Date: 2005-03-07 16:47:18 $ $Revision: 1.5 $ $Name: not supported by cvs2svn $"};
Note:
See TracChangeset
for help on using the changeset viewer.