/*******************************************************************/
/* VLTI AMBER DATA REDUCTION SOFTWARE (AMDRS)                      */
/*                                                                 */
/* FILE: amberSupport.c                                           */
/*                                                                 */
/* Contains additional support routines                            */
/*                                                                 */
/* (tlicha 15-01-03) initial version                               */
/*                                                                 */
/*******************************************************************/ 

#include "amdrs.h"
#include <math.h>
#include <stdio.h>

/* -------------------------------------------------------------- */
/* |                                                            | */
/* |   FITS IO based functions                                  | */
/* |   not needed anymore                                       | */
/* -------------------------------------------------------------- */
int CreateRawDataDisplay( char * szInfile, char * szOutfile )
{
  int iStatus = 1;
  
  /* --------- 
  0  = OK
  1  = not a FITS file
  2  = Ext 2 or 3 not present
  3  = Wrong number of Regions in Extension 2 
  4  = No new FITS Header available
  5  = Cannot create outfile 
  
  11 = no memory for buffer
  12 = cannot open table with IMAGING_DATA
  
  20 = amdlib error
  ----------- */
  
  return iStatus;
}

/*
  Copies the Raw Data Subwindows (Channels) to the new FITS Image
*/
int CreateFitsImage( char * szInfile, char * szOutFile, int iTelescopes, int iXSubWindow, int iYSubWindow )
{
  int iStatus = 2;
  
  /* Not needed anymore */
  
  /* --------- 
  0 = OK
  1 = no memory for buffer
  2 = cannot open table
  ----------- */
  return iStatus;
}

/* -------------------------------------------------------------- */
/* |                                                            | */
/* |   ADDITIONAL SUPPORT ROUTINES                              | */
/* |                                                            | */
/* -------------------------------------------------------------- */
