Commit e1b3ea5e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cmorlite: skipped empty key values.

parent 18ceef00
2017-05-26 Uwe Schulzweida
* Using CDI library version 1.8.2
* Version 1.8.2 release
2017-04-21 Uwe Schulzweida
* cmorlite: skipped empty key values
2017-04-14 Uwe Schulzweida
* removed fpe handling (speedup of 50% for ensmean ...)
......
......@@ -232,7 +232,7 @@ void apply_cmorlist(list_t *pmlist, int nvars, int vlistID2, var_t *vars)
keyValues_t *kv = *(keyValues_t **)kvnode->data;
const char *key = kv->key;
const char *value = (kv->nvalues == 1) ? kv->values[0] : NULL;
if ( !value ) continue;
if ( !value || (value && !*value) ) continue;
if ( STR_IS_EQ(key, "missing_value") )
{
......@@ -277,9 +277,9 @@ void apply_cmorlist(list_t *pmlist, int nvars, int vlistID2, var_t *vars)
keyValues_t *kv = *(keyValues_t **)kvnode->data;
const char *key = kv->key;
const char *value = (kv->nvalues == 1) ? kv->values[0] : NULL;
if ( !value ) continue;
if ( !value || (value && !*value) ) continue;
//printf("key=%s value=%s\n", key, value);
// printf("key=%s value=>%s<\n", key, value);
if ( STR_IS_EQ(key, "standard_name") ) vlistDefVarStdname(vlistID2, varID, value);
else if ( STR_IS_EQ(key, "long_name") ) vlistDefVarLongname(vlistID2, varID, value);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment