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

Class Conic

  object --+            
           |            
named._Named --+        
               |        
named._NamedBase --+    
                   |    
named._NamedEnumItem --+
                       |
                      Conic

Lambert conformal conic projection (1- or 2-SP).

Instance Methods
 
__init__(self, latlon0, par1, par2=None, E0=0, N0=0, k0=1, opt3=0, name='', auth='')
New Lambert conformal conic projection.
 
toDatum(self, datum)
Convert this conic to the given datum.
 
convertDatum(self, datum)
Convert this conic to the given datum.
 
toStr(self, prec=8)
Return this conic as a string.

Inherited from named._NamedEnumItem: __ne__, unregister

Inherited from named._NamedBase: __repr__, __str__, others, toStr2

Inherited from named._Named: _dot_, attrs, classof, copy

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

Class Variables
  _n_ = 0
(INTERNAL) Precomputed 1 / n.
Properties
  auth
An immutable property (Read Only).
  datum
An immutable property (Read Only).
  E0
An immutable property (Read Only).
  k0
An immutable property (Read Only).
  lat0
An immutable property (Read Only).
  latlon0
An immutable property (Read Only).
  lam0
An immutable property (Read Only).
  lon0
An immutable property (Read Only).
  N0
An immutable property (Read Only).
  name2
An immutable property (Read Only).
  opt3
An immutable property (Read Only).
  par1
An immutable property (Read Only).
  par2
An immutable property (Read Only).
  phi0
An immutable property (Read Only).
  philam0
An immutable property (Read Only).
  SP
An immutable property (Read Only).

Inherited from named._NamedEnumItem: name

Inherited from named._Named: classname, classnaming, named, named2

Inherited from object: __class__

Method Details

__init__(self, latlon0, par1, par2=None, E0=0, N0=0, k0=1, opt3=0, name='', auth='')
(Constructor)

 

New Lambert conformal conic projection.

Parameters:
  • latlon0 - Origin with (ellipsoidal) datum (LatLon).
  • par1 - First standard parallel (degrees90).
  • par2 - Optional, second standard parallel (degrees90).
  • E0 - Optional, false easting (meter).
  • N0 - Optional, false northing (meter).
  • k0 - Optional scale factor (scalar).
  • opt3 - Optional meridian (degrees180).
  • name - Optional name of the conic (str).
  • auth - Optional authentication authority (str).
Returns:
A Lambert projection (Conic).
Raises:
  • TypeError - Non-ellipsoidal latlon0.
Overrides: object.__init__

Example:

>>> from pygeodesy import Conic, Datums, ellipsoidalNvector
>>> ll0 = ellipsoidalNvector.LatLon(23, -96, datum=Datums.NAD27)
>>> Snyder = Conic(ll0, 33, 45, E0=0, N0=0, name='Snyder')

toDatum(self, datum)

 

Convert this conic to the given datum.

Parameters:
  • datum - Ellipsoidal datum to use (Datum).
Returns:
Converted conic, unregistered (Conic).
Raises:
  • TypeError - Non-ellipsoidal datum.

convertDatum(self, datum)

 

Convert this conic to the given datum.

Parameters:
  • datum - Ellipsoidal datum to use (Datum).
Returns:
Converted conic, unregistered (Conic).
Raises:
  • TypeError - Non-ellipsoidal datum.

toStr(self, prec=8)

 

Return this conic as a string.

Parameters:
  • prec - Optional number of decimals, unstripped (int).
Returns:
Conic attributes (str).
Raises:
Overrides: named._Named.toStr

Property Details

auth

An immutable property (Read Only).

Get Method:
auth(self) - Get the authentication authority (str).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

datum

An immutable property (Read Only).

Get Method:
datum(self) - Get the datum (Datum).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

E0

An immutable property (Read Only).

Get Method:
E0(self) - Get the false easting (meter).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

k0

An immutable property (Read Only).

Get Method:
k0(self) - Get scale factor (float).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

lat0

An immutable property (Read Only).

Get Method:
lat0(self) - Get the origin latitude (degrees90).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

latlon0

An immutable property (Read Only).

Get Method:
latlon0(self) - Get the central origin (LatLon2Tuple(lat, lon)).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

lam0

An immutable property (Read Only).

Get Method:
lam0(self) - Get the central meridian (radians).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

lon0

An immutable property (Read Only).

Get Method:
lon0(self) - Get the central meridian (degrees180).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

N0

An immutable property (Read Only).

Get Method:
N0(self) - Get the false northing (meter).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

name2

An immutable property (Read Only).

Get Method:
name2(self) - Get the conic and datum names as "conic.datum" (str).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

opt3

An immutable property (Read Only).

Get Method:
opt3(self) - Get the optional meridian (degrees180).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

par1

An immutable property (Read Only).

Get Method:
par1(self) - Get the 1st standard parallel (degrees90).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

par2

An immutable property (Read Only).

Get Method:
par2(self) - Get the 2nd standard parallel (degrees90).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

phi0

An immutable property (Read Only).

Get Method:
phi0(self) - Get the origin latitude (radians).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

philam0

An immutable property (Read Only).

Get Method:
philam0(self) - Get the central origin (PhiLam2Tuple(phi, lam)).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.

SP

An immutable property (Read Only).

Get Method:
SP(self) - Get the number of standard parallels (int).
Set Method:
immutable(inst, value) - Throws an AttributeError, always.