Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
4f24b125
Commit
4f24b125
authored
Jan 17, 2011
by
Uwe Schulzweida
Browse files
Docu update
parent
92a080f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
doc/tex/mod/Settime
View file @
4f24b125
...
...
@@ -124,9 +124,9 @@ INTEGER Value of the new year
@Item = units
STRING Base units of the time axis (seconds, minutes, hours, days, months, years)
@Item = date
STRING Date (format YYYY-MM-DD)
STRING Date (format
:
YYYY-MM-DD)
@Item = time
STRING Time (format hh:mm:ss)
STRING Time (format
:
hh:mm:ss)
@Item = inc
STRING Optional increment (seconds, minutes, hours, days, months, years) [default: 0hour]
@Item = calendar
...
...
src/Settime.c
View file @
4f24b125
...
...
@@ -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
0
Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
Copyright (C) 2003-201
1
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
...
...
@@ -98,8 +98,8 @@ void *Settime(void *argument)
SETYEAR
=
cdoOperatorAdd
(
"setyear"
,
0
,
0
,
"year"
);
SETMON
=
cdoOperatorAdd
(
"setmon"
,
0
,
0
,
"month"
);
SETDAY
=
cdoOperatorAdd
(
"setday"
,
0
,
0
,
"day"
);
SETDATE
=
cdoOperatorAdd
(
"setdate"
,
0
,
0
,
"date (format YYYY-MM-DD)"
);
SETTIME
=
cdoOperatorAdd
(
"settime"
,
0
,
0
,
"time (format hh:mm:ss)"
);
SETDATE
=
cdoOperatorAdd
(
"setdate"
,
0
,
0
,
"date (format
:
YYYY-MM-DD)"
);
SETTIME
=
cdoOperatorAdd
(
"settime"
,
0
,
0
,
"time (format
:
hh:mm:ss)"
);
SETTUNITS
=
cdoOperatorAdd
(
"settunits"
,
0
,
0
,
"time units (seconds, minutes, hours, days, months, years)"
);
SETTAXIS
=
cdoOperatorAdd
(
"settaxis"
,
0
,
0
,
"date,time<,increment> (format YYYY-MM-DD,hh:mm:ss)"
);
SETREFTIME
=
cdoOperatorAdd
(
"setreftime"
,
0
,
0
,
"date,time<,units> (format YYYY-MM-DD,hh:mm:ss)"
);
...
...
@@ -275,7 +275,6 @@ void *Settime(void *argument)
else
if
(
operatorID
==
SETCALENDAR
)
{
copy_timestep
=
TRUE
;
/*
if ( ((char *)argument)[0] == '-' )
cdoAbort("This operator does not work with pipes!");
...
...
@@ -434,6 +433,7 @@ void *Settime(void *argument)
streamReadRecord
(
streamID1
,
array
,
&
nmiss
);
streamWriteRecord
(
streamID2
,
array
,
nmiss
);
}
tsID1
++
;
}
...
...
src/pstream.c
View file @
4f24b125
...
...
@@ -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
0
Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
Copyright (C) 2003-201
1
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
...
...
@@ -556,6 +556,8 @@ int pstreamOpenRead(const char *argument)
pstreamptr
->
fileID
=
fileID
;
}
if
(
pstreamID
<
0
)
cdiError
(
pstreamID
,
"Open failed on %s"
,
argument
);
return
(
pstreamID
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment