das2C
das core C utilities (v3)
Data Structures | Macros | Functions
variable.h File Reference

correlated data and coordinate variables More...

#include <das2/array.h>
#include <das2/datum.h>
#include "units.h"
Include dependency graph for variable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DasVar
 Das2 fexible variables. More...
 

Macros

#define SCALAR_0   0, (NULL), 0
 Dataset index to array index mapping macros. More...
 

Functions

DAS_API void das_varindex_prndir (bool bFastLast)
 Set index printing direction. More...
 
DAS_API bool DasVar_degenerate (const DasVar *pThis, int iIndex)
 Does a given extern index even matter the this variable? More...
 

Detailed Description

correlated data and coordinate variables

Macro Definition Documentation

◆ SCALAR_0

#define SCALAR_0   0, (NULL), 0

Dataset index to array index mapping macros.

The scalar macros map the locations of atomic items to a an external index allowing some indexes to be degenerate.

The vector macros do the same but they also assume check the array to make sure that there is one extra index right after all the ones that are mentioned.

Function Documentation

◆ das_varindex_prndir()

DAS_API void das_varindex_prndir ( bool  bFastLast)

Set index printing direction.

Switch printing of variable index order in _toStr() calls. Does not affect the internal layout of the data. The default print order is "Fastest index last."

WARNING: This function is NOT thread safe.

◆ DasVar_degenerate()

DAS_API bool DasVar_degenerate ( const DasVar pThis,
int  iIndex 
)

Does a given extern index even matter the this variable?

Parameters
pThisA pointer to a variable
intnIdx - The index in question, form 0 to DASIDX_MAX - 1
Returns
true if varying this index could cause the variable's output to change, false if it would have no effect.

@membefof DasVar