The header file of the project.
More...
#include <algorithm>
#include <cerrno>
#include <cmath>
#include <cstdbool>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fcntl.h>
#include <iostream>
#include <libgen.h>
#include <linux/limits.h>
#include <netcdf.h>
#include <stdexcept>
#include <unistd.h>
#include <variant>
#include <vector>
#include <wait.h>
Go to the source code of this file.
|
#define | RED "\033[0;31m" |
|
#define | YELLOW "\033[0;33m" |
|
#define | BOLD "\033[1m" |
|
#define | UNDERLINE "\033[4m" |
|
#define | RESET "\033[0m" |
|
#define | DEBUG |
|
#define | ERROR(ec) check_error(ec, __FILE__, __LINE__, __PRETTY_FUNCTION__) |
|
|
using | var_type = std::variant<signed char, char, short, int, float, double, unsigned char, unsigned short, unsigned int, long long, unsigned long long, char *> |
|
typedef struct dimension_information_s | dimension_information_t |
|
typedef struct variable_information_s | variable_information_t |
|
typedef struct file_information_s | file_information_t |
|
The header file of the project.
- Author
- Nicolas TORO
◆ check_error()
void check_error |
( |
int | in_i_error, |
|
|
const char * | in_ac_file, |
|
|
const int | in_i_line, |
|
|
const char * | in_ac_func ) |
Check if there is an error.
- Parameters
-
in_i_error | The error code |
in_ac_file | The file name |
in_i_line | The line number |
in_ac_func | The function name |
- Returns
- void
◆ close_file()
Close a NetCDF file.
- Parameters
-
in_s_file_info | The file information |
- Returns
- void
◆ create_file()
Create a NetCDF file.
- Parameters
-
in_s_file_info | The file information |
in_i_mode | The mode to open the file |
- Returns
- void
◆ get_dimension_size()
Get the dimension size.
- Parameters
-
in_s_file_info | The file information |
in_i_dim_id | The dimension id |
- Returns
- size_t The dimension size
◆ get_info()
Get the file information.
- Parameters
-
in_s_file_info | The file information |
- Returns
- void
◆ open_file()
Open a NetCDF or a GRIB file.
- Parameters
-
in_s_file_info | The file information |
in_i_mode | The mode to open the file |
- Returns
- void