LCOV - code coverage report
Current view: top level - frmts/derived - derivedlist.c (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 3 3 100.0 %
Date: 2024-11-21 22:18:42 Functions: 1 1 100.0 %

          Line data    Source code
       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             : #define NB_DERIVED_DATASETS (sizeof(asDDSDesc) / sizeof(asDDSDesc[0]))
      29             : 
      30             : const DerivedDatasetDescription *CPL_STDCALL
      31          28 : GDALGetDerivedDatasetDescriptions(unsigned int *pnDescriptionCount)
      32             : {
      33          28 :     *pnDescriptionCount = (unsigned int)NB_DERIVED_DATASETS;
      34          28 :     return asDDSDesc;
      35             : }
      36             : 
      37             : CPL_C_END

Generated by: LCOV version 1.14