Skip to content

Instantly share code, notes, and snippets.

View gracca's full-sized avatar

Germán A. Racca gracca

View GitHub Profile
@gracca
gracca / opts.py
Created October 8, 2015 20:00
Question to Gtk App Devel list
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# opts.py
#
# Copyright (C) 2015 Germán A. Racca
# E-Mail: <gracca[AT]gmail[DOT]com>
# License: GPLv3+
@gracca
gracca / dist.ipynb
Last active August 29, 2015 14:05
Photometric distances to dark clouds
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gracca
gracca / Constelaciones.ipynb
Created July 22, 2014 19:07
Mi primer IPython notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gracca
gracca / test1.py
Last active December 21, 2015 05:09
Create one HDU for each image, and write each image to a fits file (test script)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# create one fits file for each image
import numpy as np
import pyfits
# create 3 empty HDUs
fits = [pyfits.PrimaryHDU() for i in range(3)]
@gracca
gracca / test2.py
Last active December 21, 2015 05:08
Append several HDUs to a HDUList and write all images into only one fits file (test script)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# create one fits file for all images
import numpy as np
import pyfits
# create 3 empty HDUs
fits = [pyfits.PrimaryHDU() for i in range(3)]