4.16. value

Returns a value of asked coordinate


Fits.value(x, y) float

Returns the value at the specified coordinates.

Parameters

xint

X coordinate of the requested pixel.

yint

Y coordinate of the requested pixel.

Returns

float

The value at the specified (x, y) coordinates.

Raises

IndexError

Raised if the (x, y) coordinates are out of boundaries.


4.16.1. Example:

from myraflib import Fits

fits = Fits.sample()
value = fits.value(10, 10)