Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
163031ec
Commit
163031ec
authored
10 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Ymonstat: sorts output by month of year
parent
cc26aa2e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+4
-0
4 additions, 0 deletions
ChangeLog
NEWS
+1
-0
1 addition, 0 deletions
NEWS
src/Ymonstat.c
+7
-0
7 additions, 0 deletions
src/Ymonstat.c
with
12 additions
and
0 deletions
ChangeLog
+
4
−
0
View file @
163031ec
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
NEWS
+
1
−
0
View file @
163031ec
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/Ymonstat.c
+
7
−
0
View file @
163031ec
...
...
@@ -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;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment