astromodule.splus.SplusService.download_lupton_rgb#
- SplusService.download_lupton_rgb(ra: float, dec: float, save_path: str | Path, replace: bool = False, size: int = 128, r_band: str = 'I', g_band: str = 'R', b_band: str = 'G', stretch: int | float = 3, Q: int | float = 8)[source]#
Downloads a single Lupton RGB image based on object posistion, this method accepts arguments to customize Lupton’s parameters
- 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
- r_band: str (optional)
The S-PLUS band that will be mapped as R channel of the RGB image
- g_band: str (optional)
The S-PLUS band that will be mapped as G channel of the RGB image
- b_band: str (optional)
The S-PLUS band that will be mapped as B channel of the RGB image
- stretch: int or float (optional)
The
stretch
parameter of Lupton’s formula- Q: int or float (optional)
The
Q
parameter of Lupton’s formula