AtmoData::LonlatToWRFLccInd< T > Class Template Reference

#include <CoordTransform.hxx>

List of all members.

Public Member Functions

 LonlatToWRFLccInd (int imx, int jmx, double lambdar, double phir, double lambda0, double lambda1, double max_phi0, double max_phi1, double phi1, double phi2, double dsi0, double dsj0) throw ()
 Default constructor.
void operator() (const T lon, const T lat, T &i, T &j)
 Convertion operator.

Protected Attributes

const int imx_
 Domain grid dimension in East-West direction.
const int jmx_
 Domain grid dimension in North-South direction.
const double lambdar_
 Domain reference longitude (degree).
const double lambda0_
 Longitude of the bottom-left corner(degree).
const double lambda1_
 Longitude of the bottom-right corner (degree).
const double phir_
 Domain reference latitude (degree).
const double max_phi0_
 Max latitude of the bottom boundary (degree).
const double max_phi1_
 Max latitude of the top coundary (degree).
const double phi1_
 True latitude #1 (degree).
const double phi2_
 True latitude #2 (degree).
const double dsi0_
 Grid distance (meters) of the domain in East-West direction.
const double dsj0_
 Grid distance (meters) of the domain in North-South direction.
const double Earth_radius_
 Earth radius.
const double pi_
 pi.


Detailed Description

template<class T>
class AtmoData::LonlatToWRFLccInd< T >

Coordinate transformation from longitude/latitude to indices of the WRF grid in Lambert conic conformal.


Member Function Documentation

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

Convertion operator.

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


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