src/NW_Error.h
The one missing-value sentinel every NW library writes to file.
Functions
| Name | |
|---|---|
| float | nwScaled(float v, float divisor) Scale a statistic from register units to physical units, passing NW_ERROR through untouched. |
Defines
| Name | |
|---|---|
| NW_ERROR Missing or failed value on file, for every NW library (NOAA and earth-science convention). |
Functions Documentation
function nwScaled
inline float nwScaled(
float v,
float divisor
)
Scale a statistic from register units to physical units, passing NW_ERROR through untouched.
Macros Documentation
define NW_ERROR
#define NW_ERROR -9999
Missing or failed value on file, for every NW library (NOAA and earth-science convention).
Source code
#ifndef NW_Error_h
#define NW_Error_h
#ifndef NW_ERROR
#define NW_ERROR -9999
#endif
inline float nwScaled(float v, float divisor) { return (v == NW_ERROR) ? NW_ERROR : v / divisor; }
#endif
Updated on 2026-09-29 at 05:58:59 +0000