Commit 8543aab9 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added interface function taxisWithBounds().

parent 07d24d53
......@@ -2,6 +2,10 @@
* Version 1.9.1 released
2017-09-13 Uwe Schulzweida
* Added interface function taxisWithBounds()
2017-09-07 Uwe Schulzweida
* Read NC_FORMAT_CDF5 data as CDF2 (preliminary fix)
......
......@@ -1148,6 +1148,7 @@ int taxisInqFdate(int taxisID);
int taxisInqFtime(int taxisID);
int taxisHasBounds(int taxisID);
void taxisWithBounds(int taxisID);
void taxisDeleteBounds(int taxisID);
......
......@@ -74,11 +74,11 @@ void cdfDefTimeValue(stream_t *streamptr, int tsID)
if ( taxis->has_bounds )
{
size_t start[2], count[2];
ncvarid = streamptr->basetime.ncvarboundsid;
assert(ncvarid != CDI_UNDEFID);
timevalue = cdiEncodeTimeval(taxis->vdate_lb, taxis->vtime_lb, &streamptr->tsteps[0].taxis);
size_t start[2], count[2];
start[0] = (size_t)tsID; count[0] = 1; start[1] = 0; count[1] = 1;
cdf_put_vara_double(fileID, ncvarid, start, count, &timevalue);
......
......@@ -567,6 +567,18 @@ int taxisHasBounds(int taxisID)
}
void taxisWithBounds(int taxisID)
{
taxis_t *taxisptr = (taxis_t *)reshGetVal(taxisID, &taxisOps);
if ( taxisptr->has_bounds == false )
{
taxisptr->has_bounds = true;
reshSetStatus(taxisID, &taxisOps, RESH_DESYNC_IN_USE);
}
}
void taxisDeleteBounds(int taxisID)
{
taxis_t *taxisptr = ( taxis_t * ) reshGetVal ( taxisID, &taxisOps );
......
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