code for downloading jpg images of SDSS data.
This is a modified version of this code
you can introduce a file of galaxies (name,ra,dec) and obtain the images of that list of galaxies (or any other object).
To test and downdload an image:
import GetSDSS
GetSDSS.simg()
It will download and display an image from SDSS.
you can set RA, DEC, plate scale, image size, plate scale, and Sloan Data release. Just follow this example:
GetSDSS.simg(ra=37.228,dec=0.37, scale=0.396, width=512, height=512,
savename=None, DR=14, init_download=True,show=True)
To download multiple images using a file with coordinates:
GetSDSS.DownFile(file, scale=0.396, width=512, height=512, DR=14, show=False):