Skip to content

Instantly share code, notes, and snippets.

@jonathansick
Created March 24, 2013 18:06
Show Gist options
  • Save jonathansick/5232875 to your computer and use it in GitHub Desktop.
Save jonathansick/5232875 to your computer and use it in GitHub Desktop.
Swarping an image to match another
# 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!
@kapadia
Copy link

kapadia commented Jul 8, 2013

Found this gist useful, yet again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment