Skip to content

Instantly share code, notes, and snippets.

View tony-johnson's full-sized avatar

Tony Johnson tony-johnson

  • SLAC
  • Menlo Park, CA
View GitHub Profile
@tony-johnson
tony-johnson / RaftsDemo.java
Created October 29, 2015 19:23
Demo of settings WCS meta-data in a rafts level set of images
package org.lsst.ccs.utilities.ccd;
import java.util.Map;
import org.lsst.ccs.utilities.ccd.CCDGeometry.CCDSegment;
/**
*
* @author tonyj
*/
public class RaftsDemo {
@tony-johnson
tony-johnson / FitsCheckSum.java
Created September 29, 2015 22:00
Modified version of FitsCheckSum.java from nom-tam-fits
package org.lsst.ccs.utilities.image;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.ShortBuffer;
import java.nio.charset.StandardCharsets;
import java.util.logging.Level;
import java.util.logging.Logger;