Skip to content

Instantly share code, notes, and snippets.

View inonchiu's full-sized avatar

I-Non Chiu inonchiu

View GitHub Profile
@inonchiu
inonchiu / rotate_wcs.py
Created June 27, 2016 07:41 — forked from dsberry/rotate_wcs.py
Script to rotate the WCS associated with a FITS file using pyast
#!/bin/env python
# Rotates a simple 2D FITS image. If <xcen> and <ycen> are specified,
# the output image is the same size as the input image. Otherwise,
# the output image is the smallest that will hold all the rotated input
# data.
# Usage:
# rotate_wcs.py <infile> <outfile> <rotation> [<xcen> <ycen>]
#