Commit 1ffd2af3 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Timstat: added call to taxisWithBounds().

parent edabe2a7
......@@ -52,6 +52,7 @@ void *Runpctl(void *argument)
int taxisID1 = vlistInqTaxis(vlistID1);
int taxisID2 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID2);
vlistDefTaxis(vlistID2, taxisID2);
int streamID2 = pstreamOpenWrite(cdoStreamName(1), cdoFiletype());
......
......@@ -85,6 +85,7 @@ void *Runstat(void *argument)
int taxisID1 = vlistInqTaxis(vlistID1);
int taxisID2 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID2);
vlistDefTaxis(vlistID2, taxisID2);
/* Number of timestep will be reduced compared to the input
* error handling in case of not enough timesteps is done per record */
......
......@@ -70,6 +70,7 @@ void *Seaspctl(void *argument)
/* TODO - check that time axes 2 and 3 are equal */
int taxisID4 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID4);
vlistDefTaxis(vlistID4, taxisID4);
int streamID4 = pstreamOpenWrite(cdoStreamName(3), cdoFiletype());
......
......@@ -84,6 +84,7 @@ void *Seasstat(void *argument)
int taxisID1 = vlistInqTaxis(vlistID1);
int taxisID2 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID2);
if ( taxisInqType(taxisID2) == TAXIS_FORECAST ) taxisDefType(taxisID2, TAXIS_RELATIVE);
vlistDefTaxis(vlistID2, taxisID2);
......
......@@ -69,6 +69,7 @@ void timpctl(int operatorID)
/* TODO - check that time axes 2 and 3 are equal */
int taxisID4 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID4);
vlistDefTaxis(vlistID4, taxisID4);
int streamID4 = pstreamOpenWrite(cdoStreamName(3), cdoFiletype());
......
......@@ -74,6 +74,7 @@ void *Timselpctl(void *argument)
/* TODO - check that time axes 2 and 3 are equal */
int taxisID4 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID4);
vlistDefTaxis(vlistID4, taxisID4);
int streamID4 = pstreamOpenWrite(cdoStreamName(3), cdoFiletype());
......
......@@ -86,6 +86,7 @@ void *Timselstat(void *argument)
int taxisID1 = vlistInqTaxis(vlistID1);
int taxisID2 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID2);
vlistDefTaxis(vlistID2, taxisID2);
int streamID2 = pstreamOpenWrite(cdoStreamName(1), cdoFiletype());
......
......@@ -184,8 +184,7 @@ void *Timstat(void *argument)
int taxisID1 = vlistInqTaxis(vlistID1);
int taxisID2 = taxisDuplicate(taxisID1);
bool time_with_bounds = true;
if ( time_with_bounds ) taxisWithBounds(taxisID2);
taxisWithBounds(taxisID2);
if ( taxisInqType(taxisID2) == TAXIS_FORECAST ) taxisDefType(taxisID2, TAXIS_RELATIVE);
vlistDefTaxis(vlistID2, taxisID2);
......@@ -223,6 +222,7 @@ void *Timstat(void *argument)
}
taxisID3 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID3);
vlistDefTaxis(vlistID3, taxisID3);
pstreamDefVlist(streamID3, vlistID3);
......
......@@ -233,6 +233,7 @@ void *XTimstat(void *argument)
int taxisID1 = vlistInqTaxis(vlistID1);
int taxisID2 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID2);
if ( taxisInqType(taxisID2) == TAXIS_FORECAST ) taxisDefType(taxisID2, TAXIS_RELATIVE);
vlistDefTaxis(vlistID2, taxisID2);
......@@ -269,6 +270,7 @@ void *XTimstat(void *argument)
}
taxisID3 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID3);
vlistDefTaxis(vlistID3, taxisID3);
pstreamDefVlist(streamID3, vlistID3);
......
......@@ -64,6 +64,7 @@ void *Yearmonstat(void *argument)
int taxisID1 = vlistInqTaxis(vlistID1);
int taxisID2 = taxisDuplicate(taxisID1);
taxisWithBounds(taxisID2);
vlistDefTaxis(vlistID2, taxisID2);
int streamID2 = pstreamOpenWrite(cdoStreamName(1), cdoFiletype());
......
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