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

Implementation of option --reduce_dim for time axis.

parent 2ff1c945
2017-07-27 Uwe Schulzweida
2017-09-27 Uwe Schulzweida
* Using CDI library version 1.9.1
* Version 1.9.1 release
2017-08-31 Uwe Schulzweida
* Implementation of option --reduce_dim for time axis
2017-08-30 Uwe Schulzweida
* tee: added docu
......
......@@ -448,7 +448,7 @@ void *Select(void *argument)
}
ntsteps2 = (operatorID == SELECT && SELLIST_NVAL(timestep) == 1) ? 1 : ntsteps;
if ( ntsteps2 == 0 && nfiles > 1 )
{
lconstvars = false;
......
......@@ -189,10 +189,6 @@ void *Timstat(void *argument)
int nvars = vlistNvars(vlistID1);
if ( cmplen == 0 && CDO_Reduce_Dim )
for ( varID = 0; varID < nvars; ++varID )
vlistDefVarTsteptype(vlistID2, varID, TSTEP_CONSTANT);
const char *freq = NULL;
if ( comparelen == DAY_LEN ) freq = "day";
else if ( comparelen == MON_LEN ) freq = "mon";
......
......@@ -238,10 +238,6 @@ void *XTimstat(void *argument)
int nvars = vlistNvars(vlistID1);
if ( cmplen == 0 && CDO_Reduce_Dim )
for ( varID = 0; varID < nvars; ++varID )
vlistDefVarTsteptype(vlistID2, varID, TSTEP_CONSTANT);
const char *freq = NULL;
if ( comparelen == DAY_LEN ) freq = "day";
else if ( comparelen == MON_LEN ) freq = "mon";
......
......@@ -1045,6 +1045,7 @@ void cdo_set_options(void)
}
if ( CDO_CMOR_Mode ) cdiDefGlobal("CMOR_MODE", CDO_CMOR_Mode);
if ( CDO_Reduce_Dim ) cdiDefGlobal("REDUCE_DIM", CDO_Reduce_Dim);
if ( CDO_netcdf_hdr_pad > 0 ) cdiDefGlobal("NETCDF_HDR_PAD", CDO_netcdf_hdr_pad);
}
......
Markdown is supported
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