Changeset 2973 in Sophya for trunk/SophyaLib/SkyMap/longlat.cc


Ignore:
Timestamp:
Jun 20, 2006, 6:01:49 PM (19 years ago)
Author:
ansari
Message:

1/ Nettoyage+commentaires/doxygen ds Vector3d, UnitVector, LongLat,
SphereCoordSys ...
2/ Ajout de la classe angle pour faciliter les conversions rad<>deg<>arcmin
dans le fichier vector3d.h .cc
3/ nettoyage/uniformisation methodes print pour pixelmap, ajout de la
methode PixelMap<T>::Show()
4/ Ajout methodes SphericalMap<T>::HasSymThetaSlice() et
GetSymThetaSliceIndex(int_4 idx) et leurs implementations pour
SphereHEALPix et SphereThetaPhi en vue de l'optimisation du calcul
transforme Ylm
5/ Ajout methode ResolToSizeIndex ds SphereThetaPhi , SphereHEALPix et
SphereECP

Reza , 20 Juin 2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/longlat.cc

    r2615 r2973  
     1//   Angles/geometrie 3D
     2//        B. Revenu 2000
     3//        R. Ansari 2006
     4// DAPNIA/SPP (Saclay) / CEA    LAL - IN2P3/CNRS  (Orsay)
     5
    16#include "sopnamsp.h"
    27#include "longlat.h"
    3 //++
    4 // Class        LongLat
    5 //
    6 // include      longlat.h
    7 //
    8 //    translation from  coordinates (longitude, latitude)
    9 //    to theta,phi
    10 //
    11 //    longitude=phi
    12 //
    13 //    latitude=Pi/2-theta
    14 //
    15 //--
    16 //++
    17 // Titre        Constructors
    18 //--
    19 //++
     8
     9
     10/*!
     11   \class SOPHYA::LongLat
     12   \ingroup SkyMap
     13   \brief Coordinate transform from  (longitude,latitude) to (theta,phi)
     14   All angles are specified in radians
     15   
     16   - longitude=phi
     17   - latitude=Pi/2-theta  (latitude=0 -> equator)
     18*/
     19
     20//! Default constructor: longitude=latitude=0
    2021LongLat::LongLat()
    21 //
    22 //--
    2322{
    2423  _lon=0.;
    2524  _lat=0.;
    2625}
    27 //++
     26//! Constructor
    2827LongLat::LongLat(double longitude, double latitude)
    29 //
    30 //--
    3128{
    3229  _lon=mod(longitude,pi2);
     
    3431  else _lat=mod(latitude+pi_over_2,M_PI)-pi_over_2; // dans [-Pi/2,Pi/2]
    3532}
    36 //++
     33
     34//! Constructor form cartesian coordiantes
    3735LongLat::LongLat(double x, double y, double z)
    38 //
    39 //--
    4036{
    4137  double norm=sqrt(x*x+y*y+z*z);
Note: See TracChangeset for help on using the changeset viewer.