Created
March 24, 2013 18:06
-
-
Save jonathansick/5232875 to your computer and use it in GitHub Desktop.
Swarping an image to match another
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
# Say the target fits image is image1.fits, you want to align image2.fits to its pixel frame | |
ln -s image1.fits image2_reg.head | |
swarp image2.fits -IMAGEOUT_NAME image2_reg.fits -COMBINE N -RESAMPLE Y | |
# the resampled+aligned image2 will be image2_reg.resample.fits | |
# May be other flags that need to be set; I've pipelined this so I forget how to do a barebones case! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found this gist useful, yet again :)