AtmoData::LonlatToMM5MercInd< T > Class Template Reference

#include <CoordTransform.hxx>

List of all members.

Public Member Functions

 LonlatToMM5MercInd (int jmx, int imx, double jx, double ix, double phic, double lambdac, double phi1, double ds0, int ratio) throw ()
 Default constructor.
void operator() (const T lon, const T lat, T &j, T &i)
 Convertion operator.

Protected Attributes

const int jmx_
 Coarse domain grid dimension in East-West direction.
const int imx_
 Coarse domain grid dimension in North-South direction.
const double jx_
 East-West location in the coarse domain of the South-West corner.
const double ix_
 North-South location in the coarse domain of the South-West corner.
const double phic_
 Coarse domain center latitude (degree).
const double lambdac_
 Coarse domain center longitude (degree).
const double phi1_
 True latitude #1 (degree).
const double ds0_
 Grid distance (meters) of the coarse domain.
const int ratio_
 Domain grid size ratio with respect to coarse domain.
const double Earth_radius_
 Earth radius.
const double pi_
 pi.


Detailed Description

template<class T>
class AtmoData::LonlatToMM5MercInd< T >

Coordinate transformation from longitude/latitude to indices of the MM5 grid in Mercator coordinates.


Member Function Documentation

template<class T>
void AtmoData::LonlatToMM5MercInd< T >::operator() ( const T  lon,
const T  lat,
T &  j,
T &  i 
)

Convertion operator.

Parameters:
lon longitude.
lat latitude.
j index of the MM5 grid along the East-West direction.
i index of the MM5 grid along the North-South direction.
Warning:
Indices order (in MM5) is confusing: j and i are swapped with respect to the natural order.


The documentation for this class was generated from the following files:
Generated on Tue Nov 17 11:51:45 2009 for AtmoData by  doxygen 1.5.1