Created
November 20, 2017 23:59
-
-
Save ijiraq/dcdea117b8e32fee9aef865db858cb13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_suprimecam_mosaic_preview(frame_id="SUPA0010598X"): | |
""" | |
Retrieve a PNG mosiac preview from the SMOKA site | |
:param date: | |
:param frame_id: | |
:return: | |
""" | |
endpoint = "http://smoka.nao.ac.jp/qlis/ImagePNG" | |
frame_id = frame_id.replace("X", "0") | |
params = {'frameid': frame_id, | |
'grayscale': 'linear', | |
'mosaic': 'true'} | |
return requests.get(endpoint, params=params).content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment