image (class) ∞
-
class
image(log, ra, dec, downloadDirectory='./', filename='sdss_stamp.jpeg', settings=False, grid=True, label=False, photocat=False, speccat=False, invertColors=False, arcminWidth=5, pixelWidth=500)[source] ∞ Bases:
objectThe worker class for the image module
Key Arguments
log– loggersettings– the settings dictionaryra– right-ascension of the sky-locationdec– declination of the sky-locationdownloadDirectory– directory to download the image stamp to. Default ./filename– path to download the image stamp to. Default “sdss_stamp.jpeg”grid– include grid and scale in stamp. Default Truelabel– label. Default Falsephotocat– mark photometrical catalogued sources. Default Falsespeccat– mark spectrscopical catalogued objects. Default FalseinvertColors– invert the image stamp colors. Default FalsearcminWidth– the width of the image stamp in arcmin. Default 5pixelWidth– the width of the image stamp in pixels. Default 500
Return
covered– the coverage result. True | False | 999 (i.e. not sure)
Usage
Here’s an example where we turn on all options before we download the image:
from sloancone import image imagestamp = image( log=log, settings=settings, ra="179.689293428354", dec="-0.454379056007667", downloadDirectory="/tmp", filename="sdss_stamp.jpeg", grid=True, label=True, photocat=True, speccat=True, invertColors=True, arcminWidth=5, pixelWidth=500 ) # covered = True | False | 999 (i.e. not sure) covered = imagestamp.get()
This produces a stamp at
/tmp/sdss_stamp.jpegthat looks like this:
:width: 800px :alt: SDSS image stamp with all options turned on
Methods
get()download the image