rasterio.rpc module

class rasterio.rpc.RPC(height_off, height_scale, lat_off, lat_scale, line_den_coeff, line_num_coeff, line_off, line_scale, long_off, long_scale, samp_den_coeff, samp_num_coeff, samp_off, samp_scale, err_bias=None, err_rand=None)

Bases: object

Rational Polynomial Coefficients used to map (x, y, z) <-> (row, col) coordinates.

This class contains a mapping between various RPC attributes and values.

err_bias, err_rand

The RMS bias and random error in meters per horizontal axis of all points in image.

Type:

float, optional

lat_off, long_off, height_off

Geodetic latitude, longitude, and height offset.

Type:

float

lat_scale, long_scale, height_scale

Geodetic latitude, longitude, and height scaling.

Type:

float

line_off, samp_off

Line (row) and sample (column) offset.

Type:

float

line_scale, samp_scale

Line (row) and sample (column) offset.

Type:

float

line_num_coeff, line_den_coeff, samp_num_coeff, samp_den_coeff

The twenty coefficients describing a numerator or denominator polynomial corresponding to line (row) or sample (col).

Type:

list

err_bias
err_rand
classmethod from_gdal(rpcs)

Deserialize dict values to float or list.

Return type:

RPC

height_off
height_scale
lat_off
lat_scale
line_den_coeff
line_num_coeff
line_off
line_scale
long_off
long_scale
samp_den_coeff
samp_num_coeff
samp_off
samp_scale
to_dict()

Return a dictionary representation of RPC

to_gdal()

Serialize RPC attribute name and values in a form expected by GDAL.

Return type:

dict

Notes

The err_bias and err_rand are optional, and are not written to datasets by GDAL.