7 |
Authors: Christian Eckert and Patrick Heimbach |
Authors: Christian Eckert and Patrick Heimbach |
8 |
|
|
9 |
This calendar tool was originally intended to enable the use of |
This calendar tool was originally intended to enable the use of |
10 |
absolute dates (Gregorian Calendar dates) in the ocean general |
absolute dates (Gregorian Calendar dates) in MITgcm. There is, |
11 |
circulation model MITgcmuv. There is, however, a fair amount of |
however, a fair number of routines that can be used independently of |
12 |
routines that can be used independently of the MITgcmuv. After |
the main MITgcm executable. After some minor modifications the whole |
13 |
some minor modifications the whole package can be used either |
package can be used either as a stand-alone calendar or in connection |
14 |
as a stand-alone calendar or in connection with any dynamical |
with any dynamical model that needs calendar dates. Some |
15 |
model that needs calendar dates. Some straightforward extensions |
straightforward extensions are still pending e.g. the availability of |
16 |
are still pending e.g. the availability of the Julian Calendar, |
the Julian Calendar, to be able to resolve fractions of a second, and |
17 |
to be able to resolve fractions of a second, and to have a time- |
to have a time- step that is longer than one day. |
|
step that is longer than one day. |
|
18 |
|
|
19 |
\subsubsection{Basic assumptions for the calendar tool} |
\subsubsection{Basic assumptions for the calendar tool} |
20 |
|
|
157 |
{\footnotesize |
{\footnotesize |
158 |
\begin{verbatim} |
\begin{verbatim} |
159 |
c o cal_Init - Initialise the calendar. This is the interface |
c o cal_Init - Initialise the calendar. This is the interface |
160 |
c to the MITgcm. |
c to MITgcm. |
161 |
c |
c |
162 |
c o cal_Set - Sets the calendar according to the user |
c o cal_Set - Sets the calendar according to the user |
163 |
c specifications. |
c specifications. |
251 |
c raised by the calendar routines. |
c raised by the calendar routines. |
252 |
c |
c |
253 |
c o cal_PrintDate - Print a date array in some format suitable for |
c o cal_PrintDate - Print a date array in some format suitable for |
254 |
c the MITgcmuv's protocol output. |
c MITgcm's protocol output. |
255 |
c |
c |
256 |
c o cal_TimeStamp - Given the time and the iteration number return |
c o cal_TimeStamp - Given the time and the iteration number return |
257 |
c the date and print all the above numbers. |
c the date and print all the above numbers. |