Skip to content
Snippets Groups Projects
Commit 031cc643 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added cdo_cmor.h.

parent f86c85f8
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ libcdo_la_SOURCES = \
array.h \
array.cc \
cdo_int.h \
cdo_cmor.h \
cdo_wtime.h \
compare.h \
cfortran.h \
......
/*
This file is part of CDO. CDO is a collection of Operators to
manipulate and analyse Climate model Data.
Copyright (C) 2003-2018 Uwe Schulzweida, <uwe.schulzweida AT mpimet.mpg.de>
See COPYING file for copying and redistribution conditions.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifndef CDO_CMOR_H
#define CDO_CMOR_H
struct var_t
{
bool convert;
bool remove;
// missing value
bool changemissval;
double missval_old;
//
bool lfactor;
double factor;
//
bool checkvalid;
double valid_min;
double valid_max;
//
bool check_min_mean_abs;
double ok_min_mean_abs;
//
bool check_max_mean_abs;
double ok_max_mean_abs;
// units
bool changeunits;
char units_old[CDI_MAX_NAME];
char units[CDI_MAX_NAME];
// varname
char name[CDI_MAX_NAME];
// converter
void *ut_converter;
double amean;
long nvals, n_lower_min, n_greater_max;
};
void cmor_check_init(int nvars, std::vector<var_t> &vars);
void cmor_check_eval(int vlistID, int nvars, std::vector<var_t> &vars);
void cmor_check_prep(var_t *var, long gridsize, double missval, double *array);
void cdo_define_var_units(var_t *var, int vlistID2, int varID, const char *units);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment