Commit 4f24b125 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Docu update

parent 92a080f4
......@@ -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
......
......@@ -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-2010 Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
Copyright (C) 2003-2011 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++;
}
......
......@@ -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-2010 Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
Copyright (C) 2003-2011 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);
}
......
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