Enlaces y referencias relacionados con la charla La gran explosión de datos en astronomía. Cómo sobrevivir a la avalancha de datos usando Python. de la PyConES 2016
Librerías generales:
| """ | |
| Scale data in fits file by a factor | |
| TODO: Inplace mode is not working | |
| """ | |
| import argparse | |
| import os | |
| from pathlib import Path | |
| from astropy.io import fits | |
| import numpy as np |
| #!/bin/bash | |
| # Images | |
| wget https://owncloud.ia2.inaf.it/index.php/s/UDiKqvuscDQViEt/download -O SKAMid_B1_8h.fit | |
| wget https://owncloud.ia2.inaf.it/index.php/s/2nTtGBWpzYJ5Ghr/download -O SKAMid_B1_100h.fit | |
| wget https://owncloud.ia2.inaf.it/index.php/s/DUNztYKW0PSlNH5/download -O SKAMid_B1_1000h.fit | |
| wget https://owncloud.ia2.inaf.it/index.php/s/zEW4JsefeMycR8p/download -O SKAMid_B2_8h.fit | |
| wget https://owncloud.ia2.inaf.it/index.php/s/8K750vop1yjZZXE/download -O SKAMid_B2_100h.fit | |
| wget https://owncloud.ia2.inaf.it/index.php/s/A7XjSZ3n1Kr57TV/download -O SKAMid_B2_1000h.fit | |
| wget https://owncloud.ia2.inaf.it/index.php/s/Uu7yhRjCYknle54/download -O SKAMid_B5_8h.fit | |
| wget https://owncloud.ia2.inaf.it/index.php/s/7lEeXlNvoYFmEfG/download -O SKAMid_B5_100h.fit |
| #!/usr/bin/env python | |
| import sys | |
| import PyQt5 | |
| from PyQt5.QtWidgets import QApplication | |
| from PyQt5.QtCore import QThread, QUrl | |
| from PyQt5.QtWebKitWidgets import QWebView | |
| from bottle import Bottle |
Enlaces y referencias relacionados con la charla La gran explosión de datos en astronomía. Cómo sobrevivir a la avalancha de datos usando Python. de la PyConES 2016
Librerías generales:
| from __future__ import print_function | |
| import locale | |
| import datetime | |
| import re | |
| import os | |
| from os.path import isfile, join | |
| import unicodedata | |
| from unidecode import unidecode | |
| from __future__ import print_function | |
| from bluetooth.ble import GATTRequester | |
| from time import sleep | |
| def get_accel(data): | |
| """ | |
| Get the acceleration values from the data | |
| TODO: Add CRC check | |
| See: http://legacy.punchthrough.com/bean/the-arduino-reference/accelerationreading/ | |
| """ |
| #!/usr/bin/env python3 | |
| # -*- coding: utf8 -*- | |
| ##### | |
| # Copyright (C) 2015 J. Sabater | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
| #!/usr/bin/env python | |
| """ | |
| Solutions to the problem proposed in http://gu.com/p/493zk/stw | |
| """ | |
| from itertools import permutations | |
| from decimal import Decimal | |
| def p(x): | |
| """ | |
| Define the problem. Follow the canonical order of operations |
| import pexpect | |
| file_in = "input.dat" | |
| file_out = "output.txt" | |
| c = pexpect.spawn ('asurv') | |
| c.expect('(CARRIAGE RETURN TO CONTINUE)') | |
| c.sendline('') | |
| c.expect('(CARRIAGE RETURN TO CONTINUE)') | |
| c.sendline('') |