Changeset 2653 in Sophya


Ignore:
Timestamp:
Mar 7, 2005, 5:47:18 PM (21 years ago)
Author:
cmv
Message:

update xephem 3.6.4 cmv 07/03/2005

Location:
trunk/SophyaExt/XephemAstroLib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/XephemAstroLib/dbfmt.c

    r2643 r2653  
    387387        if (nf < 5 || nf > 7) {
    388388            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);
    390391            return (-1);
    391392        }
     
    411412                return (-1);
    412413            }
    413         }
     414        } else
     415            op->f_class = 'T';          /* default to star-like */
    414416        if (nsf > 2) {
    415417            /* fill f_spect all the way */
     
    465467        if (nf != 13 && nf != 14) {
    466468            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",
    468470                                                                enm(flds), nf);
    469471            return (-1);
     
    506508        if (nf != 11 && nf != 12) {
    507509            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",
    509511                                                                enm(flds), nf);
    510512            return (-1);
     
    536538        if (nf != 10 && nf != 11) {
    537539            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",   
    539541                                                                enm(flds), nf);
    540542            return (-1);
     
    565567        if (nf != 11 && nf != 12) {
    566568            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",
    568570                                                            enm(flds), nf);
    569571            return (-1);
     
    747749            if (whynot)
    748750                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",
    750752                                                                enm(flds), nsf);
    751753            return (-1);
     
    10041006
    10051007/* For RCS Only -- Do Not Edit */
    1006 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2005-01-17 10:13:04 $ $Revision: 1.4 $ $Name: not supported by cvs2svn $"};
     1008static 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  
    373373            return;
    374374
    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        }
    379383
    380384        *Bp = B;
     
    477481
    478482/* For RCS Only -- Do Not Edit */
    479 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: misc.c,v $ $Date: 2005-01-17 10:13:05 $ $Revision: 1.4 $ $Name: not supported by cvs2svn $"};
     483static 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  
    101101static double Args[NARGS];
    102102static double LP_equinox;
     103static double NF_arcsec;
    103104static double Ea_arcsec;
    104105static double pA_precession;
     
    29272928              - 7.5311878482337989e-04) * T /* F, t^3 */
    29282929             - 1.3117809789650071e+01) * T2; /* F, t^2 */
     2930  NF_arcsec = x;
    29292931  Args[10] = x;
    29302932
     
    34633465
    34643466/* For RCS Only -- Do Not Edit */
    3465 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: moon.c,v $ $Date: 2005-01-17 10:13:05 $ $Revision: 1.4 $ $Name: not supported by cvs2svn $"};
     3467static 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.