ocssw
V2022
|
#include "nccmp.hpp"
#include "ncinfo.h"
#include "strlist.h"
#include <stdint.h>
#include <float.h>
#include "strlist.c"
#include "ncinfo.c"
#include "opt.c"
#include <cmath>
#include <string>
#include <vector>
#include <algorithm>
Include dependency graph for nccmp.cpp:
Go to the source code of this file.
Macros | |
#define | NC_MAX_TYPES 64 |
#define | NCFORMATSTR(f) |
#define | BROADCAST_MISSING(T) |
Functions | |
const char * | getGroupPath () |
template<typename T > | |
int | cmp_ (T *in1, T *in2) |
template<typename T > | |
int | cmp_missing (T *in1, T *in2, T m1, T m2) |
template<typename T > | |
int | cmp_nanequal (T *in1, T *in2) |
template<typename T > | |
int | cmp_missing_nanequal (T *in1, T *in2, T m1, T m2) |
template<typename T > | |
void | ToHex (T v, char *out) |
template<typename T > | |
void | ToString (T v, char *out, char *formatprec) |
template<typename T > | |
int | cmp_var (int ncid1, int ncid2, nccmpopts *opts, int rec, size_t *odomax, off_t nitems, size_t *count, size_t *start, varstruct *v1, varstruct *v2, T M1, T M2) |
template<typename T > | |
int | cmp_vartol (int ncid1, int ncid2, nccmpopts *opts, int rec, size_t *odomax, off_t nitems, size_t *count, size_t *start, varstruct *v1, varstruct *v2, T M1, T M2) |
template<typename T > | |
int | cmp_var_ut (int ncid1, int ncid2, nccmpopts *opts, int rec, size_t *odomax, off_t nitems, size_t *count, size_t *start, varstruct *v1, varstruct *v2, T M1, T M2) |
template<typename T > | |
int | cmp_vartol_ut (void *P1, void *P2, int offset1, int offset2, int size1, int size2, char *name, nccmpopts *opts, int rec, size_t *odomax, off_t nitems, size_t *count, size_t *start, varstruct *v1, varstruct *v2, T M1, T M2) |
void | getidxstr (varstruct *var, size_t *start, int curidx, char *out) |
void | getidxstr_fortran (varstruct *var, size_t *start, int curidx, char *out) |
int | excludevars (int ncid1, int ncid2, char **finallist, int nfinal, char **excludelist, int nexclude) |
void | handle_error (int status) |
int | odometer (size_t *odo, size_t *limits, int first, int last) |
void | prettyprintatt (int ncid, char *varname, int varid, char *name, char *str) |
int | cmpatt (int ncid1, int ncid2, int varid1, int varid2, char *name, char *varname, nccmpopts *opts) |
int | cmpattval (int nc1, int nc2, int varid1, int varid2, char *name, int len, nc_type type) |
void | type2string (nc_type type, char *str) |
int | openfiles (nccmpopts *opts, int *ncid1, int *ncid2) |
int | nccmprecinfo (nccmpopts *opts, int ncid1, int ncid2) |
void | getgroupinfo (int ncid, vector< string > names, GROUP_NODE *groups) |
void | getdiminfo (int ncid, dimstruct *dims, int *ndims) |
void | broadcast_missing (nc_type var_type, nc_type att_type, missing_struct *values) |
char | get_missing (int ncid, varstruct *var, const char *attname) |
nccmp_user_type_t * | getvarinfo (int ncid, varstruct *vars, int *nvars, int verbose, int *nuser_types) |
void | freevarinfo (int nuser_types, nccmp_user_type_t *comp_types) |
int | isinvarstructlist (char *name, varstruct *vars, int nvars) |
int | makecmpvarlist (nccmpopts *opts, int ncid1, int ncid2) |
int | allvarnames (char **list, int nvars, int ncid1, int ncid2) |
int | nccmpformats (nccmpopts *opts, int ncid1, int ncid2) |
int | nccmpglobalatts (nccmpopts *opts, int ncid1, int ncid2) |
int | nccmpmetadata (nccmpopts *opts, int ncid1, int ncid2) |
int | findvar (char *name, varstruct *vars) |
int | cmpvar (char *name, int rec, nccmpopts *opts, int ncid1, int ncid2, nccmp_user_type_t *user_types1, nccmp_user_type_t *user_types2) |
int | cmpvartol (char *name, int rec, nccmpopts *opts, int ncid1, int ncid2, nccmp_user_type_t *user_types1, nccmp_user_type_t *user_types2) |
int | nccmpdatarecvartol (int ncid1, int ncid2, char *varname, nccmpopts *opts, size_t recstart, size_t recend, nccmp_user_type_t *user_types1, nccmp_user_type_t *user_types2) |
int | nccmpdatarecvar (int ncid1, int ncid2, char *varname, nccmpopts *opts, size_t recstart, size_t recend, nccmp_user_type_t *user_types1, nccmp_user_type_t *user_types2) |
int | nccmpdatatol (int ncid1, int ncid2, nccmpopts *opts, nccmp_user_type_t *user_types1, nccmp_user_type_t *user_types2) |
int | nccmpdata (nccmpopts *opts, int ncid1, int ncid2, nccmp_user_type_t *user_types1, nccmp_user_type_t *user_types2) |
int | nccmp (nccmpopts *opts) |
int | compareGroup (nccmpopts *opts, int ncid1, int ncid2) |
int | main (int argc, char **argv) |
Variables | |
varstruct | vars1 [(int) NC_MAX_VARS] |
varstruct | vars2 [(int) NC_MAX_VARS] |
dimstruct | dims1 [(int) NC_MAX_DIMS] |
dimstruct | dims2 [(int) NC_MAX_DIMS] |
size_t | nrec1 |
size_t | nrec2 |
int | nvars1 |
int | nvars2 |
int | ndims1 |
int | ndims2 |
int | recid1 |
int | recid2 |
vector< string > | groupPath |
Macro Definition Documentation
◆ BROADCAST_MISSING
#define BROADCAST_MISSING | ( | T | ) |
Value:
{ \
switch(att_type) { \
} \
}
◆ NC_MAX_TYPES
◆ NCFORMATSTR
#define NCFORMATSTR | ( | f | ) |
Function Documentation
◆ allvarnames()
int allvarnames | ( | char ** | list, |
int | nvars, | ||
int | ncid1, | ||
int | ncid2 | ||
) |
◆ broadcast_missing()
void broadcast_missing | ( | nc_type | var_type, |
nc_type | att_type, | ||
missing_struct * | values | ||
) |
◆ cmp_()
◆ cmp_missing()
◆ cmp_missing_nanequal()
◆ cmp_nanequal()
◆ cmp_var()
int cmp_var | ( | int | ncid1, |
int | ncid2, | ||
nccmpopts * | opts, | ||
int | rec, | ||
size_t * | odomax, | ||
off_t | nitems, | ||
size_t * | count, | ||
size_t * | start, | ||
varstruct * | v1, | ||
varstruct * | v2, | ||
T | M1, | ||
T | M2 | ||
) |
◆ cmp_var_ut()
int cmp_var_ut | ( | int | ncid1, |
int | ncid2, | ||
nccmpopts * | opts, | ||
int | rec, | ||
size_t * | odomax, | ||
off_t | nitems, | ||
size_t * | count, | ||
size_t * | start, | ||
varstruct * | v1, | ||
varstruct * | v2, | ||
T | M1, | ||
T | M2 | ||
) |
◆ cmp_vartol()
int cmp_vartol | ( | int | ncid1, |
int | ncid2, | ||
nccmpopts * | opts, | ||
int | rec, | ||
size_t * | odomax, | ||
off_t | nitems, | ||
size_t * | count, | ||
size_t * | start, | ||
varstruct * | v1, | ||
varstruct * | v2, | ||
T | M1, | ||
T | M2 | ||
) |
◆ cmp_vartol_ut()
int cmp_vartol_ut | ( | void * | P1, |
void * | P2, | ||
int | offset1, | ||
int | offset2, | ||
int | size1, | ||
int | size2, | ||
char * | name, | ||
nccmpopts * | opts, | ||
int | rec, | ||
size_t * | odomax, | ||
off_t | nitems, | ||
size_t * | count, | ||
size_t * | start, | ||
varstruct * | v1, | ||
varstruct * | v2, | ||
T | M1, | ||
T | M2 | ||
) |
◆ cmpatt()
int cmpatt | ( | int | ncid1, |
int | ncid2, | ||
int | varid1, | ||
int | varid2, | ||
char * | name, | ||
char * | varname, | ||
nccmpopts * | opts | ||
) |
◆ cmpattval()
int cmpattval | ( | int | nc1, |
int | nc2, | ||
int | varid1, | ||
int | varid2, | ||
char * | name, | ||
int | len, | ||
nc_type | type | ||
) |
◆ cmpvar()
int cmpvar | ( | char * | name, |
int | rec, | ||
nccmpopts * | opts, | ||
int | ncid1, | ||
int | ncid2, | ||
nccmp_user_type_t * | user_types1, | ||
nccmp_user_type_t * | user_types2 | ||
) |
◆ cmpvartol()
int cmpvartol | ( | char * | name, |
int | rec, | ||
nccmpopts * | opts, | ||
int | ncid1, | ||
int | ncid2, | ||
nccmp_user_type_t * | user_types1, | ||
nccmp_user_type_t * | user_types2 | ||
) |
◆ compareGroup()
int compareGroup | ( | nccmpopts * | opts, |
int | ncid1, | ||
int | ncid2 | ||
) |
◆ excludevars()
int excludevars | ( | int | ncid1, |
int | ncid2, | ||
char ** | finallist, | ||
int | nfinal, | ||
char ** | excludelist, | ||
int | nexclude | ||
) |
◆ findvar()
◆ freevarinfo()
void freevarinfo | ( | int | nuser_types, |
nccmp_user_type_t * | comp_types | ||
) |
◆ get_missing()
char get_missing | ( | int | ncid, |
varstruct * | var, | ||
const char * | attname | ||
) |
◆ getdiminfo()
void getdiminfo | ( | int | ncid, |
dimstruct * | dims, | ||
int * | ndims | ||
) |
◆ getgroupinfo()
void getgroupinfo | ( | int | ncid, |
vector< string > | names, | ||
GROUP_NODE * | groups | ||
) |
◆ getGroupPath()
◆ getidxstr()
void getidxstr | ( | varstruct * | var, |
size_t * | start, | ||
int | curidx, | ||
char * | out | ||
) |
◆ getidxstr_fortran()
void getidxstr_fortran | ( | varstruct * | var, |
size_t * | start, | ||
int | curidx, | ||
char * | out | ||
) |
◆ getvarinfo()
nccmp_user_type_t* getvarinfo | ( | int | ncid, |
varstruct * | vars, | ||
int * | nvars, | ||
int | verbose, | ||
int * | nuser_types | ||
) |
◆ handle_error()
◆ isinvarstructlist()
int isinvarstructlist | ( | char * | name, |
varstruct * | vars, | ||
int | nvars | ||
) |
◆ main()
◆ makecmpvarlist()
int makecmpvarlist | ( | nccmpopts * | opts, |
int | ncid1, | ||
int | ncid2 | ||
) |
◆ nccmp()
◆ nccmpdata()
int nccmpdata | ( | nccmpopts * | opts, |
int | ncid1, | ||
int | ncid2, | ||
nccmp_user_type_t * | user_types1, | ||
nccmp_user_type_t * | user_types2 | ||
) |
◆ nccmpdatarecvar()
int nccmpdatarecvar | ( | int | ncid1, |
int | ncid2, | ||
char * | varname, | ||
nccmpopts * | opts, | ||
size_t | recstart, | ||
size_t | recend, | ||
nccmp_user_type_t * | user_types1, | ||
nccmp_user_type_t * | user_types2 | ||
) |
◆ nccmpdatarecvartol()
int nccmpdatarecvartol | ( | int | ncid1, |
int | ncid2, | ||
char * | varname, | ||
nccmpopts * | opts, | ||
size_t | recstart, | ||
size_t | recend, | ||
nccmp_user_type_t * | user_types1, | ||
nccmp_user_type_t * | user_types2 | ||
) |
◆ nccmpdatatol()
int nccmpdatatol | ( | int | ncid1, |
int | ncid2, | ||
nccmpopts * | opts, | ||
nccmp_user_type_t * | user_types1, | ||
nccmp_user_type_t * | user_types2 | ||
) |
◆ nccmpformats()
int nccmpformats | ( | nccmpopts * | opts, |
int | ncid1, | ||
int | ncid2 | ||
) |
◆ nccmpglobalatts()
int nccmpglobalatts | ( | nccmpopts * | opts, |
int | ncid1, | ||
int | ncid2 | ||
) |
◆ nccmpmetadata()
int nccmpmetadata | ( | nccmpopts * | opts, |
int | ncid1, | ||
int | ncid2 | ||
) |
◆ nccmprecinfo()
int nccmprecinfo | ( | nccmpopts * | opts, |
int | ncid1, | ||
int | ncid2 | ||
) |
◆ odometer()
int odometer | ( | size_t * | odo, |
size_t * | limits, | ||
int | first, | ||
int | last | ||
) |
◆ openfiles()
int openfiles | ( | nccmpopts * | opts, |
int * | ncid1, | ||
int * | ncid2 | ||
) |
◆ prettyprintatt()
void prettyprintatt | ( | int | ncid, |
char * | varname, | ||
int | varid, | ||
char * | name, | ||
char * | str | ||
) |
◆ ToHex()
◆ ToString()
◆ type2string()
Variable Documentation
◆ dims1
◆ dims2
◆ groupPath
◆ ndims1
◆ ndims2
◆ nrec1
◆ nrec2
◆ nvars1
◆ nvars2
◆ recid1
◆ recid2
◆ vars1
◆ vars2
HISTORY txt for MOD_PR01(step one of PGE01) History follows the following convention needed due to new Aqua ReprocessingActual and the expected LUT revision number from PCF Changed to use PGE version for ProductionHistory Added Archive including ProcessingEnvironment Corrected handling of bad to resovle GSFcd02514 Changed to check staged LUT revision number versus the expected LUT revision number from thereby resolving defect report MODxl02056 This change also avoids the memory access violation reported in MODur00039 Changed the way output arrays were initialized with fill values
Definition: HISTORY.txt:162