NASA Logo
Ocean Color Science Software

ocssw V2022
scaledNcVar.hpp File Reference
#include <netcdf>
#include <productInfo.h>
#include <genutils.h>
Include dependency graph for scaledNcVar.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ScaledNcVar
 

Macros

#define DEFAULT_SENSOR   30
 

Functions

ScaledNcVar newScaledNcVar (const netCDF::NcGroup &group, const std::string &name, const std::vector< netCDF::NcDim > &dims, int sensorID=DEFAULT_SENSOR)
 

Macro Definition Documentation

◆ DEFAULT_SENSOR

#define DEFAULT_SENSOR   30

An extension of NetCDF::NcVar to perform scale and offset when getting a variable.

Author
Jakob C. Lindo (SSAI)
Date
March 2024

Definition at line 12 of file scaledNcVar.hpp.

Function Documentation

◆ newScaledNcVar()

ScaledNcVar newScaledNcVar ( const netCDF::NcGroup &  group,
const std::string name,
const std::vector< netCDF::NcDim > &  dims,
int  sensorID = DEFAULT_SENSOR 
)

Create a ScaledNcVar using the product.xml for definition.

Parameters
groupncGroup to put the variable in
namethe name of the variable
dimsdimentions of the varaible
sensorIDoptional sensor ID
Returns
a newly created ScaledNcVar class

Definition at line 504 of file scaledNcVar.cpp.