Skip to content
Snippets Groups Projects
Commit 163031ec authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Ymonstat: sorts output by month of year

parent cc26aa2e
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,10 @@
* using CDI library version 1.6.4
* Version 1.6.4 released
2014-06-11 Uwe Schulzweida
* Ymonstat: sorts output by month of year
2014-06-10 Uwe Schulzweida
* eof3d: set sum weights to 1 (bug fix)
......
......@@ -9,6 +9,7 @@ Version 1.6.4 (26 June 2014):
* sealevelpressure: sea level pressure
Changed operators:
* diff: print number of different values
* Ymonstat: sorts output by month of year
Fixed bugs:
* filter:
* eof3d: set sum of weights to 1
......
......@@ -235,6 +235,13 @@ void *Ymonstat(void *argument)
tsID++;
}
if ( nmon == 12 )
{
int smon = 0;
for ( month = 1; month <= 12; month++ ) if ( nsets[month] ) smon++;
if ( smon == 12 ) for ( month = 1; month <= 12; month++ ) mon[month-1] = month;
}
/* sort output time steps */
/*
nmon = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment