24 #ifndef RADOLAN_UTILS_H 25 #define RADOLAN_UTILS_H 27 #include <radolan/types.h> 50 void RDPrintPolarStereographic(RDScan *,
int,
int);
53 void RDPrintHeaderInformation(RDScan *scan);
58 void RDPrintScan(RDScan *scan,
int latCount,
int lonCount);
61 const char *RDScanTypeToString(RDScanType type);
66 RDScanType RDScanTypeFromString(
const char *str);
69 RDDataType RDMinValue(RDScanType t);
72 RDDataType RDMaxValue(RDScanType t);
75 RDDataType RDMissingValue(RDScanType t);
78 RDDataType RDClutterValue(RDScanType t);
84 const char *RDUnits(RDScanType type);
87 RDByteType RDRVP6ToByteValue(
float rvp6);
90 float RDByteToRVP6Value(
const RDByteType byte_value);
93 int RDIsCleanMeasurement(RDScanType t, RDDataType value);
96 int RDIsCleanMeasurementAndNotMin(RDScanType t, RDDataType value);
99 size_t RDBytesPerPixel(RDScanType type);
102 float RDRainrateFromDezibels(RDDataType dezibels);
109 void RDGridSize(RDScanType t,
size_t *width,
size_t *height);
116 void RDScanTime(RDScan *scan,
struct tm *);
123 time_t RDScanTimeInSecondsSinceEpoch(RDScan *scan);
136 float RDMMPerHour(RDScanType t, RDDataType value);
145 char *RDGuessFilename(RDScanType type, time_t timestamp);