forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Support several types of derived datasets, all declared in one p…
…lace
- Loading branch information
1 parent
f264169
commit ec88c34
Showing
3 changed files
with
63 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef DERIVEDLIST_H_INCLUDEd | ||
#define DERIVEDLIST_H_INCLUDEd | ||
|
||
typedef struct | ||
{ | ||
const char * pszDatasetName; | ||
const char * pszDatasetDescritpion; | ||
const char * pszPixelFunction; | ||
} DerivedDatasetDescription; | ||
|
||
static const DerivedDatasetDescription asDDSDesc [] = | ||
{ | ||
{ "AMPLITUDE", "Amplitude of input bands", "mod"}, | ||
{ "PHASE", "Phase of input bands", "phase"}, | ||
{ "REAL", "Real part of input bands", "real"}, | ||
{ "IMAG", "Imaginary part of input bands", "imag"}, | ||
{ "CONJ", "Conjugate of input bands", "conj"}, | ||
{ "INTENSITY", "Intensity (squared amplitude) of input bands", "intensity"}, | ||
{ "LOGAMPLITUDE", "log10 of amplitude of input bands", "log10"} | ||
}; | ||
|
||
#define NB_DERIVED_DATASETS (sizeof(asDDSDesc)/sizeof(asDDSDesc[0])) | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters