Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
031cc643
Commit
031cc643
authored
6 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Added cdo_cmor.h.
parent
f86c85f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Makefile.am
+1
-0
1 addition, 0 deletions
src/Makefile.am
src/cdo_cmor.h
+61
-0
61 additions, 0 deletions
src/cdo_cmor.h
with
62 additions
and
0 deletions
src/Makefile.am
+
1
−
0
View file @
031cc643
...
...
@@ -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 diff is collapsed.
Click to expand it.
src/cdo_cmor.h
0 → 100644
+
61
−
0
View file @
031cc643
/*
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment