< RhoCosPhiTwo.c | index | SolarCoordinates.c >

Copyright (c) 1999-2012

Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU eneral Public License is hereby granted. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.

See the GNU General Public License.

RhoSinPhiTwo.c


/* see page 82 */

double DoRhoSinPhiTwo(double doPhi, double doHeight)
   {
   double doReturnValue = (double) 0;

   double doU =  atan((((double) 1 - DO_EARTH_FLATTENING)
                       * tan(DEGREES2RADIAN(doPhi))));

   #if 0
   (void) fprintf(stdout, "\n%s line %ld doU = %8.6f", __FILE__, __LINE__,
                  RADIAN2DEGREES(doU));
   #endif

   doReturnValue = (   (  ((double) 1 - DO_EARTH_FLATTENING)
                        * sin(doU)
                       )
                    +  (  (  doHeight
                           / (double) DO_EARTH_EQUATORIAL_RADIUS
                          )
                        * sin(doU)
                       )
                    );

   return doReturnValue;
   }
 

< RhoCosPhiTwo.c | index | SolarCoordinates.c >


printer friendly view

   
Google
 
Web www.christophedavid.org