4.22. fits_shift¶
Shifts the data of the Fits object.
- Fits.shift(x: int, y: int, output: str | None = None, override: bool = False) Self¶
Shifts the data of the
Fitsobject.Parameters
- x (
int): The number of pixels to shift in the x-direction.
- x (
- y (
int): The number of pixels to shift in the y-direction.
- y (
- output (
str, optional): Path of the new fits file where the shifted data will be saved.
- output (
- override (
bool, default=False): If
True, will overwrite the output if a file with the same name already exists.
- override (
Returns
FitsA shifted
Fitsobject.
4.22.1. Example:¶
from myraflib import Fits
fits = Fits.sample()
shifted_fits = Fits.shift(10, 10)