32#ifndef RACK_FILE_IO_READ
33#define RACK_FILE_IO_READ
36#include <drain/prog/CommandInstaller.h>
37#include <hi5/Hi5Read.h>
65 bool check(
const std::string & prefix){
68 if (check.str() != prefix){
70 mout.advice(
"initial file paths starting with '/' are handled absolute, not prefixed");
71 mout.warn(
"consider adjusting path ", prefix,
" -> ", check.str());
118 "filename",
"",
"<filename>.[h5|hdf5|png|pgm|ppm|txt]"){
130 void readFile(
const std::string &
fileName)
const;
144 void readTextFile(
const std::string &
fullFilename)
const;
149 void appendCartesianH5(Hi5Tree &
tmpSrc, Hi5Tree & dst)
const;
155 typedef std::map<std::string, ODIMPathElem> quantity_map;
169 odim.setGeometry(
g.getWidth(),
g.getHeight());
170 odim.type = drain::Type::getTypeChar(
srcImage.getType());
172 odim.updateFromMap(
srcImage.properties);
173 if (odim.scaling.scale == 0){
174 if (!odim.quantity.empty())
Extracts and stores directory path, base filename and extension.
Definition FilePath.h:54
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition Log.h:326
A single-parameter command.
Definition Command.h:487
Definition Geometry.h:143
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition Image.h:183
A map of radar data, indexed by quantity code (DBZH, VRAD, etc).
Definition Data.h:1293
A debugging facility. Obsolete?
Definition fileio-read.h:60
bool setQuantityDefaults(EncodingODIM &dst, const std::string &quantity, const std::string &values="") const
Sets default values of given quantity without assigning the quantity. Optionally overrides with user ...
Definition QuantityMap.cpp:210
Definition AltitudeOp.cpp:42
QuantityMap & getQuantityMap()
Definition QuantityMap.cpp:282