5.42. pixels_to_skys¶
Calculate Sky Coordinate of given Pixel.
- FitsArray.pixels_to_skys(xs: List[int | float] | int | float, ys: List[int | float] | int | float) pd.DataFrame¶
Calculate Sky Coordinate of given Pixel.
Parameters
xsUnion[List[Union[int, float]], int, float]x coordinate(s) of pixel.
ysUnion[List[Union[int, float]], int, float]y coordinate(s) of pixel.
Returns
pd.DataFrameData frame of pixel and sky coordinates.
Raises
- ValueError
When the length of
xsandysis not equal.- Unsolvable
When the header does not contain WCS solution.
5.42.1. Example:¶
from myraflib import FitsArray
fa = FitsArray.sample()
ccd = fa.pixels_to_skys(10, 10)