IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2006, 10:13:03 AM (20 years ago)
Author:
magnier
Message:

adding pmFPAfile handling functions for arguments, etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmFPAfile.h

    r6726 r6819  
    77*  @author EAM, IfA
    88*
    9 *  @version $Revision: 1.1.2.8 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-03-29 20:55:42 $
     9*  @version $Revision: 1.1.2.9 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2006-04-08 20:13:03 $
    1111*
    1212*  Copyright 2004-2005 Institute for Astronomy, University of Hawaii
     
    1717
    1818#include "pslib.h"
     19#include "pmConfig.h"
    1920#include "pmFPA.h"
    2021#include "pmFPAview.h"
     
    7273pmFPAfile;
    7374
     75// allocate an empty pmFPAfile structure
    7476pmFPAfile *pmFPAfileAlloc ();
     77
     78// load the pmFPAfile information from the camera configuration data
    7579pmFPAfile *pmFPAfileDefine (psMetadata *files, psMetadata *camera, pmFPA *fpa, char *name);
     80
     81// load the pmFPAfile information from the camera configuration data, constructing the needed fpa structure
     82// XXX deprecate this function?
     83pmFPAfile *pmFPAfileConstruct (psMetadata *files, psMetadata *format, psMetadata *camera, char *name);
     84
     85// open the real file corresponding to the given pmFPAfile appropriate to the current view
    7686bool pmFPAfileOpen (pmFPAfile *file, const pmFPAview *view);
     87
     88// read from the real file corresponding to the given pmFPAfile for the current view
    7789bool pmFPAfileRead (pmFPAfile *file, const pmFPAview *view);
     90
     91// write to the real file corresponding to the given pmFPAfile for the current view
    7892bool pmFPAfileWrite (pmFPAfile *file, const pmFPAview *view);
     93
     94// close the real file corresponding to the given pmFPAfile appropriate to the current view
    7995bool pmFPAfileClose (pmFPAfile *file, const pmFPAview *view);
    8096
    81 bool pmFPAfileReadChecks (psMetadata *files, const pmFPAview *view);
     97// examine all pmFPAfiles listed in the files and perform the needed I/O operations (open,read,write,close)
    8298bool pmFPAfileIOChecks (psMetadata *files, const pmFPAview *view, pmFPAfilePlace place);
    8399
     100// return an image corresponding to the current readout, from the specified file.  if the pmFPAfile does not
     101// exist, construct the image using the given size and type (save it in a pmFPAfile??)
    84102psImage *pmFPAfileReadoutImage (psMetadata *files, const pmFPAview *view, char *name, int Nx, int Ny, int type);
    85103
     
    90108bool pmFPAviewWriteFitsImage (const pmFPAview *view, pmFPAfile *file);
    91109
     110// look for the given argname on the argument list.  find the give filename from the file rules
     111pmFPAfile *pmFPAfileFromArgs (bool *found, pmConfig *config, char *filename, char *argname);
     112
     113// look for the given argname on the argument list.  find the give filename from the file rules
     114pmFPAfile *pmFPAfileFromConf (bool *found, pmConfig *config, char *filename, pmFPA *input);
     115
     116// add the specified filename info (value) to the files of the given mode using the given reference name
     117bool pmFPAfileAddFileNames (psMetadata *files, char *name, char *value, int mode);
     118
    92119// convert the rule to a name based on the current view
    93120char *pmFPAfileNameFromRule (char *rule, pmFPAfile *file, const pmFPAview *view);
    94121
    95 pmFPAfile *pmFPAfileConstruct (psMetadata *files, psMetadata *format, psMetadata *camera, char *name);
    96 
    97122# endif
Note: See TracChangeset for help on using the changeset viewer.