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

Seasstat: warning message for seasons with less than 3 input time steps

parent 7e92049d
......@@ -11,6 +11,7 @@
* sellonlatbox: bug fix for curvilinear grids
* setzaxis: change float to double (bug fix) [report: Pier Giuseppe Fogli]
* Arith: add filltype FILL_RECTS [request: Wolfgang Mueller]
* Seasstat: warning message for seasons with less than 3 input time steps
* remapcon: change max_subseg from 100000 to 1000
* remapbil: 2. bug fix for cross_product eq zero
* gridWeights: bug fix for areas greater than hemisphere [report: Malte Heinemann]
......
......@@ -289,10 +289,21 @@ void *Seasstat(void *argument)
}
}
if ( cdoVerbose )
cdoPrint("%d %d nsets %d", vdate0, vtime0, nsets);
taxisDefVdate(taxisID2, vdate0);
taxisDefVtime(taxisID2, vtime0);
streamDefTimestep(streamID2, otsID++);
if ( nsets < 3 )
{
int year, month, day;
decode_date(vdate0, &year, &month, &day);
cdoWarning("Season %3d (%4.4d-%2.2d-%2.2d) has only %d input time step%s!",
otsID, year, month, day, nsets, nsets == 1 ? "" : "s");
}
for ( recID = 0; recID < nrecords; recID++ )
{
varID = recVarID[recID];
......
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