4.16. value¶
Returns a value of asked coordinate
- Fits.value(x, y) float¶
Returns the value at the specified coordinates.
Parameters
xintX coordinate of the requested pixel.
yintY coordinate of the requested pixel.
Returns
floatThe value at the specified (x, y) coordinates.
Raises
IndexErrorRaised 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)