IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 16, 2006, 3:50:43 PM (20 years ago)
Author:
magnier
Message:

updates from day when MHPCC CVS was down

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfile.h

    r7480 r7589  
    77*  @author EAM, IfA
    88*
    9 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-06-10 03:01:29 $
     9*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2006-06-17 01:50:43 $
    1111*
    1212*  Copyright 2004-2005 Institute for Astronomy, University of Hawaii
     
    5858    pmFPAfileState state;  // have we opened the file, etc?
    5959
    60     pmFPAdepth fileDepth;  // what depth in the FPA hierarchy represents a unique file?
    61     pmFPAdepth dataDepth;  // at what depth do we read/write the data segment?
     60    pmFPALevel fileLevel;  // what level in the FPA hierarchy represents a unique file?
     61    pmFPALevel dataLevel;  // at what level do we read/write the data segment?
    6262
    6363    pmFPA *fpa;    // for I/O files, we carry a pointer to the complete fpa
     
    8080    char *extname;   // the current name of an active file extension
    8181
     82    bool save;
     83
    8284    // the following elements are used for WRITE-mode IMAGE-type pmFPAfiles to inform
    8385    // the creation of a new image based on an existing image
     
    8587    int xBin;    // desired binning in x direction
    8688    int yBin;    // desired binning in y direction
     89
     90    psMetadata *camera;
    8791    psMetadata *format;
    8892}
     
    9296pmFPAfile *pmFPAfileAlloc ();
    9397
    94 // load the pmFPAfile information from the camera configuration data
    95 pmFPAfile *pmFPAfileDefine (psMetadata *files, psMetadata *camera, pmFPA *fpa, char *name);
    96 
    97 // load the pmFPAfile information from the camera configuration data, constructing the needed fpa structure
    98 // XXX deprecate this function?
    99 // pmFPAfile *pmFPAfileConstruct (psMetadata *files, psMetadata *format, psMetadata *camera, char *name);
    100 
    101 // open the real file corresponding to the given pmFPAfile appropriate to the current view
    102 bool pmFPAfileOpen (pmFPAfile *file, const pmFPAview *view);
    103 
    104 // read from the real file corresponding to the given pmFPAfile for the current view
    105 bool pmFPAfileRead (pmFPAfile *file, const pmFPAview *view);
    106 
    107 bool pmFPAfileCreate (pmFPAfile *file, const pmFPAview *view);
    108 
    109 // write to the real file corresponding to the given pmFPAfile for the current view
    110 bool pmFPAfileWrite (pmFPAfile *file, const pmFPAview *view);
    111 
    112 // close the real file corresponding to the given pmFPAfile appropriate to the current view
    113 bool pmFPAfileClose (pmFPAfile *file, const pmFPAview *view);
    114 
    115 // free the data at this level
    116 bool pmFPAfileFreeData(pmFPAfile *file, const pmFPAview *view);
    117 
    118 // set the state of the specified pmFPAfile to active (state == true) or inactive
    119 // if name is NULL, set the state for all pmFPAfiles
    120 bool pmFPAfileActivate (psMetadata *files, bool state, char *name);
    121 
    122 // examine all pmFPAfiles listed in the files and perform the needed I/O operations (open,read,write,close)
    123 bool pmFPAfileIOChecks (psMetadata *files, const pmFPAview *view, pmFPAfilePlace place);
    124 
    125 // return an image corresponding to the current readout, from the specified file.  if the pmFPAfile does not
    126 // exist, construct the image using the given size and type (save it in a pmFPAfile??)
    127 // psImage *pmFPAfileReadoutImage (psMetadata *files, const pmFPAview *view, char *name, int Nx, int Ny, int type);
    128 
    12998// select the readout from the named pmFPAfile; if the named file does not exist,
    13099pmReadout *pmFPAfileThisReadout (psMetadata *files, const pmFPAview *view, const char *name);
    131 
    132 // create a file with the given name, assign it type "INTERNAL", and supply it with an image
    133 // of the requested dimensions. (image only, mask and weight are ignored)
    134 pmReadout *pmFPAfileCreateInternal (psMetadata *files, char *name, int Nx, int Ny, int type);
    135 
    136 // delete the INTERNAL file of the given name (if it exists)
    137 bool pmFPAfileDropInternal (psMetadata *files, char *name);
    138 
    139 // read an image into the current view
    140 bool pmFPAviewReadFitsImage (const pmFPAview *view, pmFPAfile *file);
    141 
    142 // write the components for the specified view
    143 bool pmFPAviewWriteFitsImage (const pmFPAview *view, pmFPAfile *file);
    144 
    145 // free the appropriate image containers
    146 bool pmFPAviewFreeFitsImage (const pmFPAview *view, pmFPAfile *file);
    147 
    148 // look for the given argname on the argument list.  find the give filename from the file rules
    149 pmFPAfile *pmFPAfileFromArgs (bool *found, pmConfig *config, char *filename, char *argname);
    150 
    151 // look for the given argname on the argument list.  find the give filename from the file rules
    152 pmFPAfile *pmFPAfileFromConf (bool *found, pmConfig *config, char *filename, pmFPA *input);
    153 
    154 // create a new output pmFPAfile based on an existing FPA
    155 pmFPAfile *pmFPAfileFromFPA (pmConfig *config, pmFPA *src, int xBin, int yBin, char *filename);
    156100
    157101// add the specified filename info (value) to the files of the given mode using the given reference name
Note: See TracChangeset for help on using the changeset viewer.