utCalendar2_cal.h

Go to the documentation of this file.
00001 
00005 /* LICENSE BEGIN
00006 
00007 Copyright Cerfacs (Christian Page) (2015)
00008 
00009 christian.page@cerfacs.fr
00010 
00011 This software is a computer program whose purpose is to downscale climate
00012 scenarios using a statistical methodology based on weather regimes.
00013 
00014 This software is governed by the CeCILL license under French law and
00015 abiding by the rules of distribution of free software. You can use, 
00016 modify and/ or redistribute the software under the terms of the CeCILL
00017 license as circulated by CEA, CNRS and INRIA at the following URL
00018 "http://www.cecill.info". 
00019 
00020 As a counterpart to the access to the source code and rights to copy,
00021 modify and redistribute granted by the license, users are provided only
00022 with a limited warranty and the software's author, the holder of the
00023 economic rights, and the successive licensors have only limited
00024 liability. 
00025 
00026 In this respect, the user's attention is drawn to the risks associated
00027 with loading, using, modifying and/or developing or reproducing the
00028 software by the user in light of its specific status of free software,
00029 that may mean that it is complicated to manipulate, and that also
00030 therefore means that it is reserved for developers and experienced
00031 professionals having in-depth computer knowledge. Users are therefore
00032 encouraged to load and test the software's suitability as regards their
00033 requirements in conditions enabling the security of their systems and/or 
00034 data to be ensured and, more generally, to use and operate it in the 
00035 same conditions as regards security. 
00036 
00037 The fact that you are presently reading this means that you have had
00038 knowledge of the CeCILL license and that you accept its terms.
00039 
00040 LICENSE END */
00041 
00042 
00043 
00044 
00045 
00046 
00047 #ifndef UTCALENDAR_H
00048 #define UTCALENDAR_H
00049 
00050 #ifdef HAVE_CONFIG_H
00051 #include <config.h>
00052 #endif
00053 
00055 #define _GNU_SOURCE
00056 
00057 #ifdef HAVE_STDIO_H
00058 #include <stdio.h>
00059 #endif
00060 #ifdef HAVE_MATH_H
00061 #include <math.h>
00062 #endif
00063 #ifdef HAVE_STDLIB_H
00064 #include <stdlib.h>
00065 #endif
00066 #ifdef HAVE_STRING_H
00067 #include <string.h>
00068 #endif
00069 #ifdef HAVE_STRINGS_H
00070 #include <strings.h>
00071 #endif
00072 
00073 #ifdef HAVE_UDUNITS2
00074 #include <udunits.h>
00075 #endif
00076 
00077 /* Prototypes */
00078 int utCalendar2(double val, ut_unit *dataunits, int *year, int *month, int *day, int *hour, 
00079                 int *minute, double *second);
00080 
00081 int utCalendar2_cal(double val, ut_unit *dataunits, int *year, int *month, int *day, int *hour, 
00082                     int *minute, double *second, const char *calendar);
00083 
00084 int utInvCalendar2(int year, int month, int day, int hour, int minute,
00085                    double second, ut_unit *unit, double *value);
00086 
00087 int utInvCalendar2_cal(int year, int month, int day, int hour, int minute,
00088                        double second, ut_unit *unit, double *value, const char *calendar);
00089 
00090 #define UT_EINVALID     -5      /* invalid unit-structure */
00091 #define UT_ENOINIT      -6      /* package not initialized */
00092 
00093 #endif

Generated on 12 May 2016 for DSCLIM by  doxygen 1.6.1