#include "studynr.h"Go to the source code of this file.
Defines | |
| #define | DFT_VER "DFT1" |
| #define | _DFT_COMMENT_LEN 16384 |
| #define | NA -99000. |
| #define | readDFT dftRead |
| #define | writeDFT dftWrite |
| #define | initDFT dftInit |
| #define | emptyDFT dftEmpty |
| #define | printDFT dftPrint |
| #define | setmemDFT dftSetmem |
| #define | addmemDFT dftAddmem |
| #define | addDFT dftAdd |
| #define | selectDFT dftSelect |
| #define | min2secDFT dftMin2sec |
| #define | sec2minDFT dftSec2min |
| #define | frametimesDFT dftFrametimes |
| #define | overflowDFT dftOverflow |
| #define | copyvoiDFT dftCopyvoi |
| #define | copymainhdrDFT dftCopymainhdr |
| #define | copyvoihdrDFT dftCopyvoihdr |
| #define | addnullframeDFT dftAddnullframe |
| #define | sortDFT dftSort |
| #define | na_fillDFT dftNAfill |
| #define | kBqMinDFT dft_kBqMin |
| #define | kBqMaxDFT dft_kBqMax |
Functions | |
| int | dftRead (char *filename, DFT *data) |
| int | dftWrite (DFT *data, char *filename) |
| void | dftInit (DFT *data) |
| void | dftEmpty (DFT *data) |
| void | dftPrint (DFT *data) |
| int | dftType (FILE *fp) |
| int | dftSetmem (DFT *data, int frameNr, int voiNr) |
| int | dftAddmem (DFT *data, int voiNr) |
| int | dftAdd (DFT *data1, DFT *data2, int voi) |
| int | dftSelect (DFT *data, char *name) |
| int | dftSelectRegions (DFT *dft, char *region_name, int reset) |
| void | dftMin2sec (DFT *data) |
| void | dftSec2min (DFT *data) |
| void | dftFrametimes (DFT *data) |
| int | dftOverflow (DFT *data) |
| int | dftCopyvoi (DFT *data, int from, int to) |
| int | dftMovevoi (DFT *dft, int from, int to) |
| int | dftDelete (DFT *dft, int voi) |
| int | dftCopymainhdr (DFT *dft1, DFT *dft2) |
| int | dftCopyvoihdr (DFT *dft1, int from, DFT *dft2, int to) |
| int | dftdup (DFT *dft1, DFT *dft2) |
| int | dftAddnullframe (DFT *data) |
| int | dftSort (DFT *data) |
| int | dftSortPlane (DFT *data) |
| int | dftNAfill (DFT *dft) |
| double | dft_kBqMin (DFT *data) |
| double | dft_kBqMax (DFT *data) |
| int | dftSortByFrame (DFT *dft) |
| int | dftWriteHTML (DFT *dft, char *fname, int orientation) |
Variables | |
| char | dfterrmsg [64] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns the highest activity value in DFT |
|
|
Returns the lowest activity value in DFT |
|
||||||||||||||||
|
Add the specified voi [0,voiNr-1] from data2 to data1. Allocates memory for additional data VOI, if necessary.
|
|
||||||||||||
|
Allocate memory for specified nr of additional data VOIs. Old data is left unchanged. |
|
|
Include a frame with time 0, unless one already exists. |
|
||||||||||||
|
Copy main header info from dft1 to dft2. |
|
||||||||||||||||
|
Copy VOI data inside DFT data structure from one place to another. |
|
||||||||||||||||||||
|
Copy voi header info from dft1.voi[from] to dft2.voi[to]. |
|
||||||||||||
|
Delete specified TAC (0..voiNr-1) from the DFT structure.
|
|
||||||||||||
|
Makes a duplicate of DFT structure pointed to by dft1 into dft2. Any existing content of dft2 will be deleted. Dft2 must be initiated.
|
|
|
Free memory allocated for DFT. All data is cleared. |
|
|
Calculate frame mid or start and end times. Timetype is not changed. |
|
|
Initiate DFT structure. This should be called once before use. |
|
|
Change time unit from min to sec, without checking original unit. |
|
||||||||||||||||
|
Move VOI in DFT structure from one position to another. |
|
|
Replace NA's in basic DFT data with interpolated values. If extrapolation is necessary, then the values (0,0) and (Infinity,last measured) are assumed.
|
|
|
Check for overflows in data structure. Returns 0, if ok. |
|
|
Prints to stdout the contents of DFT data structure. Mainly for testing purposes. |
|
||||||||||||
|
Read DFT file contents into specified data structure, emptying its old contents.
|
|
|
Change time unit from sec to min, without checking original unit. |
|
||||||||||||
|
Select VOIs (sets sw=1), whose names are matching specified string. If no string is specified, then all VOIs are selected.
|
|
||||||||||||||||
|
Select the VOIs that have matching region name or number. Sets sw=1 or sw=0. This will replace dftSelect().
|
|
||||||||||||||||
|
Allocate memory for DFT data and sets data pointers. Old data is destroyed. |
|
|
Sort DFT regions in alphabetical order by their name. |
|
|
Sorts TAC frames by increasing sample time.
|
|
|
Sort DFT regions in alphabetical order by their plane. |
|
|
Determine the type of DFT file.
|
|
||||||||||||
|
Write DFT data into specied file. If file exists, a backup file () is written also. The file format specified in data is applied. |
|
||||||||||||||||
|
Write DFT contents in HTML table format If file exists, a backup file () is written also. If "stdout" is given as filename, output is directed to stdout In case of an error, description is written in dfterrmsg.
|
|
|
|
1.4.1