IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2061


Ignore:
Timestamp:
Oct 12, 2004, 11:10:41 AM (22 years ago)
Author:
desonia
Message:

added slaAirmas function for use in psExposureAlloc.

Location:
trunk/psLib/src/astronomy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psAstrometry.c

    r2058 r2061  
    88 *  @author George Gusciora, MHPCC
    99 *
    10  *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-10-12 20:53:02 $
     10 *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-10-12 21:10:41 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    312312    // XXX: how is these value derived?
    313313    *(double *)&exp->lst = psTimeToLST((psTime*)time,observatory->longitude);
    314     *(float *)&exp->positionAngle = 0.0f;
    315     *(float *)&exp->parallacticAngle = 0.0f;
    316     *(float *)&exp->airmass = 0.0f;
     314    *(float *)&exp->positionAngle = 0.0f; // XXX: need input, see Bug #207
     315    *(float *)&exp->parallacticAngle = 0.0f; // XXX: need input, see Bug #207
     316    *(float *)&exp->airmass = slaAirmas(zenithDistance);
    317317    *(float *)&exp->parallacticFactor = 0.0f;
    318318    exp->cameraName = NULL;
  • trunk/psLib/src/astronomy/slalib.h

    r2052 r2061  
    77*  @author Robert DeSonia, MHPCC
    88*
    9 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2004-10-12 19:10:00 $
     9*  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2004-10-12 21:10:41 $
    1111*
    1212*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2222#define fslaAopqk _SLA_AOPQK__
    2323#define fslaOapqk _SLA_OAPQK__
     24#define fslaAirmas _SLA_AIRMAS__
    2425#else
    2526#define fslaAoppa _sla_aoppa__
    2627#define fslaAopqk _sla_aopqk__
    2728#define fslaOapqk _sla_oapqk__
     29#define fslaAirmas _sla_airmas__
    2830#endif
    2931#elif FORTRAN_NO_UNDERSCORE_SUFFIX
     
    3234#define fslaAopqk _SLA_AOPQK
    3335#define fslaOapqk _SLA_OAPQK
     36#define fslaAirmas _SLA_AIRMAS
    3437#else
    3538#define fslaAoppa _sla_aoppa
    3639#define fslaAopqk _sla_aopqk
    3740#define fslaOapqk _sla_oapqk
     41#define fslaAirmas _sla_airmas
    3842#endif
    3943#else
     
    4246#define fslaAopqk _SLA_AOPQK_
    4347#define fslaOapqk _SLA_OAPQK_
     48#define fslaAirmas _SLA_AIRMAS_
    4449#else
    4550#define fslaAoppa _sla_aoppa_
    4651#define fslaAopqk _sla_aopqk_
    4752#define fslaOapqk _sla_oapqk_
     53#define fslaAirmas _sla_airmas_
    4854#endif
    4955#endif
     
    5460#define fslaAopqk SLA_AOPQK__
    5561#define fslaOapqk SLA_OAPQK__
     62#define fslaAirmas SLA_AIRMAS__
    5663#else
    5764#define fslaAoppa sla_aoppa__
    5865#define fslaAopqk sla_aopqk__
    5966#define fslaOapqk sla_oapqk__
     67#define fslaAirmas sla_airmas__
    6068#endif
    6169#elif FORTRAN_NO_UNDERSCORE_SUFFIX
     
    6472#define fslaAopqk SLA_AOPQK
    6573#define fslaOapqk SLA_OAPQK
     74#define fslaAirmas SLA_AIRMAS
    6675#else
    6776#define fslaAoppa sla_aoppa
    6877#define fslaAopqk sla_aopqk
    6978#define fslaOapqk sla_oapqk
     79#define fslaAirmas sla_airmas
    7080#endif
    7181#else
     
    7484#define fslaAopqk SLA_AOPQK_
    7585#define fslaOapqk SLA_OAPQK_
     86#define fslaAirmas SLA_AIRMAS_
    7687#else
    7788#define fslaAoppa sla_aoppa_
    7889#define fslaAopqk sla_aopqk_
    7990#define fslaOapqk sla_oapqk_
     91#define fslaAirmas sla_airmas_
    8092#endif
    8193#endif
     
    118130    );
    119131
     132extern double fslaAirmas(
     133        const double* zenithDistance
     134    );
     135
    120136/*
    121137    void slaAoppa(date, dut, elongm, phim, hm, xp, yp, tdk, pmb, rh, wl, tlr, aoprms)
     
    174190fslaOapqk(TYPE, &OB1, &OB2, AOPRMS, RAP, DAP)
    175191
    176 #endif
     192/*
     193    double slaAirmas(zd)
     194   
     195    PARAMETERS
     196   
     197    double zd
     198*/
     199#define slaAirmas(ZD) fslaAirmas(&ZD)
     200
     201#endif
Note: See TracChangeset for help on using the changeset viewer.