functionConvertLongitude

Longitude conversion for astronomical functions

Information

Function converting the longitude for astronomical application

Hypothesis and equations

The conversion is performed as:

  • LongOut>0 in the East
  • LongOut<0 in the West
  • |LongOut| <180°

Bibliography

none

Instructions for use

none

Known limits / Use precautions

none

Validations

Validated function - Aurélie Kaemmerlen 09/2010

--------------------------------------------------------------
Licensed by EDF under a 3-clause BSD-license
Copyright © EDF 2009 - 2023
BuildSysPro version 3.6.0
Author : Aurélie KAEMMERLEN, EDF (2010)
--------------------------------------------------------------

Inputs

TypeNameDefaultDescription
BooleanEsttrueEast=true: input longitude given in °East; if not, in °Ouest
RealLongInInput longitude of the given place

Outputs

TypeNameDefaultDescription
RealLongOutLongitude of the place converted into an output

Revisions

Aurélie Kaemmerlen 06/2012 : correction de la fonction car le résultat était erroné lors d'une saisie en °Ouest d'une longitude >180° et en °Est d'une longitude <-180°

Hassan Bouia 03/2013 : simplification des formules