Package pygeodesy :: Module lcc :: Class Lcc
[frames] | no frames]

Class Lcc

 object --+        
          |        
 bases.Base --+    
              |    
 object --+   |    
          |   |    
bases.Named --+    
              |    
   datum._Based --+
                  |
                 Lcc

Lambert conformal conic East-/Northing location.

Instance Methods
 
__init__(self, e, n, h=0, conic=Conic(name='WRF_Lb', lat0=40.0, lon0=-97.0, par1=33.0, par2=45...)
New Lcc position.
 
toLatLon(self, LatLon, datum=None, height=None)
Convert this Lcc to an (ellipsoidal) geodetic point.
 
toStr(self, prec=0, sep=' ', m='m')
Return a string representation of this Lcc position.
 
toStr2(self, prec=0, fmt='[%s]', sep=', ', m='m', C=False)
Return a string representation of this Lcc position.

Inherited from datum._Based: __ne__

Inherited from bases.Base: __repr__, __str__, classname, classof, others

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties
  conic
Get the conic projection (Conic).
  easting
Get the easting (meter).
  height
Get the height (meter).
  northing
Get the northing (meter).

Inherited from bases.Named: name

Inherited from object: __class__

Method Details

__init__(self, e, n, h=0, conic=Conic(name='WRF_Lb', lat0=40.0, lon0=-97.0, par1=33.0, par2=45...)
(Constructor)

 

New Lcc position.

Parameters:
  • e - Easting in meter (scalar).
  • n - Northing in meter (scalar).
  • h - Height in meter (scalar).
  • conic - The conic projection (Conic).
Returns:
The Lambert location (Lcc).
Raises:
  • TypeError - If conic is not Conic.
  • ValueError - If e or n is invalid or negative.
Overrides: object.__init__

Example:

>>> lb = Lcc(448251, 5411932.0001)

toLatLon(self, LatLon, datum=None, height=None)

 

Convert this Lcc to an (ellipsoidal) geodetic point.

Parameters:
  • LatLon - LatLon class for the geodetic point.
  • datum - Datum to use, otherwise use this Lcc's conic.datum (Datum).
  • height - Optional height for the point, overriding the default height (meter).
Returns:
The point (LatLon).
Raises:
  • TypeError - If LatLon is not ellipsoidal.

toStr(self, prec=0, sep=' ', m='m')

 

Return a string representation of this Lcc position.

Parameters:
  • prec - Number of decimal, unstripped (int).
  • sep - Separator to join (string).
  • m - Unit of the height, default meter (string).
Returns:
This Lcc as string "easting nothing" in meter plus " height" and 'm' if non-zero (string).
Overrides: bases.Base.toStr

Example:

>>> lb = Lcc(448251, 5411932.0001)
>>> lb.toStr(4)  # 448251.0 5411932.0001
>>> lb.toStr(sep=', ')  # 448251, 5411932

toStr2(self, prec=0, fmt='[%s]', sep=', ', m='m', C=False)

 

Return a string representation of this Lcc position.

Parameters:
  • prec - Number of decimals, unstripped (int).
  • fmt - Enclosing backets format (string).
  • sep - Separator between name:values (string).
  • m - Unit of the height, default meter (string).
  • C - Include name of conic and datum (bool).
Returns:
This Lcc as "[E:meter, N:meter, H:m, C:Conic.Datum]" (string).
Overrides: bases.Base.toStr2

Property Details

conic

Get the conic projection (Conic).

Get Method:
conic(self) - Get the conic projection (Conic).

easting

Get the easting (meter).

Get Method:
easting(self) - Get the easting (meter).

height

Get the height (meter).

Get Method:
height(self) - Get the height (meter).

northing

Get the northing (meter).

Get Method:
northing(self) - Get the northing (meter).