Skip to content

Instantly share code, notes, and snippets.

View nudomarinero's full-sized avatar
🌋

Jose Sabater nudomarinero

🌋
View GitHub Profile
@nudomarinero
nudomarinero / download.bash
Created December 4, 2018 12:07
Download the data from the first SKA science data challenge
#!/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
@nudomarinero
nudomarinero / scale_fits.py
Created June 23, 2020 20:16
Scale FITS image by a factor
"""
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