Headers for LASCO IDL Library: SUMBUFF

This page was created by IDL lasco_mk_html_help.pro on Wed Aug 17 12:22:01 2005.


List of Routines


Routine Descriptions

ANALYZE_IMG

[List of Routines] (See ./analyze_img.pro)

 NAME:
	ANALYZE_IMG

 PURPOSE:
	This procedure reads the headers of raw *.img files and looks
       for summing buffer usage and header only files.  It will match the
       headers and summing buffer files and write the fixed headers to
       a specified directory

 CATEGORY:
	Reduction

 CALLING SEQUENCE:

       ANALYZE_IMG, Root_dir,Outdir,Udates,Error_flag

 
 INPUTS:
	Root_dir: Directory to search for input *.img files
       Outdir:   Directory to put output *.img files

 KEYWORD PARAMETERS:
       NOWRITE  - Analyze only
 OUTPUTS:
      Udates:       String array with Unique dates
      Error_flag:   Integer array with value for each datei
                    0 = OK  1 = possible error 2 = serious error

 RESTRICTIONS:

 PROCEDURE:
      Read all the *.img files and analyze them to find the files from the
      summing buffers and headers for summing buffer files.  Match the
       first header with the first file etc. for each summing buffer.
       This works so long as the directory contains complete sets of 
       headers and files.  The procedure also checks that the OS_NUM
       aka CAMPAIGN_ID is the same header and file for each set.  Normal
       files (e.g. not from a summing buffer) should be ignored.
 EXAMPLE:
       ANALYZE_IMG,'/ql/raw','/ql/fixed',error_flag

 MODIFICATION HISTORY:
 	Written by:	Dennis Wang - 27 Jun 2000
       14 Jul 2000 DW - Changed OS_num ranges, Read 200 bytes for header
       08 Aug 2000 DW - Reduced error level of OS_NUM mismatch to possible 
                        error rather than serious error
       17 Oct 2000 DW - Added NOWRITE keyword and multiple date warning
       17 Oct 2000 DW - Added day by day analysis 
	17 Dec 2001 NR - Moved 'CD, old_dir' out of FOR loop to end

	@(#)analyze_img.pro	1.6, 12/17/01 - NRL LASCO IDL LIBRARY


SUMBUFFIX

[List of Routines] (See ./sumbuffix.pro)

 PURPOSE:
 Fix *.img science headers when summing buffer is used

 Problem: Using the summing buffers generates files with wrong FITs headers

 Image 1: Sum Buffer A +, Hdr only
 Image 2: Sum Buffer B +, Hdr only
 Image 3: Image Buffer, Rice, Sum Buffer A, Rice, Sum Buffer B, Rice

 produces
  3 files with the Image 3 FITS hdr

  Solution: Replace sci hdr with the proper one

 CALL:
        SUMBUFFIX,Root_dir,Filename,Outdir,Rep_file,Rep_hdr
 INPUT:
               Root_dir - directory name containing filename and rep_file
		Filename - file needing new header
               Outdir   - output directory
		Rep_file - replacement header filename

 OUTPUT:
		Rep_hdr  - replacement header

 EXAMPLE:
        SUMBUFFIX,'/ql/raw','file1.img','/ql/fixed','hdr.img',rep_hdr

 HISTORY:
  Written by:   Dennis Wang

  @(#)sumbuffix.pro	1.1 06/28/00 : NRL IDL LIBRARY


This page was created by IDL lasco_mk_html_help.pro on Wed Aug 17 12:22:01 2005.