Coordinate conversion
Classes and functions for coordinate conversion among the following reference systems:
projection and rc_g for ptoducts in ground) (row, col) [pixel, pixel]
(slow time, fast time ) (azimuth, range) [s, s]
(x, y, z) [m, m, m]
llh: geodetic coordinates
(lat, lon, h) [deg, deg, m] (lat, lon, h) [rad, rad, m]
There can be different method to perform conversions according to the input information availability:
| src | dst | OK | function/method | mode | note |
|---|---|---|---|---|---|
| rc_s | ttau | OK | SlantRC2TTau.rc2ttau | direct | |
| ttau | rc_s | OK | SlantRC2TTau.rc2ttau | direct | |
| rc_g | ttau | NO | GroundRC2TTau.ttau2rc | rc_g -> rc_s -> ttau | |
| ttau | rc_g | NO | GroundRC2TTau.ttau2rc | ttau -> rc_s -> rc_g | |
| rc_s | xyz | OK | SlantRC2XYZ.rc2xyz | rc_s -> ttau -> xyz | |
| xyz | rc_s | OK | SlantRC2XYZ.xyz2rc | xyz -> ttau -> rc_s | |
| rc_g | xyz | NO | GroundRC2XYZ.rc2xyz | rc_g -> rc_s -> ttau -> xyz | |
| xyz | rc_g | NO | GroundRC2XYZ.xyz2rc | xyz -> ttau -> rc_s -> rc_g | |
| rc_s | llh | OK | X.rc2xyz + xyz2llh | rc_s -> ttau -> xyz -> llh | |
| llh | rc_s | OK | llh2xyz + X.xyz2rc | llh -> xyz -> ttau -> rc_s | |
| rc_g | llh | NO | GroundRC2LLH.rc2llh | rc_g -> rc_s -> ttau -> xyz -> llh | |
| llh | rc_g | NO | GroundRC2LLH.llh2rc | llh -> xyz -> ttau -> rc_s -> rc_g | |
| ttau | xyz | OK | TTau2XYZ.ttau2xyz | direct | |
| xyz | ttau | OK | TTau2XYZ.xyz2ttau | direct | |
| ttau | llh | OK | X.ttau2xyz + xyz2llh | ttau -> xyz -> llh | |
| llh | ttau | OK | llh2xyz + X.xyz2ttau | llh -> xyz -> ttau | |
| xyz | llh | OK | xyz2llh | direct | |
| llh | xyz | OK | llh2xyz | direct | |
| rc | llh | OK | GridRC2LLH.rc2llh | direct | grid based |
| llh | rc | OK | GridLLH2RC.llh2rc | direct | grid based |
Functions
| all(a[, axis, out]) | Test whether all array elements along a given axis evaluate to True. |
| arange | arange([start,] stop[, step,], dtype=None) |
| asarray(a[, dtype, order]) | Convert the input to an array. |
| atleast_1d(*arys) | Convert inputs to arrays with at least one dimension. |
| doppler(R, V, lambda_[, fd]) | Doppler equation |
| ellipsoid(P[, ell]) | Ellipsoid equation |
| isscalar(num) | Returns True if the type of num is a scalar type. |
| llh2xyz_deg(lat, lon, h[, ell]) | Convert geocentric coordinates to cartesian |
| llh2xyz_rad(lat, lon, h[, ell]) | Convert geocentric coordinates to cartesian |
| only_projected_projs() | |
| osr_datums() | Return most significant datums |
| projections() | Return most significant projections |
| ravel(a[, order]) | Return a flattened array. |
| size(a[, axis]) | Return the number of elements along a given axis. |
| slantrange(R, tau) | Slant range equation |
| xyz2llh_deg(x, y, z[, ell]) | Convert cartesian coordinates to geocentric |
| xyz2llh_rad(x, y, z[, ell]) | Convert cartesian coordinates to geocentric |
Classes
| Coor | Base class for coordinate conversion. |
| CoorAffineTransform(geotransform, projection) | |
| CoorGCP | |
| CoorGeo(bottom_left_east_north, ...) | |
| CoorGeoBase(bottom_left_east_north, ...) | |
| CoorGeoCSK(bottom_left_east_north, ...[, ...]) | |
| CoorGrid(rows, cols, lats, lons[, hs]) | Image to geodetic coordinate conversion based on [(r,c),(l,l,h)] grid. |
| CoorGridBSpline(rows, cols, lats, lons[, hs]) | |
| CoorGridTimes(t0, tau0, dt, dtau, rows, ...) | Image, geodetic and time coordinate conversion based on [(r,c),(l,l,h)] grid. |
| CoorGridTimesGround(t0, tau0, dt, dtau, ...) | Image, geodetic and time coordinate conversion based on [(r,c),(l,l,h)] grid in ground projection. |
| CoorGridTimesSlant(t0, tau0, dt, dtau, rows, ...) | Image, geodetic and time coordinate conversion based on [(r,c),(l,l,h)] grid in slant projection. |
| CoorPhModel(t0, tau0, dt, dtau, lambda_, t, p) | Image, geodetic, cartesian and time coordinate conversion based on physical model. |
| CoorPhModelGround(t0, tau0, dt, dtau, ...[, ...]) | Image, geodetic, cartesian and time coordinate conversion based on physical model in ground projection. |
| CoorPhModelSlant(t0, tau0, dt, dtau, ...[, ...]) | Image, geodetic, cartesian and time coordinate conversion based on physical model in slant projection. |
| GeoCart([ellipsoid_designator, projection_id]) | Base class for conversion between geodetic and map projection coordinates. |
| GeoCartStere(centre_lat, centre_lon, ...[, ...]) | Class for coordinate conversion between lat-long <-> Stereographic coordinates. |
| GeoCartUTM([utm_zone, north_emisphere, ...]) | Class for coordinate conversion between lat-long <-> UTM coordinates. |
| GeoCartWGS84UPS([north_pole]) | Class for coordinate conversion between WGS84 <-> UPS coordinates. |
| GridLLH2RC(rows, cols, lats, lons, hs) | Conversion (lat, lon, h) to (row, col) coordinates based on well know grid. |
| GridRC2LLH(rows, cols, lats, lons, hs) | Conversion (row, col) to (lat, lon, h) coordinates based on well know grid. |
| GroundProjLLH2RC(t0, tau0, dt, dtau, ...[, ...]) | rc –> ttau –> xyz –> llh |
| GroundProjRC2LLH(t0, tau0, dt, dtau, ...[, ...]) | rc –> ttau –> xyz –> llh |
| GroundProjRC2TTau(t0, tau0, dt, dtau, gr2sl, ...) | Image to geodetic coordinate conversion in slant projection. |
| GroundProjRC2XYZ(t0, tau0, dt, dtau, ...[, ...]) | rc –> ttau –> xyz |
| GroundProjXYZ2RC(t0, tau0, dt, dtau, ...[, ...]) | xyz –> ttau –> rc |
| SlantProjLLH2RC(t0, tau0, dt, dtau, lambda_, ...) | rc –> ttau –> xyz –> llh |
| SlantProjRC2LLH(t0, tau0, dt, dtau, lambda_, ...) | rc –> ttau –> xyz –> llh |
| SlantProjRC2TTau(t0, tau0, dt, dtau) | Image to geodetic coordinate conversion in slant projection. |
| SlantProjRC2XYZ(t0, tau0, dt, dtau, lambda_, ...) | rc –> ttau –> xyz |
| SlantProjXYZ2RC(t0, tau0, dt, dtau, lambda_, ...) | xyz –> ttau –> rc |
| StateVectors(t, p, v[, a, att, attnor]) | |
| TTau2XYZ(lambda_, sttv[, ell, solver, fd]) | |
| XYZ2TTau(lambda_, sttv[, solver, fd]) | |
| matrix | matrix(data, dtype=None, copy=True) |
Exceptions
| InvalidCoorMapperError | |
| InvalidInterpolatorError | |
| InvalidProjectionError |
Base class for coordinate conversion.
Image to geodetic coordinate conversion based on [(r,c),(l,l,h)] grid.
A conversion grid is a set of image points whose geodetic coordinates are known. Given the conversion grid for initialization, then it is possible to convert (r,c)<->(l,l,h).
| Parameters : |
|---|
Returns (row,col) image coodinates given (lat,lon,h) geodetic coordinates.
| Parameters : |
|---|
Returns (lat,lon,h) geodetic coordinates given (row,col) image coodinates.
| Parameters : |
|---|
Returns (row,col) image coodinates given (lat,lon,h) geodetic coordinates.
| Parameters : |
|---|
Returns (lat,lon,h) geodetic coordinates given (row,col) image coodinates.
| Parameters : |
|---|
Image, geodetic and time coordinate conversion based on [(r,c),(l,l,h)] grid.
A conversion grid is a set of image points whose geodetic coordinates are known.
| Parameters : |
|---|
Returns (t,tau) time coordinates given (row,col) image coodinates.
| Parameters : |
|---|
Returns (row,col) image coordinates given (t,tau) time coordinates.
| Parameters : |
|---|
Image, geodetic and time coordinate conversion based on [(r,c),(l,l,h)] grid in ground projection.
A conversion grid is a set of image points whose geodetic coordinates are known.
| Parameters : |
|---|
Returns (t,tau) time coordinates given (row,col) image coodinates.
| Parameters : |
|---|
Returns (row,col) image coordinates given (t,tau) time coordinates.
| Parameters : |
|---|
Image, geodetic and time coordinate conversion based on [(r,c),(l,l,h)] grid in slant projection.
A conversion grid is a set of image points whose geodetic coordinates are known.
| Parameters : |
|---|
Returns (t,tau) time coordinates given (row,col) image coodinates.
| Parameters : |
|---|
Returns (row,col) image coordinates given (t,tau) time coordinates.
| Parameters : |
|---|
Image, geodetic, cartesian and time coordinate conversion based on physical model.
The physical model is based on satellite motion information.
| Parameters : |
|---|
Returns (row,col) image coodinates given (lat,lon,h) geodetic coordinates.
| Parameters : |
|---|
Returns (lat,lon,h) geodetic coordinates given (row,col) image coodinates.
| Parameters : |
|---|
Image, geodetic, cartesian and time coordinate conversion based on physical model in ground projection.
The physical model is based on satellite motion information.
| Parameters : |
|---|
Returns (row,col) image coodinates given (lat,lon,h) geodetic coordinates.
| Parameters : |
|---|
Returns (lat,lon,h) geodetic coordinates given (row,col) image coodinates.
| Parameters : |
|---|
Image, geodetic, cartesian and time coordinate conversion based on physical model in slant projection.
The physical model is based on satellite motion information.
| Parameters : |
|---|
Coordinate conversion: (row, col) –> (lat,lon).
Override standard method
Returns (row,col) image coodinates given (lat,lon,h) geodetic coordinates.
| Parameters : |
|---|
Returns (lat,lon,h) geodetic coordinates given (row,col) image coodinates.
| Parameters : |
|---|
Base class for conversion between geodetic and map projection coordinates.
The physical model is based on satellite motion information.
| Parameters : |
|---|
Class for coordinate conversion between lat-long <-> Stereographic coordinates.
| Parameters : |
|
|---|
Returns geodetic coodinates given UPS cartographic coordinates.
| Parameters : |
|---|
| Output : |
|---|
Returns Stereographic coordinates given geodetic coodinates.
Parameters:
- lat: latidute [decimal degrees]
- lon: longitude [decimal degrees]
- heigth: [m], optional
| Output : |
|
|---|
Class for coordinate conversion between lat-long <-> UTM coordinates.
| Parameters : |
|---|
Note
UTM projection is applied for latitudes <= 84deg and >= -80deg.
Returns geodetic coodinates given UTM cartographic coordinates.
| Parameters : |
|---|
| Output : |
|---|
Returns UTM cartographic coordinates given geodetic coodinates.
Parameters:
- lat: latidute [decimal degrees]
- lon: longitude [decimal degrees]
- heigth: [m], optional
| Output : |
|
|---|
Class for coordinate conversion between WGS84 <-> UPS coordinates.
| Parameters : |
|---|
Note
UPS projection is applied for latitudes >= 84deg or <= -80deg.
Returns WGS84 geodetic coodinates given UPS cartographic coordinates.
| Parameters : |
|---|
| Output : |
|---|
Returns UPS cartographic coordinates given WGS84 geodetic coodinates.
| Parameters : |
|---|
| Output : |
|---|
(east, north, h, north pole) - east: UPS east coordinate [m] - north: UPS north coordinate [m] - height: [m] - north pole: int
- ‘1’ indicates the north pole
- ‘0’ indicates the south pole
Conversion (lat, lon, h) to (row, col) coordinates based on well know grid.
| Parameters : |
|---|
Conversion (row, col) to (lat, lon, h) coordinates based on well know grid.
| Parameters : |
|---|
Conversion (row, col) to (lat, lon, h) coordinates based on well know grid.
| Parameters : |
|---|
Conversion (row, col) to (lat, lon, h) coordinates based on well know grid.
| Parameters : |
|---|
rc –> ttau –> xyz –> llh
rc –> ttau –> xyz –> llh
Image to geodetic coordinate conversion in slant projection.
| Parameters : |
|---|
rc –> ttau –> xyz
xyz –> ttau –> rc
rc –> ttau –> xyz –> llh
rc –> ttau –> xyz –> llh
Image to geodetic coordinate conversion in slant projection.
| Parameters : |
|---|
rc –> ttau –> xyz
xyz –> ttau –> rc
Doppler equation
| Parameters : |
|---|
Ellipsoid equation
| Parameters : |
|---|
Convert geocentric coordinates to cartesian
OGP Surveying and Positioning Guidance Note number 7, part 2 – August 2008 To facilitate improvement, this document is subject to revision. The current version is available at www.epsg.org.
Slant range equation
| Parameters : |
|---|
Convert cartesian coordinates to geocentric
OGP Surveying and Positioning Guidance Note number 7, part 2 – August 2008 To facilitate improvement, this document is subject to revision. The current version is available at www.epsg.org.