-
Notifications
You must be signed in to change notification settings - Fork 48
/
mdal_gdal_grib.hpp
38 lines (32 loc) · 957 Bytes
/
mdal_gdal_grib.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
MDAL - Mesh Data Abstraction Library (MIT License)
Copyright (C) 2018 Peter Petrik (zilolv at gmail dot com)
*/
#ifndef MDAL_GDAL_GRIB_HPP
#define MDAL_GDAL_GRIB_HPP
#include "mdal_gdal.hpp"
#include "mdal_data_model.hpp"
#include "mdal.h"
#include <string>
namespace MDAL
{
class LoaderGdalGrib: public LoaderGdal
{
public:
LoaderGdalGrib( const std::string &gribFile );
private:
bool parseBandInfo( const MDAL::GdalDataset *cfGDALDataset,
const metadata_hash &metadata, std::string &band_name,
double *time, bool *is_vector, bool *is_x
) override;
/**
* ref time (UTC sec)
*
* parsed only once, because
* some GRIB files do not use FORECAST_SEC, but VALID_TIME
* metadata, so ref time varies with dataset-to-dataset
*/
double mRefTime;
};
} // namespace MDAL
#endif // MDAL_GDAL_GRIB_HPP