magpie.pixels.pix2pos_cart1d

magpie.pixels.pix2pos_cart1d(pixID, length, ngrid, origin=0.0)

Returns the 1D pixel coordinate from a pixel index.

Parameters
pixIDint or array

1D pixel index.

lengthfloat

Length of the grid.

ngridint

Number of grid points.

originfloat, optional

Minimum value of the grid.

Returns
xfloat or array

Mid-point of the pixel points.

dxfloat

Pixel width.