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
ad432fe7
Commit
ad432fe7
authored
13 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Timstepstat: added support for time bounds
parent
c9eb47ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
src/Timselstat.c
+23
-1
23 additions, 1 deletion
src/Timselstat.c
src/Timstat.c
+1
-1
1 addition, 1 deletion
src/Timstat.c
with
28 additions
and
2 deletions
ChangeLog
+
4
−
0
View file @
ad432fe7
...
...
@@ -3,6 +3,10 @@
* using CDI library version 1.5.4
* Version 1.5.4 released
2012-01-23 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* Timstepstat: added support for time bounds
2012-01-16 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* remaplib: use grid2_bound_box only for conservativ remapping
...
...
This diff is collapsed.
Click to expand it.
src/Timselstat.c
+
23
−
1
View file @
ad432fe7
...
...
@@ -2,7 +2,7 @@
This file is part of CDO. CDO is a collection of Operators to
manipulate and analyse Climate model Data.
Copyright (C) 2003-201
1
Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
Copyright (C) 2003-201
2
Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
See COPYING file for copying and redistribution conditions.
This program is free software; you can redistribute it and/or modify
...
...
@@ -41,6 +41,8 @@ void *Timselstat(void *argument)
int
gridsize
;
int
vdate
=
0
,
vtime
=
0
;
int
vdate0
=
0
,
vtime0
=
0
;
int
vdate_lb
=
0
,
vdate_ub
=
0
,
date_lb
=
0
,
date_ub
=
0
;
int
vtime_lb
=
0
,
vtime_ub
=
0
,
time_lb
=
0
,
time_ub
=
0
;
int
nrecs
=
0
,
nrecords
;
int
gridID
,
varID
,
levelID
,
recID
;
int
tsID
;
...
...
@@ -49,6 +51,7 @@ void *Timselstat(void *argument)
int
i
;
int
streamID1
,
streamID2
;
int
vlistID1
,
vlistID2
,
taxisID1
,
taxisID2
;
int
taxis_has_bounds
=
FALSE
;
int
nmiss
;
int
nvars
,
nlevel
;
int
ndates
=
0
,
noffset
=
0
,
nskip
=
0
,
nargc
;
...
...
@@ -86,6 +89,7 @@ void *Timselstat(void *argument)
vlistID2
=
vlistDuplicate
(
vlistID1
);
taxisID1
=
vlistInqTaxis
(
vlistID1
);
taxis_has_bounds
=
taxisHasBounds
(
taxisID1
);
taxisID2
=
taxisDuplicate
(
taxisID1
);
vlistDefTaxis
(
vlistID2
,
taxisID2
);
...
...
@@ -174,6 +178,19 @@ void *Timselstat(void *argument)
vdate
=
taxisInqVdate
(
taxisID1
);
vtime
=
taxisInqVtime
(
taxisID1
);
if
(
taxis_has_bounds
)
{
taxisInqVdateBounds
(
taxisID1
,
&
date_lb
,
&
date_ub
);
taxisInqVtimeBounds
(
taxisID1
,
&
time_lb
,
&
time_ub
);
if
(
nsets
==
0
)
{
vdate_lb
=
date_lb
;
vtime_lb
=
time_lb
;
}
vdate_ub
=
date_ub
;
vtime_ub
=
time_ub
;
}
for
(
recID
=
0
;
recID
<
nrecs
;
recID
++
)
{
streamInqRecord
(
streamID1
,
&
varID
,
&
levelID
);
...
...
@@ -292,6 +309,11 @@ void *Timselstat(void *argument)
taxisDefVdate
(
taxisID2
,
vdate0
);
taxisDefVtime
(
taxisID2
,
vtime0
);
if
(
taxis_has_bounds
)
{
taxisDefVdateBounds
(
taxisID2
,
vdate_lb
,
vdate_ub
);
taxisDefVtimeBounds
(
taxisID2
,
vtime_lb
,
vtime_ub
);
}
streamDefTimestep
(
streamID2
,
otsID
);
for
(
recID
=
0
;
recID
<
nrecords
;
recID
++
)
...
...
This diff is collapsed.
Click to expand it.
src/Timstat.c
+
1
−
1
View file @
ad432fe7
...
...
@@ -2,7 +2,7 @@
This file is part of CDO. CDO is a collection of Operators to
manipulate and analyse Climate model Data.
Copyright (C) 2003-201
1
Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
Copyright (C) 2003-201
2
Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
See COPYING file for copying and redistribution conditions.
This program is free software; you can redistribute it and/or modify
...
...
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