Coverage Report

Created: 2026-03-30 09:00

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/gdal/frmts/derived/derivedlist.c
Line
Count
Source
1
/******************************************************************************
2
 *
3
 * Project:  GDAL
4
 * Purpose:  Implementation of derived subdatasets
5
 * Author:   Julien Michel <julien dot michel at cnes dot fr>
6
 *
7
 ******************************************************************************
8
 * Copyright (c) 2016 Julien Michel <julien dot michel at cnes dot fr>
9
 *
10
 * SPDX-License-Identifier: MIT
11
 *****************************************************************************/
12
#include "derivedlist.h"
13
#include "gdal.h"
14
15
CPL_C_START
16
17
static const DerivedDatasetDescription asDDSDesc[] = {
18
    {"AMPLITUDE", "Amplitude of input bands", "mod", "complex", "Float64"},
19
    {"PHASE", "Phase of input bands", "phase", "complex", "Float64"},
20
    {"REAL", "Real part of input bands", "real", "complex", "Float64"},
21
    {"IMAG", "Imaginary part of input bands", "imag", "complex", "Float64"},
22
    {"CONJ", "Conjugate of input bands", "conj", "complex", "CFloat64"},
23
    {"INTENSITY", "Intensity (squared amplitude) of input bands", "intensity",
24
     "complex", "Float64"},
25
    {"LOGAMPLITUDE", "log10 of amplitude of input bands", "log10", "all",
26
     "Float64"}};
27
28
0
#define NB_DERIVED_DATASETS (sizeof(asDDSDesc) / sizeof(asDDSDesc[0]))
29
30
const DerivedDatasetDescription *CPL_STDCALL
31
GDALGetDerivedDatasetDescriptions(unsigned int *pnDescriptionCount)
32
0
{
33
0
    *pnDescriptionCount = (unsigned int)NB_DERIVED_DATASETS;
34
0
    return asDDSDesc;
35
0
}
36
37
CPL_C_END