projinfo

mipylib.numeric.minum.projinfo(proj='longlat', **kwargs)

Create a projection object with Proj.4 parameters.

Parameters:
  • proj – (string) Projection name.

  • lat_0 – (float) Latitude of origin.

  • lon_0 – (float) Central meridian.

  • lat_1 – (float) Latitude of first standard paralle.

  • lat_2 – (float) Latitude of second standard paralle.

  • lat_ts – (float) Latitude of true scale.

  • k – (float) Scaling factor.

  • x_0 – (float) False easting.

  • y_0 – (float) False northing.

  • h – (float) Height from earth surface.

Returns:

(ProjectionInfo) ProjectionInfo object.

Reference:

http://proj4.org/

http://remotesensing.org/geotiff/proj_list/

Example:

>>> proj = projinfo()
>>> proj
+title=long/lat:WGS84 +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees
>>> proj = projinfo(proj='lcc', lon_0=105, lat_1=25, lat_2=47)
>>> proj
+proj=lcc +lat_0=0 +lon_0=105 +lat_1=25 +lat_2=47 +lat_ts=0 +k=1 +x_0=0 +y_0=0 +h=0