astromodule.splus.SplusService.batch_image_download#
- SplusService.batch_image_download(ra: List[float], dec: List[float], save_path: List[str | Path], img_type: Literal['trilogy', 'lupton', 'fits'] = 'lupton', workers: int = None, **kwargs)[source]#
Downloads a single Lupton RGB image based on object posistion, this method accepts arguments to customize Lupton’s parameters
- Parameters:
- ra: list of float
A list of right ascension in degrees
- dec: list of float
A list of declination in degrees
- save_path: list of str or list of Path
A list of paths where the file will be saved
- img_type: str (optional)
One of:
lupton
,trilogy
orfits
. Defaults tolupton
- workers: int (optional)
The number of parallel processes that will be spawned. Default to a single process
- kwargs: Any (optional)
Any optional parameter of
download_lupton_rgb()
ifimg_type='lupton'
, or any optional parameter ofdownload_trilogy_rgb()
ifimg_type='trilogy'
or any optional parameter ofdownload_fits()
ifimg_type='fits'
. These parameters must have the same type as the mentioned functions, i.e. pass a single value instead of a list of values and all images will be downloaded with the same parameter
Examples
>>> ra = [172.4, 193.9, 63.3] >>> dec = [0.42, 2.63, -1.24] >>> paths = ['fig1.png', 'fig2.png', 'fig3.png'] >>> service.batch_image_download(ra, dec, paths, 'trilogy', ... size=256, noise=0.2, saturation=0.2)