astromodule.splus.SplusService.download_fits#
- SplusService.download_fits(ra: float, dec: float, save_path: str | Path, replace: bool = False, size: int = 128, band: str = 'R')[source]#
Downloads a single FITS image based on object posistion
- Parameters:
- ra: float
The right ascension in degrees
- dec: float
The declination in degrees
- save_path: str or Path
The path where the file will be saved
- replace: bool (optional)
This method checks if a file exists in
save_path
location before the download. If this parameters isTrue
and a file exists insave_path
location, this method will ovewrite the existing file. If this parameter isFalse
and a file exists insave_path
location, this method will skip the download- size: int (optional)
The image size in pixels
- band: str (optional)
The S-PLUS band of the fits file