Changeset 6819 for branches/rel10_ifa/psModules/src/astrom/pmFPAfile.h
- Timestamp:
- Apr 8, 2006, 10:13:03 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/astrom/pmFPAfile.h
r6726 r6819 7 7 * @author EAM, IfA 8 8 * 9 * @version $Revision: 1.1.2. 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-0 3-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 $ 11 11 * 12 12 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii … … 17 17 18 18 #include "pslib.h" 19 #include "pmConfig.h" 19 20 #include "pmFPA.h" 20 21 #include "pmFPAview.h" … … 72 73 pmFPAfile; 73 74 75 // allocate an empty pmFPAfile structure 74 76 pmFPAfile *pmFPAfileAlloc (); 77 78 // load the pmFPAfile information from the camera configuration data 75 79 pmFPAfile *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? 83 pmFPAfile *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 76 86 bool pmFPAfileOpen (pmFPAfile *file, const pmFPAview *view); 87 88 // read from the real file corresponding to the given pmFPAfile for the current view 77 89 bool pmFPAfileRead (pmFPAfile *file, const pmFPAview *view); 90 91 // write to the real file corresponding to the given pmFPAfile for the current view 78 92 bool pmFPAfileWrite (pmFPAfile *file, const pmFPAview *view); 93 94 // close the real file corresponding to the given pmFPAfile appropriate to the current view 79 95 bool pmFPAfileClose (pmFPAfile *file, const pmFPAview *view); 80 96 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) 82 98 bool pmFPAfileIOChecks (psMetadata *files, const pmFPAview *view, pmFPAfilePlace place); 83 99 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??) 84 102 psImage *pmFPAfileReadoutImage (psMetadata *files, const pmFPAview *view, char *name, int Nx, int Ny, int type); 85 103 … … 90 108 bool pmFPAviewWriteFitsImage (const pmFPAview *view, pmFPAfile *file); 91 109 110 // look for the given argname on the argument list. find the give filename from the file rules 111 pmFPAfile *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 114 pmFPAfile *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 117 bool pmFPAfileAddFileNames (psMetadata *files, char *name, char *value, int mode); 118 92 119 // convert the rule to a name based on the current view 93 120 char *pmFPAfileNameFromRule (char *rule, pmFPAfile *file, const pmFPAview *view); 94 121 95 pmFPAfile *pmFPAfileConstruct (psMetadata *files, psMetadata *format, psMetadata *camera, char *name);96 97 122 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
