# include <pslib.h>

main (int argc, char **argv) {

  psArray headers;
  psMetadata *base, *site, *camera, *recipe;

  pmConfigLoadBasic (&site, &base);

  fits = psFitsAlloc (input);
  header = psFitsReadHeader (fits);
  pmConfigLoadCamera (&camera, site, header);

  pmConfigLoadRecipe (&recipe, camera, "PHASE2");

  // we've loaded the PHU, determined the camera (and recipe).

  fpa = psFPAAlloc ();

  // is this an image? 
