Changeset 7589 for trunk/psModules/src/camera/pmFPAfile.h
- Timestamp:
- Jun 16, 2006, 3:50:43 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAfile.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfile.h
r7480 r7589 7 7 * @author EAM, IfA 8 8 * 9 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-06-1 0 03:01:29$9 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-06-17 01:50:43 $ 11 11 * 12 12 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii … … 58 58 pmFPAfileState state; // have we opened the file, etc? 59 59 60 pmFPA depth fileDepth; // what depthin the FPA hierarchy represents a unique file?61 pmFPA depth dataDepth; // at what depthdo 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? 62 62 63 63 pmFPA *fpa; // for I/O files, we carry a pointer to the complete fpa … … 80 80 char *extname; // the current name of an active file extension 81 81 82 bool save; 83 82 84 // the following elements are used for WRITE-mode IMAGE-type pmFPAfiles to inform 83 85 // the creation of a new image based on an existing image … … 85 87 int xBin; // desired binning in x direction 86 88 int yBin; // desired binning in y direction 89 90 psMetadata *camera; 87 91 psMetadata *format; 88 92 } … … 92 96 pmFPAfile *pmFPAfileAlloc (); 93 97 94 // load the pmFPAfile information from the camera configuration data95 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 structure98 // 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 view102 bool pmFPAfileOpen (pmFPAfile *file, const pmFPAview *view);103 104 // read from the real file corresponding to the given pmFPAfile for the current view105 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 view110 bool pmFPAfileWrite (pmFPAfile *file, const pmFPAview *view);111 112 // close the real file corresponding to the given pmFPAfile appropriate to the current view113 bool pmFPAfileClose (pmFPAfile *file, const pmFPAview *view);114 115 // free the data at this level116 bool pmFPAfileFreeData(pmFPAfile *file, const pmFPAview *view);117 118 // set the state of the specified pmFPAfile to active (state == true) or inactive119 // if name is NULL, set the state for all pmFPAfiles120 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 not126 // 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 129 98 // select the readout from the named pmFPAfile; if the named file does not exist, 130 99 pmReadout *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 image133 // 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 view140 bool pmFPAviewReadFitsImage (const pmFPAview *view, pmFPAfile *file);141 142 // write the components for the specified view143 bool pmFPAviewWriteFitsImage (const pmFPAview *view, pmFPAfile *file);144 145 // free the appropriate image containers146 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 rules149 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 rules152 pmFPAfile *pmFPAfileFromConf (bool *found, pmConfig *config, char *filename, pmFPA *input);153 154 // create a new output pmFPAfile based on an existing FPA155 pmFPAfile *pmFPAfileFromFPA (pmConfig *config, pmFPA *src, int xBin, int yBin, char *filename);156 100 157 101 // 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.
